in reply to Re^2: How to pass a object value to global array in threads
in thread How to pass a object value to global array in threads
Amazing that the same basic question comes up in the same month!
I confirm that you can't share a Telnet object between threads. After understanding the responses to my post on the subject, the docs make sense: only scalers and references to scalers can be shared. A Telnet object is neither. It would be really handy if in the future this could be done, but until then... try a Telnet server thread that passes commands, status, and data via a shared common area. I.E. create your own mini API.
For a simple example see: SDR Scanner(aka Threaded wxPerl Example)
James
There's never enough time to do it right, but always enough time to do it over...
|
|---|