Click here to Skip to main content
15,921,989 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to avoid stack overflow ? Pin
S. Senthil Kumar22-Jan-09 3:05
S. Senthil Kumar22-Jan-09 3:05 
AnswerRe: How to avoid stack overflow ? Pin
Guffa22-Jan-09 0:35
Guffa22-Jan-09 0:35 
GeneralRe: How to avoid stack overflow ? Pin
Spunky Coder26-Jan-09 22:34
Spunky Coder26-Jan-09 22:34 
GeneralRe: How to avoid stack overflow ? Pin
Guffa27-Jan-09 1:22
Guffa27-Jan-09 1:22 
AnswerRe: How to avoid stack overflow ? Pin
Ben Fair22-Jan-09 4:43
Ben Fair22-Jan-09 4:43 
GeneralRe: How to avoid stack overflow ? Pin
Spunky Coder26-Jan-09 23:05
Spunky Coder26-Jan-09 23:05 
GeneralRe: How to avoid stack overflow ? Pin
Guffa27-Jan-09 1:27
Guffa27-Jan-09 1:27 
GeneralRe: How to avoid stack overflow ? Pin
Ben Fair27-Jan-09 4:11
Ben Fair27-Jan-09 4:11 
I generally follow this pattern to prevent circular references. Create a List<t></t> that will accompany your stack. This will contain the items that have already been processed. At the top of your stack loop, the first step is to pull the next item of the stack and the second step should be to check that item against the list of items already processed. If it has already been processed, discard it and go to the next item. I generally put this in place even when the data SHOULDN'T have circular references, but I prefer to be safe rather than deal with some difficult to find bug later on.

Hope in one hand and poop in the other; see which fills up first. Hope and change were good slogans, now show us more than words.

QuestionSave Listview data to SQL database Pin
Tuntgerhuu21-Jan-09 22:06
Tuntgerhuu21-Jan-09 22:06 
AnswerRe: Save Listview data to SQL database Pin
CPallini21-Jan-09 23:22
mveCPallini21-Jan-09 23:22 
QuestionWCF Client is not Receving Response Pin
Member 587250021-Jan-09 21:54
Member 587250021-Jan-09 21:54 
QuestionTest string for DBnull as opposed to null? Pin
kanchoette21-Jan-09 21:32
kanchoette21-Jan-09 21:32 
AnswerRe: Test string for DBnull as opposed to null? Pin
SeMartens21-Jan-09 21:34
SeMartens21-Jan-09 21:34 
GeneralRe: Test string for DBnull as opposed to null? Pin
SeMartens21-Jan-09 21:36
SeMartens21-Jan-09 21:36 
QuestionHow to Convert Data from Tiff file to Text Format in C# Pin
ChandrakanthGaddam21-Jan-09 21:25
ChandrakanthGaddam21-Jan-09 21:25 
AnswerRe: How to Convert Data from Tiff file to Text Format in C# Pin
SeMartens21-Jan-09 21:29
SeMartens21-Jan-09 21:29 
QuestionWhat means @ before string in C#? Pin
xx77abs21-Jan-09 21:22
xx77abs21-Jan-09 21:22 
AnswerRe: What means @ before string in C#? Pin
DaveyM6921-Jan-09 21:28
professionalDaveyM6921-Jan-09 21:28 
GeneralRe: What means @ before string in C#? Pin
xx77abs21-Jan-09 21:46
xx77abs21-Jan-09 21:46 
QuestionHow to get rid of event code Pin
Member 88441121-Jan-09 20:40
Member 88441121-Jan-09 20:40 
AnswerRe: How to get rid of event code Pin
Mycroft Holmes21-Jan-09 20:44
professionalMycroft Holmes21-Jan-09 20:44 
GeneralRe: How to get rid of event code [modified] Pin
Member 88441121-Jan-09 23:49
Member 88441121-Jan-09 23:49 
GeneralRe: How to get rid of event code Pin
Mycroft Holmes22-Jan-09 0:08
professionalMycroft Holmes22-Jan-09 0:08 
GeneralRe: How to get rid of event code Pin
#realJSOP22-Jan-09 0:17
professional#realJSOP22-Jan-09 0:17 
QuestionChanging Win XP Registry via C# Pin
Yasin7521-Jan-09 20:12
Yasin7521-Jan-09 20:12 

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.