Using with wpf

Sep 10, 2011 at 12:59 PM

This isn't a direct issue but I was hoping I could get some help on it regardless.

I want to use in a wpf application but when I initialize the main window of my application never shows. If I comment out the last line of the initialization code - communicator.ReceivePackets(0, PacketHandler); and then run the program the window shows up fine. So any ideas on why my window never appears once the ReceivePacket function is called? Im guessing because the program is stuck in the event loop. If so, have you any suggestions on how I use in a wpf application?


Sep 12, 2011 at 9:15 AM

communicator.RecievePackets() is a blocking call, that is why it's not working here for you.


You need to run this command in another thread, separate to the WPF thread. There is some code for doing this in an old discussion here: