1

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?

7
  • 2
    This seems like way too little to go off of, well, at least for me... Commented 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. Commented Jun 22, 2016 at 12:32
  • Possible duplicate of WPF Application still runs in background after closing Commented 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. Commented Jun 22, 2016 at 12:35
  • @H.B.: What can i do in this case? Commented Jun 22, 2016 at 12:49

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.