S
sleepymish
Hi,
I have cygwin running on a P4 2.4 GHZ with 512 MB RAM machine. I also
have perl 5.0.8 installed with my cygwin. I wrote a C++ application
with perl embedded to do string matching for strings of about 256
characters long. When I run the program I got the following error:
Out of memory during request for 1208 bytes, total sbrk() is 393910272
bytes!
Anyone know what this error mean?
What happens is I have a huge html file, about 80MB big, and I wrote a
parser in C++ to do string matching in the html file. Because Perl has
such a powerful regular expression capability, I decided to use Perl
instead of writing my own in C++. So I use fget to get strings line by
line from the html, then use perl to find any integer values in it. My
program works fine when the html file is 20MB or less.. but craps out
when it's 80MB. BTW, I'm using STL Vector to store the strings matched
from Perl.
Anyone know what might be the problem w/ the "OUt of memory error"? I'm
trying to narrow it down to a perl or STL vector problem. After initial
searching, I saw that other people with this error usu. orginates from
perl.
Anybody encountered this problem? Knows how to fix this?
Thanks,
Michelle
I have cygwin running on a P4 2.4 GHZ with 512 MB RAM machine. I also
have perl 5.0.8 installed with my cygwin. I wrote a C++ application
with perl embedded to do string matching for strings of about 256
characters long. When I run the program I got the following error:
Out of memory during request for 1208 bytes, total sbrk() is 393910272
bytes!
Anyone know what this error mean?
What happens is I have a huge html file, about 80MB big, and I wrote a
parser in C++ to do string matching in the html file. Because Perl has
such a powerful regular expression capability, I decided to use Perl
instead of writing my own in C++. So I use fget to get strings line by
line from the html, then use perl to find any integer values in it. My
program works fine when the html file is 20MB or less.. but craps out
when it's 80MB. BTW, I'm using STL Vector to store the strings matched
from Perl.
Anyone know what might be the problem w/ the "OUt of memory error"? I'm
trying to narrow it down to a perl or STL vector problem. After initial
searching, I saw that other people with this error usu. orginates from
perl.
Anybody encountered this problem? Knows how to fix this?
Thanks,
Michelle