printf and reference issue Programming Software Development by Shay_ … get a value in an XML file : [code]sscanf(xEffect.getChildNode("mpmodif").getAttribute("value"), "%d"… Re: printf and reference issue Programming Software Development by Salem Show us how test->GetMpModif() is implemented. If in debug, the member variable is fine, then my guess would be either - the 'get' function is doing the wrong thing. - the class instance may already have gone out of scope (check the dtor to see if it's called). Re: printf and reference issue Programming Software Development by Shay_ The getter is the below : [code]const int GetMpModif() const {return mpModif_;}[/code] In debug, the member variable is fine SOMETIMES. It does not seem to be a dtor problem but I think the variable affectation does not work for a strange reason... :( Re: printf and reference issue Programming Software Development by Salem Seems to me that you have an unrelated memory overrun in another part of the program. As soon as you've set the value, and can verify that the correct value is stored, use the debugger to add a "watch" on that variable instance to detect another attempt to write to that location. Then allow the code to run (probably slowly if …