Hi,
I need to return an exit code of 1 after my Main functions ends. However I have an other thread that never ends (while(true)). So I managed to call Environment.Exit(1). But I got some exception when diposing com objects...
For several reasons I can't change the other thread code. What do you guys advocate to do ?
May I catch the exception coming from the com object disposing ? Do I have an other option for returning an exit code ?
Thx