Does the API call ExitProcess() work OK in VB6 if you follow the MS caveats?
Posted
by Clay Nichols
on Stack Overflow
See other posts from Stack Overflow
or by Clay Nichols
Published on 2010-06-17T17:03:24Z
Indexed on
2010/06/17
19:43 UTC
Read the original article
Hit count: 119
vb6
|exitprocess
Microsoft indicates that VB6 doesn't support ExitProcess (to exit and return a value).
However, it indicates that this call can fail under certain circumstances (if a thread hasn't been completed, etc.)
so I'm wondering whether this call will work OK (consistently :-) as long as you obey the caveats in the article.
I could go a step further and call ExitProcess() from the Sub Main or Form which stared the app.
Update: after some more reading (I really did research this a bit before asking ) I found a suggestion to use the TerminateProcess API instead. I'm investigating that option.
Any thoughts?
© Stack Overflow or respective owner