Thread Logging

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Im not sure if this is possible, but does anyone know of a way to log to
file, or anything for that matter, when threads in a CF app get suspended and
restarted - i think i have a problem in my application with too many threads
being started which causes two threads to be executing the same bit of code
which in turn causes some very strange results.

Thanks,
 
If you want to stop threads executing the same bit of code use some
form of thread synchronisation, like a mutex to ensure that only one
thread executes it at once...

I'm not sure if there is a way to detect that your thread has been
suspended or restarted, but I do use logging in my multithreaded app
and use thread.name to identify each thread for logging purposes so you
can see what each one is doing.

This is desktop framework though not CF.

Matt
 
Back
Top