Application freezes without any notification/error
Hi all, currently i am working on an application that communicates between a desktop computer and a Windows mobile 2003 device which all seems to work very well.
but I do have a problem, my application useses an asynchonized socket to do it's job nice and clean without taking up loads op cpu usage by looping and such. The socket is ran in it's own thread and works great. and so does the application itself BUT
When recieving data from the computer the application seems to freeze (at random points) when i have any interaction with the program, whether a key is set to a void or not, or a timer ticks and does a certain event.
I tried allot of things, turn off the timers, remove all actions from the buttons etc etc.
When i walk through the code step by step it just seems to end at mysterious points which have no reason of failing. All my Try/catches return errors in messagebox form and highlight the code for me but it just seems to go into "run" mode again at that point but the application itself freezes up
So as you can hear i have a hard time figuring this problem out, any help is welcome.
(the only thing i did find was some guy asking another guy about a freezing app problem if he was using asynchonised sockets BUT he didn't ever tell the reason he asked)
Re: Application freezes without any notification/error
Not sure if this will help, but I have a service that uses ansynchronous sockets, and the program would just appear to quit working at random times. It didn't freeze, it just stopped doing what it was supposed to do.
After lots of debugging, couldn't figure it out and had to resort to tons of logging to a text file. And I mean lots - pretty much before and after every line of code. Turns out I wrote some bad code and I finally saw what I was doing. I chalk it up to being new at the time to asnchronous stuff in general. Only slightly smarter now :)