![]() ![]() ![]() The main thread call of course needs to be 'scheduled' using means such as TThread.Queue or Application.QueueAsyncCall. Wrote: I'd like to point out that CPortLaz is multithreaded Does it work similar to AsyncPro? In fact, IMHO, it would be desirable to have a component that internally uses TThread to handle blocking ports (either using just a byte-FIDO - this is what AsyncPro does - and/or allowing the user to implement a protocol within the Thread's 'Execute' ), and when some information from the port is received (at least one byte or when the protocol handler issues a 'ready'), does an Event (aka queued callback) to the main thread. 4 Reviews Downloads: 20 This Week Last Update: See Project. (NoGUI still needs an appropriate enhancement.) But of course the user (or even a ComPort Unit) could provide a usable Main Loop implementation.Michael - Lazarus mailing list. Serial Port Component For Lazarus Come Out 1 Lazarus-CCR Released Components 5dpo Component Library for Lazarus (Sdpo) provides a comport (serial port) component, an UVC video driver component for webcams, a Gtk fast painting form and a Joystick component. Unfortunately Thread - Mainthread signaling is only easily provided in Lazarus in the GUI based Widget Types. ![]() So I joined the Lazarus discussion forum, and found that someone had provided an open source TLazSerial component. (As at the time when AsyncPro was released, Delphi did not provide either, AsyncPro uses Windows Messages by directly accessing the Windows API, which happily is not necessary with Lazarus). ComDrv32 serial port component I recently adopted for my legacy BTSA3 and Ortmaster projects, or the SerialNG component I had been using since about 2004. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |