Jeez, I hope someone can help me.<br><br>I'm using edit boxes to display CStrings via the UpdateData(FALSE). At times the variable attached to the edit box are changed. Whenever I change the CString variable the gosh-darn thing causes a memory leak. Why? I have no idea and that is my question. The edit box in question is part of a child window that is started by a DoModal() in the parent window. I was under the impression that I could change the CString variable at anytime by simply reassigning it and then give the command UpdateData(FALSE) and the computer would display the newly reassigned value in the edit box. Example<br><br><br>//Assigns value to variable CString 'text' and displays on screen in an edit box.<br>text = "Hello";<br>UpdateData(FALSE);<br><br>//causes a memory leak when 'text' is reassigned.<br>text = "Goodbye";<br>UpdateData(FALSE);<br><br>I get the intended result and the program does redisplay the edit box with the newly reassigned value, but now for some reason a memory leak occurs. Why is this? Please I've been pulling out my hair for over a month trying to figure out this one. Do I need to clear the value of "Hello" before assigning "Goodbye"? If so, how do I do this? Does the fact that the edit box is in a child window instead of the main window have anything to do with my problem? Any help would be appriciated<br><br>Thank you<br>Nyjil