E
Eric Boutin
Hi ! I got the fallowing function :
void pushargv(TmpFile in) {
std::string tmp = in.getfilename();
argv.push_back(in.getfilename());
tocleanup.push_back(in.getfilename());}
where argv and tocleanup are vector<string>
I fallowed up the code, and found out that tmp is NOT NULL, however, at the
end of the function, before I get back to the calling function, I get a
access violation (segfault, call it the way you want, a big fat bug), I
searched in the header, and I found out the bug was in xstring, a internal
header for <string> (function name : tidy if it can helps).. I really
doesn't have a clue what's the cause of the problem.. I mean there's
nothing non-standard here.. just a few strings and a vector.. I did that
thousands of time before.. but here I get a bug.. I use VC++ 6.0.. which
is not the best compiler in town for STL and cie.. so it may be a compiler
bug...
thanks a lot !
-Eric
void pushargv(TmpFile in) {
std::string tmp = in.getfilename();
argv.push_back(in.getfilename());
tocleanup.push_back(in.getfilename());}
where argv and tocleanup are vector<string>
I fallowed up the code, and found out that tmp is NOT NULL, however, at the
end of the function, before I get back to the calling function, I get a
access violation (segfault, call it the way you want, a big fat bug), I
searched in the header, and I found out the bug was in xstring, a internal
header for <string> (function name : tidy if it can helps).. I really
doesn't have a clue what's the cause of the problem.. I mean there's
nothing non-standard here.. just a few strings and a vector.. I did that
thousands of time before.. but here I get a bug.. I use VC++ 6.0.. which
is not the best compiler in town for STL and cie.. so it may be a compiler
bug...
thanks a lot !
-Eric