Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deactivate on Init
Message
From
25/05/2001 07:52:42
 
 
To
21/05/2001 12:58:30
David Bennett
AdvoCare International LLC
Carrollton, Texas, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00509545
Message ID:
00511413
Views:
17
Hi!

Just make a function in your application that will instantiate the COM object for you than call a special method, for example, "AdditionalInit". This way you also will be able to pass parameters to the initialization process of the COM object. Note that Init of COM object ignores parameters, so to pass parameters you require additional method anyway. Usually this issue and going stateless are combined in a single COM object method.

HTH.

>I have a VFP MTDLL running under MTS. I've noticed that when I first instantiate it, it stays activated until I call the first method that has a SetComplete in it. Is there any way to deactivate the object immediately after instantiation? The ObjectContext isn't available, so I can't call SetComplete.
>Is this even an issue, or should I just not worry about it?
>Thanks!
>
>- david
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform