Click here to Skip to main content
15,901,505 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Does Win32 console application supports WinMain and Winproc functions Pin
kakan2-Jan-06 19:44
professionalkakan2-Jan-06 19:44 
QuestionStart->Run search path Pin
Chintoo7232-Jan-06 19:17
Chintoo7232-Jan-06 19:17 
AnswerRe: Start->Run search path Pin
Owner drawn2-Jan-06 19:43
Owner drawn2-Jan-06 19:43 
AnswerRe: Start->Run search path Pin
Michael Dunn3-Jan-06 8:04
sitebuilderMichael Dunn3-Jan-06 8:04 
QuestionDateTimePicker Issue Pin
romuzu2-Jan-06 16:09
romuzu2-Jan-06 16:09 
QuestionDetecting setup with hook Pin
Castylx2-Jan-06 15:34
Castylx2-Jan-06 15:34 
Questionhardware security Pin
happycpp2-Jan-06 15:31
happycpp2-Jan-06 15:31 
QuestionCan't open more than 16 documents in my application Pin
brdavid2-Jan-06 15:04
brdavid2-Jan-06 15:04 
I am having a rather odd problem with my VC++ application when it comes to opening a certain number of documents. Here's a little background. Each document window that opens is a rather complicated formview run by a rather large and complicated object. The serialization alone saves to a file where the size averages about 200k. when I open around 16 documents, in debug the application pretty much stops working, that is I cannot open anything. Clicking on a menu results in nothing. Clicking the toolbar buttons results in nothing. Navigation completely halts. When run in release the application crashes when i open the 16th document. Sometimes I can get 17.

Now I'm thinking this is a memory issue. Certainly sounds like it. My following questions which I hope someone here can answer are:

1) What do you think this is?
2) If it is memory any ideas on solving it?
3) I was thinking perhaps I could have only the object that is currently active in memory, that is, if a person clicks a document window, then activation that object and clear the rest. Problem here is I have no idea how to do this? Opening up a document takes a bit of time: around 3 to 5 seconds to open a document. If I cleared the object I would have to rebuild it which means a 3 to 5 delay each time we switch to a new document window.
4) Any other ideas?

Thanks for the help! I would include source code, but we are talking a HUGE project here. If you need access to the code I can certainly make that happen. Maybe we can narrow the search down to a few c++ files.

Thanks again!


-- modified at 21:05 Monday 2nd January, 2006
AnswerRe: Can't open more than 16 documents in my application Pin
PJ Arends2-Jan-06 15:23
professionalPJ Arends2-Jan-06 15:23 
GeneralRe: Can't open more than 16 documents in my application Pin
brdavid3-Jan-06 1:28
brdavid3-Jan-06 1:28 
GeneralRe: Can't open more than 16 documents in my application Pin
PJ Arends3-Jan-06 7:02
professionalPJ Arends3-Jan-06 7:02 
GeneralRe: Can't open more than 16 documents in my application Pin
brdavid5-Jan-06 4:43
brdavid5-Jan-06 4:43 
GeneralRe: Can't open more than 16 documents in my application Pin
PJ Arends5-Jan-06 18:28
professionalPJ Arends5-Jan-06 18:28 
GeneralRe: Can't open more than 16 documents in my application Pin
brdavid6-Jan-06 6:06
brdavid6-Jan-06 6:06 
Questionaccessing non-static variables Pin
tonyro2-Jan-06 13:37
tonyro2-Jan-06 13:37 
AnswerRe: accessing non-static variables Pin
PJ Arends2-Jan-06 15:09
professionalPJ Arends2-Jan-06 15:09 
QuestionFlashWindowEx Pin
Dody_DK2-Jan-06 10:55
Dody_DK2-Jan-06 10:55 
AnswerRe: FlashWindowEx Pin
PJ Arends2-Jan-06 15:15
professionalPJ Arends2-Jan-06 15:15 
GeneralRe: FlashWindowEx Pin
Dody_DK2-Jan-06 23:39
Dody_DK2-Jan-06 23:39 
GeneralRe: FlashWindowEx Pin
Gavin Taylor3-Jan-06 6:32
professionalGavin Taylor3-Jan-06 6:32 
GeneralRe: FlashWindowEx Pin
Dody_DK3-Jan-06 7:47
Dody_DK3-Jan-06 7:47 
QuestionTooltip on editbox Pin
mehrdadov2-Jan-06 6:29
mehrdadov2-Jan-06 6:29 
AnswerRe: Tooltip on editbox Pin
Ravi Bhavnani2-Jan-06 8:40
professionalRavi Bhavnani2-Jan-06 8:40 
QuestionError reading from com port Pin
nitgonz2-Jan-06 5:02
nitgonz2-Jan-06 5:02 
AnswerRe: Error reading from com port Pin
krmed2-Jan-06 5:34
krmed2-Jan-06 5:34 

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.