Application.Exit Problem

Hi
I am facing a weird problem with Application.Exit in Windows 2003. After this statement is executed, the application does not go down and CPU usage goes up to 100. This problem occurs only in Windows 2003. Windows XP (SP2 and SP1) are just fine. 

Does this have any thing to do with COM Interop or license of components  I have a VB6 OCX control and ComponentOne True DBGrid.

Any help would be greatly appreciated.

Thanks and Regards
Prasanth


Answer this question

Application.Exit Problem

  • Vasiq

    Hi
    Thanks for the suggestions. The application does not shut down at all. I have an OCX component in one of the forms. Do I need to use ReleaseComObject in that case  I do not have SP1 installed.

    Thanks and Regards
    Prasanth

  • albnig

    Does the application finally shut down after some time  That might indicate that the garbage collector has to clean up, which might have something to do with COM interop. Do you call ReleaseComObject each time

    Do you have Windows 2003 SP 1 installed

  • Application.Exit Problem