Click here to Skip to main content
15,918,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PreTranslateMessage in ocx Pin
igor196028-Aug-03 8:26
igor196028-Aug-03 8:26 
GeneralRe: PreTranslateMessage in ocx Pin
Dudi Avramov30-Aug-03 19:30
Dudi Avramov30-Aug-03 19:30 
GeneralCustom CWnd - Z-Order Pin
Andrew Birt27-Aug-03 0:49
Andrew Birt27-Aug-03 0:49 
GeneralRe: Custom CWnd - Z-Order Pin
l a u r e n27-Aug-03 7:56
l a u r e n27-Aug-03 7:56 
GeneralThreading problem (Threads, Dialogs and Messages) Pin
d-mon27-Aug-03 0:27
d-mon27-Aug-03 0:27 
GeneralRe: Threading problem (Threads, Dialogs and Messages) Pin
Neville Franks27-Aug-03 2:24
Neville Franks27-Aug-03 2:24 
GeneralRe: Threading problem (Threads, Dialogs and Messages) Pin
John M. Drescher27-Aug-03 4:54
John M. Drescher27-Aug-03 4:54 
GeneralRe: Threading problem (Threads, Dialogs and Messages) Pin
d_mon@email.si27-Aug-03 9:27
sussd_mon@email.si27-Aug-03 9:27 
I've made some modifications to the program:
work thread in CWorkDlg doesn't send message anymore, it just says dlg->EndDialog(IDOK) (it works fine too)
I didn't find any memory leaks or something like that. It exits fine. Everything works ok.

It's not that of a complex thing:
One dialog (the main one) is for gathering data. When all data is gathered you start the long calculations -> Another dialog is created (dialog with progress bar and abort button). When the calculation finishes the dialog closes or you can abort it and it's closed then. That's it. Any ideas how to do that?

The problem is here (like I described before):
The code works fine in Debug mode, but it doesn't work in Release mode (you have to set: Property Pages for project->C/C++->Optimization->Optimization to Disabled (/0d), so that it works.

And another abnormality I found:
If I leave Optimization on speed (default for release) and I add some code into the while(pD->work) loop, then it also exits fine.

I would be very grateful if someone could help.

I'd like to send a project somewhere so that you all that are willing to help could see.
Where can I do that?
GeneralRe: Threading problem (Threads, Dialogs and Messages) Pin
Neville Franks27-Aug-03 10:24
Neville Franks27-Aug-03 10:24 
GeneralRe: Threading problem (Threads, Dialogs and Messages) Pin
valikac27-Aug-03 12:53
valikac27-Aug-03 12:53 
Generallinking error Pin
bhawin1327-Aug-03 0:04
bhawin1327-Aug-03 0:04 
GeneralRe: linking error Pin
Ryan Binns27-Aug-03 0:45
Ryan Binns27-Aug-03 0:45 
Generallinking error Pin
bhawin1327-Aug-03 0:02
bhawin1327-Aug-03 0:02 
GeneralRe: linking error Pin
Alexander M.,27-Aug-03 13:02
Alexander M.,27-Aug-03 13:02 
GeneralExperts please help.. Pin
rohit.dhamija26-Aug-03 23:56
rohit.dhamija26-Aug-03 23:56 
GeneralRe: Experts please help.. Pin
Magnus Westin27-Aug-03 2:45
Magnus Westin27-Aug-03 2:45 
Generalsome predefinitions Pin
FlyingDancer26-Aug-03 23:09
FlyingDancer26-Aug-03 23:09 
GeneralRe: some predefinitions Pin
Ryan Binns27-Aug-03 0:52
Ryan Binns27-Aug-03 0:52 
GeneralRe: some predefinitions Pin
FlyingDancer27-Aug-03 2:32
FlyingDancer27-Aug-03 2:32 
Questionunicode value ??? Pin
Manikandan26-Aug-03 22:57
Manikandan26-Aug-03 22:57 
AnswerRe: unicode value ??? Pin
Anonymous27-Aug-03 3:51
Anonymous27-Aug-03 3:51 
QuestionHow to rigister the auto-hide style window? Pin
Hendy_So26-Aug-03 22:37
Hendy_So26-Aug-03 22:37 
GeneralMemory Leakage Pin
Jahangir Jamshed26-Aug-03 22:30
sussJahangir Jamshed26-Aug-03 22:30 
GeneralRe: Memory Leakage Pin
Magnus Westin27-Aug-03 3:02
Magnus Westin27-Aug-03 3:02 
Questionhow i can retrieved thread handle from ID one Pin
El'Cachubrey26-Aug-03 22:26
El'Cachubrey26-Aug-03 22:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.