Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rich Edit 2.0 debug/release build discrepancy

Status
Not open for further replies.

AArmadillo

Programmer
Nov 27, 2002
2
US
I am working on an application that uses a view based off of rich edit 2.0. This program worked fine until I added a new class to handle socket messages, at which point the colors in the rich edit started going bad. This color problem occurs only in the release version, and not in the debug version. I reloaded several different project backups (that worked fine before) and they then had the same problem! This alone has frusturated me to no end.

Thinking this might be a heap problem (I'm still wondering at this point why my backups got this problem also, but if I think about it too much it might drive me crazy o_O), I added _heapchk() calls to all functions that allocated memory and I added afxMemCheckAlways to my application's InitInstance function. Everything checks out, in both the debug and release builds. I also tried eliminating optimizations in the release version, which did not help either.

The very fact that my backups are no longer working makes me think that it has to do with the compiler, and not my code, but I really am not sure. Does anyone have any insight into this issue? Thanks.
 
>> problem occurs only in the release version, and not in
>> the debug version.

start with this: thread116-414835

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top