#3821: memory errors in Warzone compiled in VS2010 (related to new ini-stats and
QT)
-------------------------+-------------------------------------
 Reporter:  Reg312       |             Owner:
     Type:  bug          |            Status:  new
 Priority:  normal       |         Milestone:  unspecified
Component:  Data: Stats  |           Version:  git/master
 Keywords:               |  Operating System:  All/Non-Specific
-------------------------+-------------------------------------
 I'm using VS2010 for compiling warzone for my debug experiments
 Source file stats.cpp was changed 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.

-- 
Ticket URL: <http://developer.wz2100.net/ticket/3821>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Warzone2100-project mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-project

Reply via email to