in reply to Re: How to pass a object value to global array in threads
in thread How to pass a object value to global array in threads

more like OP is turning a blind eye and hoping someone else will confirm his ideas are possible ... an optimitist
  • Comment on Re^2: How to pass a object value to global array in threads

Replies are listed 'Best First'.
Re^3: How to pass a object value to global array in threads
by jmlynesjr (Deacon) on Oct 26, 2015 at 20:43 UTC

    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...