Problem with running Warzone compiled in VS2010
Posted: 06 Dec 2012, 17:21
Hello
I'm using VS2010 for compiling warzone for my debug experiments
Source file stats.cpp was changes in latest commints in master-version (converting stats to ini)
since this changes i cannot run warzone, getting memory errors!
Also i found way to fix this memory erros
i just need add strdup() calls to places where QT string get converted to c-string
e.g.
weaponName =ini.value("turret").toString().toUtf8().constData();
weaponName = strdup(ini.value("turret").toString().toUtf8().constData());
after this changes i can run warzone.
Also i got problem with nonexistent file e3demo.cpp (just removed it from list of files and warzone got compiled)
I'm using VS2010 for compiling warzone for my debug experiments
Source file stats.cpp was changes in latest commints in master-version (converting stats to ini)
since this changes i cannot run warzone, getting memory errors!
Also i found way to fix this memory erros
i just need add strdup() calls to places where QT string get converted to c-string
e.g.
weaponName =ini.value("turret").toString().toUtf8().constData();
weaponName = strdup(ini.value("turret").toString().toUtf8().constData());
after this changes i can run warzone.
Also i got problem with nonexistent file e3demo.cpp (just removed it from list of files and warzone got compiled)