What I remember is that you have to execute Quit() so that the JEXESERVER will 
automatically unload from memory when the calling application exits or goes out 
of context.

On Oct 13, 2010, at 9:50 PM, Martin Pelletier wrote:

>  OK, I will refine my approach. To tell you the truth my example is 
> something I hacked together from a larger project.
> 
> One thing I'd like to look at is the COM documentation. It might explain 
> things as to why, upon instantiation, you must perform Quit(). I don't 
> get that.
> 
> Martin Pelletier
> 
> On 2010-10-13 00:03, Alex Rufon wrote:
>> Just a side note, your initialize() function would fail if debug == false. 
>> It has something to do with the requirement of J602 that a Window must be 
>> created to initialize J properly. Hence the code:
>>     If Me.debug Then
>>         jScript += vbCrLf&  _
>>                 "0!:0<BINPATH,'\\profile.ijs'"&  vbCrLf&  _
>>                 "wd 'pn *Session Server'"  //<<-- NOTE on THIS CODE
>>         jObject.Log(1)
>>         jObject.Show(1)
>>     Else
>>         jObject.Do("11!:0'pc Session;cc e editijx;'") //<<-- NOTE on THIS 
>> CODE
>>         jObject.Log(0)
>>         jObject.Show(0)
>>     End If
>> 
>> In my sample code in 
>> http://www.jsoftware.com/jwiki/Guides/J%20VB.NET#Initialization
> 
> ----------------------------------------------------------------------
> 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