Tracing

Z

Zsolt Szalay

Hi,

I've created a multithreaded app using CF2 (WinCE 5). I think everyting is
in try catch block that needs to be there (I hope).

I use VS2008 and ActiveSync to debug it, but sometimes the application
unexpectedly terminates and I don't know why. The USB connection stops
working and I need to disconnect and connect the device again.

There is no exception, there is no crash window, there is nothing, it just
terminates and the desktop is shown again. (There is enough memory, a
background application monitors the device memory usage continuously)

I've created a basic log functionality, that is called from methods to log
where the execution currently is, but I think I should call the logger from
every method, when the execution steps into it, and when it steps out. But
the application has a lot of methods...

Could you suggest me a technique/method/anything that can help me to find
out that in what cursumstances this failure happens, and why, ofcourse.

Thank you,
Best regards,

Zsolt
 
S

Simon Hart [MVP]

Sounds to me this is a ActiveSync issue (perhaps). If it is disconnecting
then you're app will terminate unexpectedly (while debugging). Note
sometimes this happens when the connection when USB works loose or the
bluetooth disconnects for what ever reason.

However, in CF 3.5 there is now a profiler but as you said you're using CF
2.0 you could try the EQTEC profiler for CF 2.0 here:
http://www.eqatec.com/tools/profiler The profiler wil give you an execution
plan which might help diagnose the issue if it is not AS.
 
P

Paul G. Tobey [eMVP]

What does the program *do*? If this is an ActiveSync problem, as Simon
suggests, chances are that something your code is doing is triggering the
bug. It's a network program? It's doing something with drivers? It's
running some thread at very high priority?

Paul T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top