Click here to Skip to main content
15,911,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to make the mfc button as press & lock Pin
LaHaHa27-Oct-05 18:54
LaHaHa27-Oct-05 18:54 
GeneralRe: How to make the mfc button as press & lock Pin
Christian Graus27-Oct-05 19:06
protectorChristian Graus27-Oct-05 19:06 
AnswerRe: How to make the mfc button as press & lock Pin
P-Rex27-Oct-05 20:05
P-Rex27-Oct-05 20:05 
GeneralRe: How to make the mfc button as press & lock Pin
LaHaHa27-Oct-05 21:38
LaHaHa27-Oct-05 21:38 
GeneralRe: How to make the mfc button as press & lock Pin
LaHaHa27-Oct-05 21:50
LaHaHa27-Oct-05 21:50 
AnswerRe: How to make the mfc button as press & lock Pin
BadKarma27-Oct-05 21:06
BadKarma27-Oct-05 21:06 
GeneralRe: How to make the mfc button as press & lock Pin
LaHaHa27-Oct-05 21:51
LaHaHa27-Oct-05 21:51 
QuestionThread ending problem in CFormView Pin
ledallam27-Oct-05 16:34
ledallam27-Oct-05 16:34 
Hi,

I have a CFormView derived class which has a thread running at the background which does some background processing. On my view, I have a button which when clicked, the handler function gets called and takes the user to some other screen. When clicked on the button, I cannot wait till my background thread ends and then call the handler. I have to immediately call the handler function without waiting for the thread to end.
What I am doing presently is, just signaling an event to end the thread and call the handler without waitng for he thread to end. if I do this way,my program is crashing with an assertion(it says illegal access of members in the thread). Inside the thread, members of the CFormView derived class are used.

Can anyone please suggest me a solution to call the handler immediately, without waiting for the thread to end and at the same time my program should not crash.

Thanks
Madhavi.

QuestionRe: Thread ending problem in CFormView Pin
Roger Stoltz27-Oct-05 21:08
Roger Stoltz27-Oct-05 21:08 
AnswerRe: Thread ending problem in CFormView Pin
Blake Miller28-Oct-05 7:39
Blake Miller28-Oct-05 7:39 
QuestionPreventing OnLButtonUp handler beign called in the CFormView in certain conditions. Pin
ledallam27-Oct-05 16:24
ledallam27-Oct-05 16:24 
AnswerRe: Preventing OnLButtonUp handler beign called in the CFormView in certain conditions. Pin
Christian Graus27-Oct-05 16:30
protectorChristian Graus27-Oct-05 16:30 
GeneralRe: Preventing OnLButtonUp handler beign called in the CFormView in certain conditions. Pin
ledallam27-Oct-05 18:54
ledallam27-Oct-05 18:54 
GeneralRe: Preventing OnLButtonUp handler beign called in the CFormView in certain conditions. Pin
Christian Graus27-Oct-05 19:03
protectorChristian Graus27-Oct-05 19:03 
Questionexecution access permissions Pin
Luke Murray27-Oct-05 16:00
Luke Murray27-Oct-05 16:00 
AnswerRe: execution access permissions Pin
Blake V. Miller27-Oct-05 16:29
Blake V. Miller27-Oct-05 16:29 
GeneralRe: execution access permissions Pin
Luke Murray27-Oct-05 16:51
Luke Murray27-Oct-05 16:51 
GeneralRe: execution access permissions Pin
Blake V. Miller24-Nov-05 9:16
Blake V. Miller24-Nov-05 9:16 
QuestionImport Certificate to PKCS 11 token Pin
Rajkishore Patel27-Oct-05 15:44
Rajkishore Patel27-Oct-05 15:44 
AnswerRe: Import Certificate to PKCS 11 token Pin
duyaofei22-Oct-09 23:18
duyaofei22-Oct-09 23:18 
GeneralRe: Import Certificate to PKCS 11 token Pin
na265094527-Mar-11 17:14
na265094527-Mar-11 17:14 
QuestionGet Window below mouse Pin
Andrei B27-Oct-05 15:08
Andrei B27-Oct-05 15:08 
AnswerRe: Get Window below mouse Pin
Andrei B27-Oct-05 15:25
Andrei B27-Oct-05 15:25 
GeneralRe: Get Window below mouse Pin
Trollslayer28-Oct-05 3:32
mentorTrollslayer28-Oct-05 3:32 
QuestionAccess Violation on App InitInstance Pin
NeverFall27-Oct-05 15:07
NeverFall27-Oct-05 15:07 

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.