// JP opened flex table

Click to See Complete Forum and Search --> : Message Posting fails in release


Pranav_Singh
February 18th, 2000, 07:47 AM
Hello All,
I have a multithreaded application.
The main window is splitted in many parts using CSplitterWnd. The split children have got their views derived from different view classes like CTreeView, CView etc.
I have been using SendMessage and PostMessage to communicate among these views and the mainframe.
This works fine in Debug build but as soon as I switch to Release build, the application starts to give unhandled exception error.
To get away from this I had to remove all message posting between the views and the mainframe and now it is working in release mode as well.
I earlier thought it may be due to speed optimization of the compiler and tried by removing the same in Release build as well but it didn't work.
The data posted with the messages remains valid through out and hence no chance of the data being destroyed before it is processed.
Can anyone help me to understand why is this is happening?

Thanks,
Pranav

John Bundgaard
February 19th, 2000, 08:02 PM
Try enabling debug information for the release version, and give it a spin under the debugger.

Pranav_Singh
February 22nd, 2000, 11:50 PM
Thanks all.
I have solved the problem. The stack was getting corrupted.

RY33
March 25th, 2001, 08:03 AM
Hi.
I have the same problem.
Can you please let me know how did you solve your problem, and what should I do about it?
10x a lot in advanced.

RY33
March 25th, 2001, 08:14 AM
Hi.
I have the same problem.
Can you please let me know how did you solve your problem, and what should I do about it?
10x a lot in advanced.

//JP added flex table