it can be step trough with the help of debugger , but it seems you have multiple threads , so you need to have breakpoints . also i recommand you to use try catch to avoid exceptions . Check your thread function , before they exit you are not deleting some memory allocated in the thread .
Vikas Amin
My First Article on CP" Virtual Serial Port "[^]
modified on Thursday, July 24, 2008 5:33 PM