Click here to Skip to main content
15,902,634 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Adding an ActiveX control in ActiveX control project Pin
Muhammad Azam9-Sep-04 19:25
Muhammad Azam9-Sep-04 19:25 
Generalinheritance,searching and recursion Pin
Member 13550639-Sep-04 3:48
Member 13550639-Sep-04 3:48 
GeneralRe: inheritance,searching and recursion Pin
David Crow9-Sep-04 8:29
David Crow9-Sep-04 8:29 
GeneralDinamic Menus Pin
ivax9-Sep-04 2:33
ivax9-Sep-04 2:33 
QuestionHow to change the menu bar icon.... Pin
bouli9-Sep-04 1:48
bouli9-Sep-04 1:48 
AnswerRe: How to change the menu bar icon.... Pin
Roger Allen9-Sep-04 11:40
Roger Allen9-Sep-04 11:40 
Questionis there a memory limitation for MFC programs? Pin
lonely_life9-Sep-04 0:52
lonely_life9-Sep-04 0:52 
AnswerRe: is there a memory limitation for MFC programs? Pin
vineas9-Sep-04 6:34
vineas9-Sep-04 6:34 
Default stack size is the same for MFC apps vs console apps (1MB if I remember correctly). However with an MFC app, you'll find much more of your stack being used by MFC itself. The console app doesn't have this overhead which is why it was running OK. Also, if you're running a debug build, a lot of the stack is being used by all the debugging info.

Since you're pretty close, fails sometimes and not others, you could probably just bump up your stack size a bit and be OK. This is done via a link option, covered in MSDN here[^].

Another option would be to dump this code out into a worker thread, which will have it's own stack and won't have the MFC overhead using alot of it.

-----
In the land of the blind, the one eyed man is king.
GeneralNot Running when adding RIch Edit Box to a Dialog Pin
pubududilena9-Sep-04 0:44
pubududilena9-Sep-04 0:44 
GeneralRe: Not Running when adding RIch Edit Box to a Dialog Pin
Arsalan Malik9-Sep-04 0:48
Arsalan Malik9-Sep-04 0:48 
GeneralRe: Not Running when adding RIch Edit Box to a Dialog Pin
David Crow9-Sep-04 2:19
David Crow9-Sep-04 2:19 
GeneralCreate Thumbnail of MS WORD file Pin
Sumit Kapoor9-Sep-04 0:07
Sumit Kapoor9-Sep-04 0:07 
GeneralDebugging with Visual Studio .NET Pin
Jerome Conus8-Sep-04 23:32
Jerome Conus8-Sep-04 23:32 
GeneralRe: Debugging with Visual Studio .NET Pin
Michael Dunn9-Sep-04 7:10
sitebuilderMichael Dunn9-Sep-04 7:10 
QuestionHow to create a autofill utility Pin
akszn8-Sep-04 23:02
akszn8-Sep-04 23:02 
GeneralGetting Page Size and then Printing Text. Pin
Eversman8-Sep-04 21:52
Eversman8-Sep-04 21:52 
GeneralApplication Installation once only. Pin
Mythri.B.L8-Sep-04 21:18
Mythri.B.L8-Sep-04 21:18 
GeneralRe: Application Installation once only. Pin
David Crow9-Sep-04 2:31
David Crow9-Sep-04 2:31 
GeneralRe: Application Installation once only. Pin
Anonymous9-Sep-04 19:26
Anonymous9-Sep-04 19:26 
QuestionHow to Use Object of MFC class in ATL DLL Pin
zahid_ash8-Sep-04 21:00
zahid_ash8-Sep-04 21:00 
GeneralHide Static Text Pin
Rajesh_K_Sharma8-Sep-04 20:15
Rajesh_K_Sharma8-Sep-04 20:15 
GeneralRe: Hide Static Text Pin
LOUIS Christian8-Sep-04 21:30
LOUIS Christian8-Sep-04 21:30 
GeneralRe: Hide Static Text Pin
David Crow9-Sep-04 2:36
David Crow9-Sep-04 2:36 
Generalhelp!!help,how to use IVMRWindowlessControl9. Pin
yingkou8-Sep-04 19:18
yingkou8-Sep-04 19:18 
QuestionFail to register OLE Drop Target!!!??? Pin
Pear Redsome8-Sep-04 18:25
Pear Redsome8-Sep-04 18:25 

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.