• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 
April 26, 2024, 08:52:22 pm

News:

SMF - Just Installed!


Threads

Started by JamesBrown, March 01, 2010, 02:11:54 pm

Previous topic - Next topic

JamesBrown

It appears that the USB Pipes are operating with a different thread than the Main application.  The USBPipePair2AfterReceive event has problems setting main application variables.

Does anyone know how to interface these events with the main application?  Does it need a synchronize procedure?  How

Delphi 7

Roman Novgorodov

Hello

Yes, of course, the input data is monitoring in separated thread.

I hope We will add UseMainThread mode into TnrUsbPipePair as it had done in TnrComm (serial port component) asap.

Whilst You can use other well known ways for multithreaded synchronization (CriticalSections, Event objects, SendMessage() etc.)

Roman Novgorodov
DeepSoftware.Com
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.