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

C / C++ / MFC

 
GeneralRe: UpdateData - Out Of Memory - Serious problem Pin
Trupti Mehta4-Jun-08 5:12
Trupti Mehta4-Jun-08 5:12 
GeneralRe: UpdateData - Out Of Memory - Serious problem Pin
David Crow4-Jun-08 5:38
David Crow4-Jun-08 5:38 
AnswerRe: UpdateData - Out Of Memory - Serious problem Pin
Jijo.Raj4-Jun-08 3:14
Jijo.Raj4-Jun-08 3:14 
GeneralRe: UpdateData - Out Of Memory - Serious problem Pin
Trupti Mehta4-Jun-08 4:38
Trupti Mehta4-Jun-08 4:38 
GeneralRe: UpdateData - Out Of Memory - Serious problem Pin
Jijo.Raj4-Jun-08 8:30
Jijo.Raj4-Jun-08 8:30 
GeneralRe: UpdateData - Out Of Memory - Serious problem Pin
Trupti Mehta4-Jun-08 21:33
Trupti Mehta4-Jun-08 21:33 
GeneralRe: UpdateData - Out Of Memory - Serious problem Pin
Trupti Mehta4-Jun-08 21:58
Trupti Mehta4-Jun-08 21:58 
GeneralRe: UpdateData - Out Of Memory - Serious problem Pin
Trupti Mehta5-Jun-08 2:47
Trupti Mehta5-Jun-08 2:47 
Jijo raj wrote:
Keep DeptStock as a member of parent and Let the child windows keep a reference to your DeptStock and update that. When the parent window create you child window, pass DeptStock as constructor parameter by reference. So the child dialog can keep a reference to it. So that you can directly modify the DeptStock, by being in the child dialog itself and can avoid that message updating mechanism. You can also use pointers.


Thanks jijo, this helped me reduce 1 message to the parent & solved out of memory problem. Based on your info reg. calling destructors, I studied over it & removed all lines wher I have unnecessarily explicitly call the destructor.

This helped, but Still Assertion Failed continues. In fact on ending the child1 & showing child2, i get error message based on wincore lib. Child 2 is visible but the error keeps on coming for some time & then again normal. It seems like something is uncompatible or am doing it wrongly. Can I pass you the code, so you can help me much better. Please let me know how do I send you the parent & child file.

Please help me.

Thanks

Terry

AnswerRe: UpdateData - Out Of Memory - Serious problem Pin
Artem Kustikov4-Jun-08 4:52
Artem Kustikov4-Jun-08 4:52 
GeneralRe: UpdateData - Out Of Memory - Serious problem Pin
Trupti Mehta4-Jun-08 5:15
Trupti Mehta4-Jun-08 5:15 
QuestionWhen second application runs first should be hidden Pin
VCProgrammer4-Jun-08 2:13
VCProgrammer4-Jun-08 2:13 
AnswerRe: When second application runs first should be hidden Pin
Jijo.Raj4-Jun-08 2:29
Jijo.Raj4-Jun-08 2:29 
AnswerRe: When second application runs first should be hidden Pin
Saurabh.Garg4-Jun-08 2:55
Saurabh.Garg4-Jun-08 2:55 
AnswerRe: When second application runs first should be hidden Pin
Hamid_RT4-Jun-08 21:11
Hamid_RT4-Jun-08 21:11 
QuestionCustom toolbars? Pin
Lord Kixdemp4-Jun-08 2:03
Lord Kixdemp4-Jun-08 2:03 
AnswerRe: Custom toolbars? Pin
_AnsHUMAN_ 4-Jun-08 2:07
_AnsHUMAN_ 4-Jun-08 2:07 
GeneralRe: Custom toolbars? Pin
Lord Kixdemp4-Jun-08 5:42
Lord Kixdemp4-Jun-08 5:42 
QuestionHow to get the full path of a file? Pin
CrocodileBuck4-Jun-08 1:57
CrocodileBuck4-Jun-08 1:57 
AnswerRe: How to get the full path of a file? Pin
_AnsHUMAN_ 4-Jun-08 2:02
_AnsHUMAN_ 4-Jun-08 2:02 
GeneralRe: How to get the full path of a file? Pin
CrocodileBuck4-Jun-08 2:17
CrocodileBuck4-Jun-08 2:17 
GeneralRe: How to get the full path of a file? Pin
_AnsHUMAN_ 4-Jun-08 2:23
_AnsHUMAN_ 4-Jun-08 2:23 
GeneralRe: How to get the full path of a file? Pin
CrocodileBuck4-Jun-08 2:44
CrocodileBuck4-Jun-08 2:44 
AnswerRe: How to get the full path of a file? Pin
Michael Schubert4-Jun-08 2:04
Michael Schubert4-Jun-08 2:04 
AnswerRe: How to get the full path of a file? Pin
David Crow4-Jun-08 3:45
David Crow4-Jun-08 3:45 
GeneralRe: How to get the full path of a file? Pin
CrocodileBuck4-Jun-08 4:16
CrocodileBuck4-Jun-08 4:16 

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.