Author | Topic: how many Instance of a activeX ? | |
---|---|---|
AUGE_OHR | how many Instance of a activeX ? on Thu, 25 Sep 2008 22:32:06 +0200 hi, if i like to use Threads for activeX, i can use a new instance from activeX. is there a Limit of Instance i can use ? what happend if one of my Thread "hang" ... what happend to the activeX ? ... how to "kill" that Thread and axtiveX ? Sample : it is know that "Excel.EXE" will stay in Memory if you have call :Quit Methode with "open" Workbooks. If you now start your activeX again it will open a new Instance of "Excel.EXE". how can i find out with instance belong to which Session ? greetings by OHR Jimmy | |
Rodd Graham | Re: how many Instance of a activeX ? on Fri, 26 Sep 2008 00:20:33 +0000 Hello AUGE_OHR" AUGE_OHR*AT*WEB.DE, > is there a Limit of Instance i can use ? Memory > what happend if one of my Thread "hang" What do you mean by hang? > ... what happend to the activeX ? So long as a reference is retained to the activex object and the process is active, the object survives. > ... how to "kill" that Thread and axtiveX ? You must release the activex object references. > Sample : > it is know that "Excel.EXE" will stay in Memory if you have call > :Quit Methode with "open" Workbooks. If you now start your activeX > again it will open a new Instance of "Excel.EXE". > how can i find out with instance belong to which Session ? You can compare the workbook instances with the application workbook list. Otherwise, you could just coorelate them in xbase++ variables as you create the activex objects. Regards, Rodd Graham, Consultant Graham Automation Systems, LLC |