Hello
I am running a small app on a Linux machine, but after about 11 hours the program stops with a std::bad_alloc terminate. It seems like these three lines are the guilty ones, can you by quickly looking at them tell me if they indeed are a memory leak, or could there be an other reason for the bad_alloc? Does the bad_alloc happen immediatlely or could the bad_alloc have been from a little a bit earlier in the program and just appear a little after (like if it is doing something in the background, network code for instance)?
unix_date = agk::GetCurrentDate();
unix_time = agk::GetCurrentTime();
seconds_from_unix = agk::GetUnixFromDate(agk::Val(agk::Mid(unix_date,1,4)),agk::Val(agk::Mid(unix_date,6,2)),agk::Val(agk::Mid(unix_date,9,2)),agk::Val(agk::Mid(unix_time,1,2)),agk::Val(agk::Mid(unix_time,4,2)),agk::Val(agk::Mid(unix_time,7,2)));
EDIT: Is std::cout done instant? I have put std::cout different places in the code to see what it is doing right before the bad_alloc, so for instance if a std::cout is in some buffer and it is not printed before the program crashes.
13/0