Click here to Skip to main content
15,909,898 members
Home / Discussions / C#
   

C#

 
GeneralRe: Saving form or panel as an object Pin
DaveyM6921-Jan-09 23:48
professionalDaveyM6921-Jan-09 23:48 
GeneralRe: Saving form or panel as an object Pin
Naveed72722-Jan-09 0:13
Naveed72722-Jan-09 0:13 
GeneralRe: Saving form or panel as an object Pin
DaveyM6922-Jan-09 0:40
professionalDaveyM6922-Jan-09 0:40 
AnswerRe: Saving form or panel as an object [modified] Pin
moon_stick22-Jan-09 0:11
moon_stick22-Jan-09 0:11 
GeneralRe: Saving form or panel as an object Pin
Naveed72722-Jan-09 1:20
Naveed72722-Jan-09 1:20 
QuestionHow to avoid stack overflow ? Pin
Spunky Coder21-Jan-09 22:13
Spunky Coder21-Jan-09 22:13 
AnswerRe: How to avoid stack overflow ? Pin
Pete O'Hanlon21-Jan-09 22:40
mvePete O'Hanlon21-Jan-09 22:40 
AnswerRe: How to avoid stack overflow ? Pin
#realJSOP22-Jan-09 0:14
professional#realJSOP22-Jan-09 0:14 
If your recursive function accepts a lot of parameters, or even just one or two string parameters, you can overflow the stack rather quickly. Back in the day, the stack was only 64K big, but I don't know if that's still the case, or if the stack size can be increased. Each function call requires a certain amount of overhead, and having a recursive function that tacks strings requires as much stack space as the string(2) requires in memory (in addition to the regular overhead needed by the function call itself).

If it were me, I would look for a solution that didn't require recursion (if possible), or abstract out the recursion so that you don't have to make so many recursive calls before exiting the loop.
.


"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


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 
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 

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.