| Alvar Freude 2005-06-08, 9:03 pm |
| -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
when calling:
$self->{out_queue}->send("STATUS=3DDIALING");
Perl crashes; when calling
my $out_queue =3D $self->{out_queue};
$out_queue->send("STATUS=3DDIALING");
It works as expected.
"send" calls the following method (the object derives from Thread::Queue):
sub send=20
{
my $self =3D shift;
$self->enqueue(@_);
}
When calling $command->{out_queue}->enqueue perl complaints that the array is
not blessed.=20
Looking with the debugger on this gives the result: Copying
$self->{out_queue} to another variable first, this vafriable is reference to
a blessed array. When looking directly via $self, it's a simple arrayref ...
What's going wrong?
Thank you and Ciao
Alvar
- --=20
** Alvar C.H. Freude -- http://alvar.a-blast.org/ -- http://odem.org/
** Berufsverbot? http://odem.org/aktuelles/staatsanwalt.de.html
** ODEM.org-Tour: http://tour.odem.org/
**=A05 Jahre Blaster:=A0http://www.a-blast.de/ | =
http://www.a-blast.de/statistik/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFAv0xIOndlH63J86wRAmn5AKDM/lYnkXWlq8IaCZDNnLELNEOMFQCgzMBq
smCFFGPaECES26gJZF+h1as=3D
=3DAWOj
-----END PGP SIGNATURE-----
|