We have a weird problem with our software which runs on our tools running on os/2.
Heres a sample code,
const Coord DEFAULT_ORP = Coord( 0.0, 0.0 );
const Coord DEFAULT_PATTERN_REF = Coord( 0.0, 0.0 );
const Coord DEFAULT_FEATURE_SIZE = Coord( 180.0, 180.0 );
where coord() is a class.
These are declared globally and there are a lot of such code all over.
But the problem is during the regular process, somehow the memory gets overwritten for these and it has junk from that point on. like Coord(2.1000e-314, 0) and everything goes beserk, ends with a crash to desktop.
I have no clue why and who is overwritting the memory.
Do we have any tools find such issues or any way to deal with this kind of memory issue?
The entire code is C/C++ compiled with a Visual age compiler.
Any help would be great.