Hi
I hope someone is able to help me towards a solution here.
I've developed a program that flashes the ROMs of smartphones. It runs
with multithreads. I have 16 simultaenious threads of the same class,
collected in an array of that class.
The flashing process takes about 20 mins, regardless of the number of
smartphones connected.
PROBLEM:
More often than not, the program shuts down completely at any random
point in the flashing process. Theres no error, and no trace of the
program afterwards (In the process list). It just vanishes. I've tried
to debug it, by running the program through VS. But that doesnt bring
me any closer to a solution. When the program shuts down, theres no
error or exception. It just states "The program xxxx.exe has been shut
down. Exitcode(0)" or something similar. My mainforms Close-event and
Dispose function aren't being called.
The CPU isn't really stressed. With 16 smartphones being flashed at
once, the CPU load topped at 22%.
The program uses up about 170 megs of memory when running. (due to ROM
files)
I have checked for memory leaks, and cant identify any.
For those who like to draw the program is something similar to this:
I have a form, which is the main thread. The form has an array of 16
workerthreads. Every workerthread, has an object of an USBInterface
class (which i wrote myself), and another thread, which basically just
reads from the devices constantly.
All the USB communication, is handled through an activesync driver and
the use of
ReadFile
Writefile
GetOverlappedResult
Open
etc
[quoted text, click to view] >From Kernel32.exe. So yes, API calls.
Can anyone maybe help me out? At least point out to me how i can
monitor what causes the error.
Thank in advance.