My program just prints a web page and it doesn't use threads. It should run under mod_perl (but it gives those errors when running it from command line).
It uses more functional modules that get data from a MySQL database, and an OOP module that prints the header, initialize the CGI object, the CGI::Session object, the Template-Toolkit object... Now I know why the program doesn't give that error when I run it for the second time. It uses Template-Toolkit, and it creates a temp script which is used the next time the program is launched, so it doesn't need to parse the templates anymore. I would try to make that OOP module to be a functional one, but I cannot use CGI::Session from a functional module, because CGI::Session it gives an error if I say something like: our $session = CGI::Session->new(...); I need to say: my $session = CGI::Session->new(...); so I cannot access CGI::Session from outside the module is used. I will try to find what could be the problem, because I need to solve it. Thank you. Teddy ----- Original Message ----- From: "Dave Gray" <[EMAIL PROTECTED]> To: <beginners@perl.org> Sent: Monday, May 16, 2005 7:44 PM Subject: Re: Attempt to free unreferenced scalar > After running a program, I saw the following errors: > > Attempt to free unreferenced scalar: SV 0x38bd0a4, Perl interpreter: > 0x162445c > at E:/usr/lib/Errno.pm line 15 (#1) > Attempt to free unreferenced scalar: SV 0x38bd0a4, Perl interpreter: > 0x162445c at E:/usr/lib/Errno.pm line 15. The only time I've seen errors like that is in threading code that uses non-threadsafe modules. What does your program do? If you care enough, you might want to read up[1] and identify suspicious code, then try to write an example that consistently throws that error. [1] <http://www.google.com/search?q=%22attempt+to+free+unreferenced+scalar%22+%2 2Perl+interpreter%22> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>