One more question :) Is there a way to share my $serial object with the serialport thread?
I want to share this:
$serial=(Win32::SerialPort->new($ports[$portname])So my serial worker thread could read from this. The only need for that is cause i select COMx ports from a listbox and i don't know how to tell the thread to read from the specific port
my $serial :shared = shared_clone({}); bless($serial, 'Serial');
When i share my serial object i get an error at $serial->read(1); line saying "Thread 1 terminated abnormally: Can't call method "read" on an undefined value"
In reply to Re^3: Perl/Tk vs Win32::SerialPort
by Shaoboy
in thread Perl/Tk vs Win32::SerialPort
by Shaoboy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |