-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

when calling:

   $self->{out_queue}->send("STATUS=DIALING");

Perl crashes; when calling

   my $out_queue = $self->{out_queue};
   $out_queue->send("STATUS=DIALING");

It works as expected.


"send" calls the following method (the object derives from Thread::Queue):

sub send 
   {
   my $self = shift;
   $self->enqueue(@_);
   }


When calling $command->{out_queue}->enqueue perl complaints that the array is
not blessed. 


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

- -- 
** 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/
**�5 Jahre Blaster:�http://www.a-blast.de/ | http://www.a-blast.de/statistik/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAv0xIOndlH63J86wRAmn5AKDM/lYnkXWlq8IaCZDNnLELNEOMFQCgzMBq
smCFFGPaECES26gJZF+h1as=
=AWOj
-----END PGP SIGNATURE-----

Reply via email to