For Programmers: Free Programming Magazines  


Home > Archive > ithreads > June 2005 > Crashes ...









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

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

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com