Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Createobject() How do I release it?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00359883
Message ID:
00359978
Views:
12
>>I have an application object set up (oApp). oApp has a property called oSession. I create a MAPI
>>session in method "StartMAPI" of oApp like this:
>>
>>In oApp.StartMAPI:
>>
>>this.oSession=createobject("MSMAPI.session")
>>
>>This works great till I need to release it. The compiler doesn't like "release oApp.oSession" as it wants
>>a variable. What am I doing wrong?
>
>Try: oApp.oSession = NULL

Thank you George! That worked quite well.
Previous
Reply
Map
View

Click here to load this message in the networking platform