Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi,

Currently, BREW Simulator provides a simple memory leak finder tool. This tool displays "Module failed to free all memory" dialog box whenever an applet fails to free / release all the resources. For an developer, this is quite an useful tool.

But, this tool does not find memory corruption, buffer overruns etc. As a result, for some complex problem, developer needs to use external applications to find the same.

It would be very helpful if the BREW simulator also finds the memory corruption, buffer overruns.

Thanks,
empeegee.

Usually when you switch into windows heap mode in the simulator it'll catch most heap corruptions using the built in windows heap manager.
Its pretty easy to add this into your own code too, that way you never have to rely on the target , although in brews case since it will allocate memory inside an API call you can't track it 100% like you could if it were inside the simulator.
But boundschecker is an order of magnitude better than what would likely be added.

Usually when you switch into windows heap mode in the simulator it'll catch most heap corruptions using the built in windows heap manager.
Its pretty easy to add this into your own code too, that way you never have to rely on the target , although in brews case since it will allocate memory inside an API call you can't track it 100% like you could if it were inside the simulator.
But boundschecker is an order of magnitude better than what would likely be added.