Problem when using class of dll (close program?)

  • Thread starter Thread starter Palm Kevin
  • Start date Start date
P

Palm Kevin

Hello,

I have a little problem when I try to use a class of a DLL.
Example : I have a DLL with the object MTSync with a function Sync()
I try in another program to use this dll like this :
MTSync sync = new MTSync();
sync.Sync();

OK, now the problem: The problem is NOT that this does not work, it
works great, it does everything it has to do. BUT THE PROBLEM IS THAT
I CAN NOT CLOSE MY PROGRAM !!!

Can anybody help me?! I really don't know why the program won't stop
!?!

PS:
- I'm working with the .net COMPACT framework for pocket pc
- The program has this problem only when the MTSync-object had been
used
- The only way to close the program is to kill the process in the
system-process-list
- It seems that I CAN close the programm after calling MTsync, when I
do it directly (+- within the first 10 seconds)

Please Help Me
 
Hi Palm,

Can it be that the MTSync class launches worker threads that eventually end
up waiting for some synchronization object that actually never become
signaled?
 
No there is no thread in the synchro.
I only call MTSync.sync(); and when the synchro is finished, then the
program execcutes the next instruction. So the function returned
correctly!

When I executed the synchro as a program (not dll (it has a little UI))
than everything is OK...
 
Back
Top