>Hi!
>
>Well, did you used 'ADDITIVE' When setting VCX second time? WIthout that second SET CLASSLIB overrides the first one. WIth ADDITIVE both libraries will be loaded in the memory.
>
>BTW, for debugging purposes, just display the result of the 'SET("CLASSLIB")' function. This way you will see wich libraries are currently loaded.
>
>HTH.
Yes, I made sure that I included the ADDITIVE option when opening the second class library in the oApp.Init.
While debugging, in addition to showing the set('classlib'), I'm also showing curdir(), set('path') right before I do the new form, just to make sure things are where I want them to be...
Here's my current sequence of events:
In the main.prg, I call the SetPath() function, which among other things does a SET CLASSLIB TO mainlib
If SetPath() evaluates to true, I then oApp = CREATEOBJECT("Application")
When oApp gets created, in the oApp.Init I have a:
SET CLASSLIB TO registry ADDITIVE
This.AddObject("oGetIni", "oldinireg")
Now, the second .exe I'm launching has a main program with just:
?curdir()
?set('path')
?Set('classlib')
DO FORM wtwuoem
All of the SET CLASSLIB attempts above return some error
and if I don't use one at all, I still get error instantiating class eventhough the SET('classlib') clearly shows both the mainlib and registry libraries are loaded.
- Brian
VFP6 SP5, VFP8 SP1, VFP 9 SP 1 and Win XP SP 3 (unless otherwise specified)
www.wulfsden.com