Creating a new / simulating a message pump

R

Roland Dick

Hi,

I'm using a vendor SDK for .net for WWAN communication functions
(Intermec WWANToolkit). The methods of this library require to be called
within a thread that has a message pump, otherwise some events don't get
fired

My application is fairly big and aiming at different devices; all the
code that calls the WWANToolkit stuff is in a separate thread (without a
message pump).

Therefore my question: How can I create a message pump in my separate
thread? I don't think an additional Application.Run is the recommended
way of doing this, right?

Can I somehow get my thread to use the same message loop as the main thread?

Thanks for any hints,

Roland
 
C

Chris Tacke, eMVP

Take a look at the ApplicationEx.Run method in the SDF. You could use it in
a thread to generate a new message pump, or take the source and is it
however you'd like for the same.

www.opennetcf.org/sdf

--
Chris Tacke
Co-founder
OpenNETCF.org
Are you using the SDF? Let's do a case study.
Email us at d c s @ o p e n n e t c f . c o m
http://www.opennetcf.org/donate
 
R

Roland Dick

Hi Chris,

I've been using opennetcf for a year or so now.. but still I find
something new and useful every day. Thanks a lot to you guys!

Roland
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top