Click here to Skip to main content
15,888,521 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: ERROR in reload operator Pin
Christian Graus4-Jun-07 11:18
protectorChristian Graus4-Jun-07 11:18 
QuestionGetProcesses in C++ Pin
gapfulgence1-Jun-07 11:04
gapfulgence1-Jun-07 11:04 
AnswerRe: GetProcesses in C++ Pin
Mark Salsbery1-Jun-07 11:44
Mark Salsbery1-Jun-07 11:44 
AnswerRe: GetProcesses in C++ Pin
Christian Graus1-Jun-07 11:47
protectorChristian Graus1-Jun-07 11:47 
QuestionUI thread not allowing Garbage Collection? Pin
SE_GEEK1-Jun-07 7:08
SE_GEEK1-Jun-07 7:08 
One of my co-workers has had an interesting problem with an application that does lots of text processing. The text processing takes a long time to complete once kicked off (it runs on several gigs of data).

When doing a basic UI for it he set a button on a form that would start this long process (didn't use a background worker, its running in the UI's thread). At this point when watching the processes memory usage it was increasing very fast (around 3 MB's per second).

Then an interesting observation was made ... if a message box was shown after the initial processing had started, the memory usage would go down to a normal level and then for the rest of the processing it would hold solid.

The only way that makes sense to me is if the garbage collector wasn't actually freeing the memory for some reason, until the message box appeared. My guess is that this has something to do with the fact that the processing was being hosted in the UI's thread and not in a worker thread.

We created a console application to do the same processing and it has a stable amount of memory use for the entire time it takes to run.

Has anybody here seen anything else like this where UI threads cause garbage collection not to clean things up ... or at least have an idea of what the main cause of this problem is?

Truly wise men don't play leap frog with Unicorns.

QuestionNEW dialog ID problem Pin
sonavi1-Jun-07 2:11
sonavi1-Jun-07 2:11 
AnswerRe: NEW dialog ID problem Pin
Mark Salsbery1-Jun-07 5:09
Mark Salsbery1-Jun-07 5:09 
QuestionWindows Forms Application with mixed code Requires an annoying Console Window Pin
earlgraham31-May-07 12:31
earlgraham31-May-07 12:31 
AnswerRe: Windows Forms Application with mixed code Requires an annoying Console Window Pin
Mark Salsbery31-May-07 14:38
Mark Salsbery31-May-07 14:38 
GeneralRe: Windows Forms Application with mixed code Requires an annoying Console Window Pin
earlgraham1-Jun-07 5:24
earlgraham1-Jun-07 5:24 
GeneralRe: Windows Forms Application with mixed code Requires an annoying Console Window Pin
Mark Salsbery1-Jun-07 5:44
Mark Salsbery1-Jun-07 5:44 
GeneralRe: Windows Forms Application with mixed code Requires an annoying Console Window Pin
earlgraham1-Jun-07 10:37
earlgraham1-Jun-07 10:37 
GeneralRe: Windows Forms Application with mixed code Requires an annoying Console Window Pin
Mark Salsbery1-Jun-07 12:14
Mark Salsbery1-Jun-07 12:14 
Questionradioc box problem Pin
sonavi30-May-07 23:09
sonavi30-May-07 23:09 
AnswerRe: radioc box problem Pin
Paul Conrad14-Jul-07 13:41
professionalPaul Conrad14-Jul-07 13:41 
QuestionDebugging problem Pin
HZ_7930-May-07 22:00
HZ_7930-May-07 22:00 
Questioncrtdbg.h - _ASSERT_EXPR Pin
Tal S.29-May-07 21:38
Tal S.29-May-07 21:38 
AnswerRe: crtdbg.h - _ASSERT_EXPR Pin
Mark Salsbery30-May-07 5:09
Mark Salsbery30-May-07 5:09 
GeneralRe: crtdbg.h - _ASSERT_EXPR Pin
Tal S.31-May-07 2:06
Tal S.31-May-07 2:06 
GeneralRe: crtdbg.h - _ASSERT_EXPR Pin
Mark Salsbery31-May-07 5:35
Mark Salsbery31-May-07 5:35 
GeneralRe: crtdbg.h - _ASSERT_EXPR Pin
Tal S.31-May-07 9:45
Tal S.31-May-07 9:45 
GeneralRe: crtdbg.h - _ASSERT_EXPR Pin
Mark Salsbery31-May-07 9:50
Mark Salsbery31-May-07 9:50 
QuestionInter-process communications Pin
gapfulgence29-May-07 7:21
gapfulgence29-May-07 7:21 
AnswerRe: Inter-process communications Pin
Christian Graus29-May-07 12:44
protectorChristian Graus29-May-07 12:44 
GeneralRe: Inter-process communications Pin
gapfulgence29-May-07 13:02
gapfulgence29-May-07 13:02 

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.