I don't know if I need to give more information but I have been browsing through my code and I couldn't find anything else that causes this problem.
I have a WriteableBitmap
somewhere inside my code that I only declare via WriteableBitmap wb;
Now giving only that information, when I now close the main window, the debugging process in VS 2013 stops and everything seems to be fine.
However, when I initialize wb
as in
wb = new WriteableBitmap(dimx, dimy, 96, 96, PixelFormats.Indexed8, paletteGray);
not running any other line of code afterwards and then close the window, VS doesn't seem to stop debugging, meaning I have to click on the "stop" button to stop everything running, which also takes a long time (up to 15 seconds) after I initialize wb
.
Is there maybe anything I am missing about WriteableBitmap
here?