Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

ThreaStateException stops window thread when changing Visibility to Hidden or Collapsed

$
0
0

Halo,

 I have a wpf window which makes in a background very intensive task ( it uses unmanaged dll by pinvoke).Inthis window I have also DispatcherTimer and a normal thread set as background which executes a while loop. I am not sure if those thread are a problem. rather not.

This window is using also a Dynamic Data  Display  D3.(http://dynamicdatadisplay.codeplex.com/)

when I  change Visibility of this window to Hidden or Collapsed - window sta thread goes after window.ShowDialog() and in the IsBackgroun  property of this window thread, or ThreadState etc - Im getting info that ThreadStateException was thrown. than dispatcher of my window is stopped ...

Everything is fine and works when I dont change visibility of this window!

Please help 

Best Regards

Jakub

Poland

edit:

I checked if its because of those threads - not. I limited the window just to simplify it ( no dynamic display ) - still the same!


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>