[Qt-interest] Qt with x64 computer

Ender EREL erelender at yahoo.com
Thu Jan 8 16:47:31 CET 2009


I've had a similar problem before, i think your problem might be the 
same as mine.

As far as i could find out, std::string has different structure in debug 
mode than in release mode. If your program gets linked with the wrong 
version (release mode std::string with debug mode app), the value that 
.toStdString() returns is invalid, and the resulting string is 
corrupted, and therefore causes a crash while deletion.

In your case, check the value of StdStrg after the assignment. If it 
seems to have a garbage value, your problem might be this. I couldn't 
figure out a way to resolve this issue, but i found a workaround.

std::string StdStrg = (const char*)loadfile.toAscii();
This line of code seemed to do the trick for me. Hope this helps you.

-- 
ender



More information about the Qt-interest-old mailing list