com >> ActiveX Exe does not terminate

by U3RldmU » Wed, 16 Nov 2005 19:56:06 GMT

I have an Active X Exe that can be run stand-alone or called from another
program. When I terminate it as stand-alone it is fine - all traces of it
disappear. However, closing it when it has been called from another program
and the Activex appears to close but is still listed by Task Manager, so I
can only assume some processes haven't terminated properly. I'm reasonably
confident that I am terminating all classes that I have created, but I am not
convinced some of the code I am sharing from other projects does the same.
How do I find what objects have not been closed (i.e. set to Nothing) when
the ActiveX Exe attemps to close?

Regards,
Steve.


com >> ActiveX Exe does not terminate

by Ken Halter » Thu, 17 Nov 2005 01:16:37 GMT






There's nothing built in that would help with this. One of the most common
"activex exe won't terminate" problems comes from leaving a form loaded in
that exe.

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Please keep all discussions in the groups..





Similar Threads

1. Terminating ActiveX Document EXE When IE Closes

Hello All,

I've got an ActiveX Document EXE project that works just fine, but when
Internet Explorer closes, it does not unload the program.  The program will
run indefinitely until it is closed in the project manager.

I've noticed while debugging in the IDE I always have to click STOP to
terminate the application from running before I can continue coding.

In normal VB, when the last form is unloaded the whole application
terminates.  This does not appear to be the case for Active Documents.
Shouldn't it just unload itself?

Does anyone know how to do this?  Should I trap IE events then process and
END when the browser is closed?

Any help would be appreciated.

Thanks,
Ramon Reis

2. Terminate ActiveX EXE - Visual Basic/VB

3. HTA Application problem - mshta.exe will not terminate

I am putting together an HTA application.  In it, I have a Do/Loop that
will run until either a button is selected or the IE window is closed.
The button works fine.  But, if I close the IE window, mshta.exe
remains running.  I tried using onbeforeunload and setting the same
flags and doing the same process that I use for the button, but no
luck.

TIA

4. Can an VB ActiveX EXE contain (not make) a Synchronous Method Call

5. ActiveX Exe does not work after changing filename

I have an ActiveX project in VB 6. Up until recent versions, I have been able 
to change the filename of the exe and run it successfully (e.g. I could 
compile to test.exe, run test.exe, rename test.exe to test1.exe and also be 
able to run test1.exe).

Now I find that if I change the filename, the program will not run. There is 
no error message, After double-clicking on the file, the cursor displays the 
hourglass, and then returns to normal. 

If I remove the typelib entry for the file in the registry (I only need to 
remove the win32 key), I can then run it with the changed name, but if I 
change the filename again, it will not run.

This happens with later versions of my software but not earlier. I think the 
problem lies somewhere during startup. For testing I have the program pop up 
a message box before it does anything else, so I do not think it has anything 
to do with other changes in the software.

Does anybody have any ideas what might be happening?

Thanks in advance

Chris

6. ActiveX Exe component not working on Win2003 server - Visual Basic/VB

7. Problem - ATL ActiveX EXE does not work when placed inside a VB form

"Omer" < XXXX@XXXXX.COM > wrote in message
news: XXXX@XXXXX.COM ...
> I have generated a "Full control" ActiveX in a local server (exe)
using the
> ATL wizard.

There is no such thing as an ActiveX control in a local server. An
ActiveX control must be in a DLL. The fact that the wizard allows you to
create a non-working project may be considered a bug in said wizard.
-- 
With best wishes,
    Igor Tandetnik

"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken


8. How to identify ActiveX EXE and Stabdard EXE....