Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error with NEWOBJECT()
Message
From
07/04/2008 19:00:53
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
To
07/04/2008 17:18:52
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
MySQL
Miscellaneous
Thread ID:
01308856
Message ID:
01308875
Views:
18
I think the third parameter is supposed to be an app or exe file.

>Hello,
>
>I run into a problem instantiating a class from a specific library.
>
>the code is:
>
>*Method: DoInstantiateObj()
>THIS.NEWOBJECT("MyObject","MyClass","MyLibrary")
>
>
>If I run this code from within the form object, the program hangs:
>
>THIS.DoInstantiateobj()
>
>
>However, if I run the code from another place, like the commandline, it does not hang:
>
>loForm.DoInstantiateObj()
>
>
>Also, if I copy the library to another library, it seems to work:
>
>*Method: DoInstantiateObj()
>THIS.NEWOBJECT("MyObject","MyClass","MyLibrary2")
>
>
>What is going on?
Previous
Reply
Map
View

Click here to load this message in the networking platform