Click here to Skip to main content
15,885,914 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: InitInstance() Problem Pin
Shaheed Legion26-Feb-13 5:44
Shaheed Legion26-Feb-13 5:44 
AnswerRe: InitInstance() Problem Pin
«_Superman_»26-Feb-13 15:20
professional«_Superman_»26-Feb-13 15:20 
QuestionRe: InitInstance() Problem Pin
CPallini26-Feb-13 21:08
mveCPallini26-Feb-13 21:08 
AnswerRe: InitInstance() Problem Pin
Albert Holguin27-Feb-13 4:45
professionalAlbert Holguin27-Feb-13 4:45 
QuestionHandling WinHttp Redirects Pin
endemoniada25-Feb-13 15:57
endemoniada25-Feb-13 15:57 
SuggestionFix: Ribbon text displays inactive after migrating to VS2012 Pin
DataFlask25-Feb-13 13:48
DataFlask25-Feb-13 13:48 
QuestionRe: Fix: Ribbon text displays inactive after migrating to VS2012 Pin
Richard MacCutchan25-Feb-13 21:49
mveRichard MacCutchan25-Feb-13 21:49 
QuestionMemory leak Pin
a_matseevsky25-Feb-13 9:19
a_matseevsky25-Feb-13 9:19 
People, I found that CFileDialog class causes serious problem.
I had a large free memory block in the address space of my prog: 1200 MB
Then I create CFileDialog and delete it:
CFileDialog *pdlg=new CFileDialog(TRUE);
pdlg->DoModal();
delete pdlg;
I check address space again and found only 700 MB:
The reason was very simple: I found some dlls in the address space of my process like urlmon.dll, netapi.dll, modemInst.dll and so on. These dlls was loaded into my address space by CFileDialog class and was not unloaded by its destructor. As a result, I couldn't allocate memory for a large file- address space had been fragmented. Any idea how to solve this situation? I think to create CFileDialog in a separate process. May be, there are better variants?
AnswerRe: Memory leak Pin
Richard Andrew x6425-Feb-13 10:11
professionalRichard Andrew x6425-Feb-13 10:11 
GeneralRe: Memory leak Pin
a_matseevsky25-Feb-13 16:07
a_matseevsky25-Feb-13 16:07 
GeneralRe: Memory leak Pin
Stephen Hewitt25-Feb-13 16:43
Stephen Hewitt25-Feb-13 16:43 
GeneralRe: Memory leak Pin
Richard Andrew x6426-Feb-13 9:11
professionalRichard Andrew x6426-Feb-13 9:11 
AnswerRe: Memory leak Pin
David Crow25-Feb-13 13:24
David Crow25-Feb-13 13:24 
AnswerRe: Memory leak Pin
Stefan_Lang26-Feb-13 4:04
Stefan_Lang26-Feb-13 4:04 
GeneralRe: Memory leak Pin
a_matseevsky26-Feb-13 10:59
a_matseevsky26-Feb-13 10:59 
GeneralRe: Memory leak Pin
Stefan_Lang26-Feb-13 22:44
Stefan_Lang26-Feb-13 22:44 
GeneralRe: Memory leak Pin
a_matseevsky27-Feb-13 2:09
a_matseevsky27-Feb-13 2:09 
GeneralRe: Memory leak Pin
Stefan_Lang27-Feb-13 2:52
Stefan_Lang27-Feb-13 2:52 
GeneralRe: Memory leak Pin
a_matseevsky27-Feb-13 11:44
a_matseevsky27-Feb-13 11:44 
Question[Solved] Memory leak in producer-consumer program Pin
noislude25-Feb-13 7:30
noislude25-Feb-13 7:30 
AnswerRe: Memory leak in producer-consumer program Pin
Richard Andrew x6425-Feb-13 10:08
professionalRichard Andrew x6425-Feb-13 10:08 
GeneralRe: Memory leak in producer-consumer program Pin
noislude25-Feb-13 10:23
noislude25-Feb-13 10:23 
GeneralRe: Memory leak in producer-consumer program Pin
Richard Andrew x6425-Feb-13 10:33
professionalRichard Andrew x6425-Feb-13 10:33 
GeneralRe: Memory leak in producer-consumer program Pin
noislude25-Feb-13 10:42
noislude25-Feb-13 10:42 
QuestionRe: Memory leak in producer-consumer program Pin
David Crow25-Feb-13 13:28
David Crow25-Feb-13 13:28 

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.