Indeed, when I used %u I got 4,294,967,293 for max_size() which is a lot more than I need.
If the process is running out of memory, maybe I can adjust that?
This small piece of code is part of a...
Type: Posts; User: niv
Indeed, when I used %u I got 4,294,967,293 for max_size() which is a lot more than I need.
If the process is running out of memory, maybe I can adjust that?
This small piece of code is part of a...
Okay, I was able to catch the exception, it is "bad allocation".
Also, reply.max_size() returned "-3".
Any idea?
Here is the code:
string double_newline("\r\n\r\n");
string::size_type reply_starts_at = reply.find(double_newline);
if (reply_starts_at == string::npos)
{
throw...
Hi,
I am trying to use substr on a large string, 20-30MB.
The same code compiles and run on other platforms (linux, HP, Windows) with no problem, but when running on AIX 6.1, it crashes.
Seems...