From: "Jenda Krynicky" <je...@krynicky.cz>
From: "Octavian Rasnita" <orasn...@gmail.com>
I forgot to say that the script I previously sent to the list also
crashed Perl and it popped an error window with:
perl.exe - Application Error
The instruction at "0x7c910f20" referenced memory at "0x00000004". The
memory could not be "read". Click on OK to terminate the program
I have created a smaller XML file with only ~ 100 lines and I ran agan
that script, and it worked fine.
But it doesn't work with the entire xml file which has more than 200 MB,
because it crashes Perl and I don't know why.
And strange, but I've seen that now it just crashes Perl, but it doesn't
return that "Free to wrong pool" error.
Octavian
That must be something either within your perl or the
XML::Parser::Expat. What versions of those two do you have? Any
chance you could update?
Jenda
perl -v
This is perl 5, version 14, subversion 2 (v5.14.2) built for
MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2011, Larry Wall
Binary build 1402 [295342] provided by ActiveState
http://www.ActiveState.com
Built Oct 7 2011 15:49:44
...
cpanm XML::Parser::Expat
Set up gcc environment - 3.4.5 (mingw-vista special r3)
XML::Parser::Expat is up to date. (2.41)
I think Perl is also new enough...
Anyway, I solved the problem by parsing the XML content using regular
expressions and it works very fast this way.
And the regexp solution is not uglier and harder to maintain than using an
XML parser...
Octavian
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/