Click here to Skip to main content
14,970,345 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When i am creating the object for panel i'm getting the following error

private Panel Background = new Panel();

System.StackOverflowException was unhandled

Please help me out...
Posted
Updated 13-May-10 23:22pm
v2
Comments
Abhinav S 14-May-10 5:27am
   
Please post some more code to help others help you.
Ankur\m/ 14-May-10 5:34am
   
Try debugging the code and check which line exactly throws the error. Add the relevant code snippet.

Probably you should post more code to get better help.
:-)
   
I agree with the other answers to this. You haven't posted enough code for us to be able to find the problem.

However, StackOverflowExceptions normally arise when you manage to create a circular reference, in this case it might be something like:

Creating a panel that creates a new panel object that creates a new panel object that creates a new panel object etc.
   
dvv_vishnu wrote:
private Panel Background = new Panel();
System.StackOverflowException was unhandled


Ok fine i got you like theirs some sort of problem your are facing but Mr.vishnu where i wana know that please post your code for better results

Thanks & Regards
Radix :)
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900