Click here to Skip to main content
15,920,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
NewsRe: String tokernize looking at the space character Pin
CodingLover31-Aug-08 18:03
CodingLover31-Aug-08 18:03 
GeneralRe: String tokernize looking at the space character Pin
Jijo.Raj31-Aug-08 19:46
Jijo.Raj31-Aug-08 19:46 
GeneralRe: String tokernize looking at the space character Pin
Rane31-Aug-08 19:51
Rane31-Aug-08 19:51 
GeneralRe: String tokernize looking at the space character Pin
Bram van Kampen1-Sep-08 16:15
Bram van Kampen1-Sep-08 16:15 
GeneralRe: String tokernize looking at the space character Pin
bob169726-Sep-08 5:06
bob169726-Sep-08 5:06 
AnswerShould we have a Function for Every Flavour of Char Operations ? Pin
Bram van Kampen1-Sep-08 16:11
Bram van Kampen1-Sep-08 16:11 
QuestionOccasional Exceptions when Setting Menus. Pin
Bram van Kampen31-Aug-08 14:48
Bram van Kampen31-Aug-08 14:48 
AnswerRe: Occasional Exceptions when Setting Menus. Pin
Naveen31-Aug-08 15:23
Naveen31-Aug-08 15:23 
Bram van Kampen wrote:
CMenu * pMenu=GetMenu();
pMenu->Detach();
.
.
pMenu->LoadMenu(IDR_MENU_MASTER);


I think the problem is because of using the pointer returned by GetMenu() function. Such pointers are actually temporary objects and will be destroyed in while process is Idle.

So instead of

CMenu * pMenu=GetMenu();<br />
pMenu->Detach();

try
CMenu * pMenu= new CMenu();

And dont forget to delete the pointer after use.


GeneralRe: Occasional Exceptions when Setting Menus. [modified] Pin
Bram van Kampen1-Sep-08 15:09
Bram van Kampen1-Sep-08 15:09 
AnswerRe: Occasional Exceptions when Setting Menus. Pin
Hamid_RT31-Aug-08 18:28
Hamid_RT31-Aug-08 18:28 
GeneralRe: Occasional Exceptions when Setting Menus. Pin
Bram van Kampen1-Sep-08 15:12
Bram van Kampen1-Sep-08 15:12 
GeneralRe: Occasional Exceptions when Setting Menus. Pin
Hamid_RT1-Sep-08 22:37
Hamid_RT1-Sep-08 22:37 
AnswerRe: Occasional Exceptions when Setting Menus. Pin
Bram van Kampen9-Sep-08 8:23
Bram van Kampen9-Sep-08 8:23 
GeneralRe: Occasional Exceptions when Setting Menus. Pin
Hamid_RT9-Sep-08 8:25
Hamid_RT9-Sep-08 8:25 
QuestionInterProcess Communication Dos Console Win32 GUI Pin
ForNow31-Aug-08 14:26
ForNow31-Aug-08 14:26 
AnswerRe: InterProcess Communication Dos Console Win32 GUI Pin
Bram van Kampen31-Aug-08 15:17
Bram van Kampen31-Aug-08 15:17 
GeneralRe: InterProcess Communication Dos Console Win32 GUI Pin
ForNow31-Aug-08 15:40
ForNow31-Aug-08 15:40 
GeneralRe: InterProcess Communication Dos Console Win32 GUI Pin
Bram van Kampen1-Sep-08 15:49
Bram van Kampen1-Sep-08 15:49 
GeneralRe: InterProcess Communication Dos Console Win32 GUI Pin
ForNow1-Sep-08 17:02
ForNow1-Sep-08 17:02 
GeneralRe: InterProcess Communication Dos Console Win32 GUI Pin
Bram van Kampen3-Sep-08 11:49
Bram van Kampen3-Sep-08 11:49 
GeneralRe: InterProcess Communication Dos Console Win32 GUI Pin
ForNow3-Sep-08 23:27
ForNow3-Sep-08 23:27 
GeneralRe: InterProcess Communication Dos Console Win32 GUI Pin
Bram van Kampen6-Sep-08 15:12
Bram van Kampen6-Sep-08 15:12 
GeneralRe: InterProcess Communication Dos Console Win32 GUI Pin
ForNow6-Sep-08 17:12
ForNow6-Sep-08 17:12 
GeneralRe: InterProcess Communication Dos Console Win32 GUI Pin
Bram van Kampen6-Sep-08 18:34
Bram van Kampen6-Sep-08 18:34 
GeneralRe: InterProcess Communication Dos Console Win32 GUI Pin
ForNow6-Sep-08 18:50
ForNow6-Sep-08 18:50 

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.