Click here to Skip to main content
14,936,495 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionERROR in reload operator Pin
Chen-XuNuo1-Jun-07 21:59
MemberChen-XuNuo1-Jun-07 21:59 
AnswerRe: ERROR in reload operator Pin
Christian Graus2-Jun-07 13:14
protectorChristian Graus2-Jun-07 13:14 
GeneralRe: ERROR in reload operator Pin
Chen-XuNuo3-Jun-07 18:54
MemberChen-XuNuo3-Jun-07 18:54 
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
Membergapfulgence1-Jun-07 11:04 
AnswerRe: GetProcesses in C++ Pin
Mark Salsbery1-Jun-07 11:44
MemberMark 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
MemberSE_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
Membersonavi1-Jun-07 2:11 
AnswerRe: NEW dialog ID problem Pin
Mark Salsbery1-Jun-07 5:09
MemberMark Salsbery1-Jun-07 5:09 
QuestionWindows Forms Application with mixed code Requires an annoying Console Window Pin
earlgraham31-May-07 12:31
Memberearlgraham31-May-07 12:31 
AnswerRe: Windows Forms Application with mixed code Requires an annoying Console Window Pin
Mark Salsbery31-May-07 14:38
MemberMark Salsbery31-May-07 14:38 
GeneralRe: Windows Forms Application with mixed code Requires an annoying Console Window Pin
earlgraham1-Jun-07 5:24
Memberearlgraham1-Jun-07 5:24 
GeneralRe: Windows Forms Application with mixed code Requires an annoying Console Window Pin
Mark Salsbery1-Jun-07 5:44
MemberMark Salsbery1-Jun-07 5:44 
GeneralRe: Windows Forms Application with mixed code Requires an annoying Console Window Pin
earlgraham1-Jun-07 10:37
Memberearlgraham1-Jun-07 10:37 
GeneralRe: Windows Forms Application with mixed code Requires an annoying Console Window Pin
Mark Salsbery1-Jun-07 12:14
MemberMark Salsbery1-Jun-07 12:14 
Questionradioc box problem Pin
sonavi30-May-07 23:09
Membersonavi30-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
MemberHZ_7930-May-07 22:00 
Questioncrtdbg.h - _ASSERT_EXPR Pin
Tal S.29-May-07 21:38
MemberTal S.29-May-07 21:38 
AnswerRe: crtdbg.h - _ASSERT_EXPR Pin
Mark Salsbery30-May-07 5:09
MemberMark Salsbery30-May-07 5:09 
GeneralRe: crtdbg.h - _ASSERT_EXPR Pin
Tal S.31-May-07 2:06
MemberTal S.31-May-07 2:06 
GeneralRe: crtdbg.h - _ASSERT_EXPR Pin
Mark Salsbery31-May-07 5:35
MemberMark Salsbery31-May-07 5:35 
GeneralRe: crtdbg.h - _ASSERT_EXPR Pin
Tal S.31-May-07 9:45
MemberTal S.31-May-07 9:45 
GeneralRe: crtdbg.h - _ASSERT_EXPR Pin
Mark Salsbery31-May-07 9:50
MemberMark Salsbery31-May-07 9:50 

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.