Developed by Blizzard following the sucessful WarCraft series, Starcraft is undoubtably one of the most innovative and popular RTS games to hit the market. Introducing for the first time three races all completly unique yet perfectly balanced, this made for some fantastic gameplay with zergling rushes, to siege tank massacres. With starcraft having such a cult following there are bountiful mods available from simplistic character changes to new scenarios, and challenges to face. The fact that Starcraft has been game of the year sums up just how good this game is, so crank it up if you are not already playing it!

Post news Report RSS GPTP has Memory Leak problem

setMaxSightRange's memory leak problem

Posted by on

i was found this feature has memory leak problem ( thanks for skff1234 )

in the code setMaxSightRange

it's make the increase memory from 11 feature

and when it start the map then this code activate and increase the sight range data

but this code isn't activate only on boot.

it's activate when every play the map

activate... activate.... activate.... then it's make memory leak problem

like this photo

Cap 2016 02 21 14 48 20 913

Cap 2016 02 21 14 48 29 006

Cap 2016 02 21 14 48 38 745

so if you want to use the setMaxSightRange code then

open the game_hooks.cpp

write the this code under the #include codes↓

bool firstboot = false;

and in the game_on() write like this

if(firstboot==false){
setMaxSightRange<write here the sight ranges your want>();
firstboot=true;
}

then memory leak problem will be solved

thanks for the reading :)


Post comment Comments
skff1234
skff1234 - - 119 comments

very nine work

Reply Good karma Bad karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: