Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memory Not Released
Message
 
To
17/12/1999 08:43:32
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00305179
Message ID:
00305331
Views:
26
>Hi,
> I am using DEFINE CLASS command in program file and use NEWOBJECT() to create the session object.
>
>LOCAL omysession, lOK
>
>omySession = NEWOBJECT("prgSession", "myclass.vcx", "", username, userpass)
>lOK = omysession.GetStatus()   &&return value for success or fail
>omysession.DESTROY
>
>Any mistake here?
>
>Thank you

John,

Why are you calling the Destroy, that does not destroy the object.  The Destroy is an event that fires during the object's destruction.  I think your problem may be the session objects that still exist.  To get rid of these using your code example;

<pre>
LOCAL omysession, lOK

omySession = NEWOBJECT("prgSession", "myclass.vcx", "", username, userpass)
lOK = omysession.GetStatus()   &&return value for success or fail
RELEASE oMySession
Previous
Reply
Map
View

Click here to load this message in the networking platform