Hello Bill,

Why didn't I think of that? :)

Thanks. I'll do that. I'm also thinking of a way to be able to replicate
the same problem without distributing my scripts. I believe (most likely
Im wrong) this problem is with the standard library since my script is
90% library and the rest is just some minor config stuff. Another thing
is that using the library from J601 ... I didn't encounter the error. It
only happened after I migrated to J602 project manager and "compiled" my
script there that the problem occurred.

r/Alex



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of bill lam
Sent: Wednesday, December 05, 2007 2:16 PM
To: Beta forum
Subject: Re: [Jbeta] J602c Problems

I don't use Visual studio so that I cannot test for you. However if I
were you I 
would insert many trace statements into the standalone script to write
to a log 
file, and examine the log file for where the program failed.

..
(<'c:\j.log') (1!:3)~ LF, 'tp 1'
..
..
(<'c:\j.log') (1!:3)~ LF, 'tp 2'
..
..
(<'c:\j.log') (1!:3)~ LF, 'tp 3'
..

Alex Rufon wrote:
> Hello Bill,
> 
> I tried your suggestion.
> 
> I put the code on top of my stand alone script. It works when I load
the
> file using j.exe -jprofile
>   0!:100 <'e:\projects\smarteoe\bin\eoe.ijs'
> 
> But it still fails when I do it using C# and/or VB.NET with a "VALUE
> ERROR".
> 
> r/Alex
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On
> Behalf Of bill lam
> Sent: Wednesday, December 05, 2007 10:14 AM
> To: Beta forum
> Subject: Re: [Jbeta] J602c Problems
> 
> On the "value error" issue, I suspect that BINPATH is not defined by
the
> j ole 
> server. You may write a simple script to test this, or append the
> following in 
> the very beginning of your standalone script as a workaround.
> 
> 3 : 0 ''
> notdef=. 0: ~: 4!:0 @ <
> PATHSEP_j_=: '/\'{~6=9!:12''
> if. notdef 'BINPATH' do.
>    BINPATH_z_=: ({.~ i:&PATHSEP_j_) >@{.4!:3 ''
> end.
> ''
> )
> 


-- 
regards,
bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to