We wrote a wpf application using .NET 3.5. We use the CANopen protocal and log4net. The application starts a few tasks all of which are completed. I checked this by writing a message to the log file - everything was ok. Sometimes the application process terminates immediatelly, sommetimes it takes a few seconds and sometimes it does not terminate. Any ideas what could cause this?
- 2This seems like way too little to go off of, well, at least for me...brunnerh– brunnerh2016-06-22 12:31:18 +00:00Commented Jun 22, 2016 at 12:31
- The non-determinism might have to do with garbage collection, as in the lack of garbage collection happening keeping the application alive.brunnerh– brunnerh2016-06-22 12:32:56 +00:00Commented Jun 22, 2016 at 12:32
- Possible duplicate of WPF Application still runs in background after closingVishnu Prasad V– Vishnu Prasad V2016-06-22 12:32:59 +00:00Commented Jun 22, 2016 at 12:32
- Can you reproduce this within or attach a debugger? You should then be able to see which thread is keeping the process open.Ben Jackson– Ben Jackson2016-06-22 12:35:05 +00:00Commented Jun 22, 2016 at 12:35
- @H.B.: What can i do in this case?Andreas_Lng– Andreas_Lng2016-06-22 12:49:47 +00:00Commented Jun 22, 2016 at 12:49
| Show 2 more comments