Click here to Skip to main content
15,888,733 members
Home / Discussions / C#
   

C#

 
QuestionIBM - ILog Diagram: Find node position in pixel Pin
hassan faghihi21-Nov-14 22:20
professionalhassan faghihi21-Nov-14 22:20 
QuestionPocketSphinx Pin
Member 1001593821-Nov-14 7:54
Member 1001593821-Nov-14 7:54 
AnswerRe: PocketSphinx Pin
Dave Kreskowiak21-Nov-14 8:39
mveDave Kreskowiak21-Nov-14 8:39 
AnswerRe: PocketSphinx Pin
BillWoodruff21-Nov-14 9:31
professionalBillWoodruff21-Nov-14 9:31 
Questionhow to solve System.OutOf Memory Exception was thrown Pin
cicill21-Nov-14 5:24
cicill21-Nov-14 5:24 
AnswerRe: how to solve System.OutOf Memory Exception was thrown Pin
Eddy Vluggen21-Nov-14 5:35
professionalEddy Vluggen21-Nov-14 5:35 
AnswerRe: how to solve System.OutOf Memory Exception was thrown Pin
OriginalGriff21-Nov-14 5:50
mveOriginalGriff21-Nov-14 5:50 
AnswerRe: how to solve System.OutOf Memory Exception was thrown Pin
hassan faghihi21-Nov-14 22:27
professionalhassan faghihi21-Nov-14 22:27 
First, If you continuously generate data, and mostly objects, they took lot of space, even though you destroy any link to object data Hmmm | :|

that's what i previously experience with win form game, which had many frame rendering in a second, the memory slowly became full, and in about 90% it generate such error.

so what i done was to call Garbage Collector manually, GC.Collect() took some time to process, so you better run it in separate trade , and also not per any cycle of your loop...

Once you call it, lot of memory goes free... (as i mention before, it only work for objects which there are no link to, and are lost in memory without any reference from your application to)

Second, you also don't seem to clear your result string, it always got a +=, mean it just keep on growing, though if it's just that simple loop i don't think it gonna matter, but since i don't see your variable declaration, I'm afraid it growth too much big, through other processes, or a loop contain this process, which cause you run out of memory.

modified 23-Nov-14 2:07am.

QuestionApplication has stopped working error in C# .NET application Pin
eljainc21-Nov-14 4:51
eljainc21-Nov-14 4:51 
AnswerRe: Application has stopped working error in C# .NET application Pin
OriginalGriff21-Nov-14 5:10
mveOriginalGriff21-Nov-14 5:10 
AnswerRe: Application has stopped working error in C# .NET application Pin
Redgum21-Nov-14 5:11
professionalRedgum21-Nov-14 5:11 
AnswerRe: Application has stopped working error in C# .NET application Pin
Richard MacCutchan21-Nov-14 5:12
mveRichard MacCutchan21-Nov-14 5:12 
QuestionRaise RowCommand event of GridView with asynchronous postback Pin
Miroslav Georgiev20-Nov-14 22:33
Miroslav Georgiev20-Nov-14 22:33 
QuestionSentimental analysis and plotting charts with C# Pin
sachidanandgowda20-Nov-14 21:54
sachidanandgowda20-Nov-14 21:54 
QuestionRe: Sentimental analysis and plotting charts with C# Pin
Richard MacCutchan20-Nov-14 23:21
mveRichard MacCutchan20-Nov-14 23:21 
AnswerRe: Sentimental analysis and plotting charts with C# Pin
Mycroft Holmes20-Nov-14 23:31
professionalMycroft Holmes20-Nov-14 23:31 
GeneralRe: Sentimental analysis and plotting charts with C# Pin
Richard MacCutchan20-Nov-14 23:57
mveRichard MacCutchan20-Nov-14 23:57 
GeneralRe: Sentimental analysis and plotting charts with C# Pin
BillWoodruff21-Nov-14 9:35
professionalBillWoodruff21-Nov-14 9:35 
GeneralRe: Sentimental analysis and plotting charts with C# Pin
Mycroft Holmes21-Nov-14 13:10
professionalMycroft Holmes21-Nov-14 13:10 
AnswerRe: Sentimental analysis and plotting charts with C# Pin
BillWoodruff21-Nov-14 9:40
professionalBillWoodruff21-Nov-14 9:40 
GeneralI want to know whether mycode is right Pin
fengyuchun8820-Nov-14 16:45
fengyuchun8820-Nov-14 16:45 
QuestionRe: I want to know whether mycode is right Pin
Richard MacCutchan20-Nov-14 21:51
mveRichard MacCutchan20-Nov-14 21:51 
QuestionWPF Controls Binding to Object doesn't work Pin
jerryeagle20-Nov-14 11:34
jerryeagle20-Nov-14 11:34 
AnswerRe: WPF Controls Binding to Object doesn't work Pin
Richard MacCutchan20-Nov-14 21:49
mveRichard MacCutchan20-Nov-14 21:49 
QuestionAutomated fetch of data from SQL database using C# Pin
Member 1113303420-Nov-14 9:06
Member 1113303420-Nov-14 9:06 

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.