Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Naming and Removing COMs
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00563775
Message ID:
00564158
Views:
17
>>When I create a COM object it shows up in the task manager as the name of the EXE file.
>>
>>1) Is there any way to have it show a different name in the task manager?
>
>Not 100% sure, but I don't think you can change the name in Task Manager Processes tab.

I want to give it a different name for every instance I create of the COM object so I can distinguish it in the task manager. I dont want to rename it once in place.

E.g.
xx=createObject('myObj.someCom')
yy=createObject('myObj.someCom')
zz=createObject('myObj.someCom')

This will show up three times with the same name. I would like to distinguish this in the task manager.


>>
>>2) Does anyone know of a Windows API that removes a task from the task manager?
>
>If you kill the process it will be removed from there. :)
>As I understand you are trying to hide the running COM from Task Manager, right?

Not true. I want to kill it from task manager using my own program logic.

Sometimes the COM process (which is an out of process) crashes and there is no object reference to kill it. I would like to have a way where if I know the threadid I can just kill it.

E.g. Lets say I have the following:

xx=createObject('myObj.someCom')
release xx

This should remove it from memory. But sometimes this doesnt work for various reasons maybe because of other external processes that may have crashed but had references to myObj as well. So the only way to kill that process is to use task manager. I am sure there is an API call someplace that task manager uses to kill the process.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform