8
Answers

How to handle stack overflow exception?

B M Suchitra

B M Suchitra

13y
2.2k
1
Hi friends,

Don`t know for what reasons i am getting a stack overflow exception and do not know how to handle this.. Plzz help me.. i have attached the code.

Attachment: stackoverflow.rar

Answers (8)
0
Suthish Nair
NA 31.7k 4.6m 14y

If this query got resolved then please Accept the post that helped you as Answer.
So other members can easily find the answers.
0
Suthish Nair
NA 31.7k 4.6m 14y

Sam is right.

change your code too
1. if (chineseGrade=="A")
2. use double chineseGPA or chineseGPA = Convert.ToDecimal(4.0);

0
Sam Hobbs
NA 28.7k 1.3m 14y
chineseGrade is a string variable but you are using it as if it is a method. The compiler is not psychic and neither are we. What is it that you need to do? As best as I understand your question, you are calculating a GPA for Chinese differently than for other people but as far as I know the Chinese are the same as everyone else. So perhaps the answer is that you can just use the same calculation for Chinese people as everyone else.