Windows phone stack overflow exception

I’m porting my game which is running fine in android, ios when I run it on windows phone it is giving a stack overflow exception just as the initial screen loads(after the splash screen).

An unhandled exception of type ‘System.StackOverflowException’ occurred in Assembly-CSharp.DLL

when i traced i noticed that after the OnGUI() call it loses control.
The controls enters into non user code.

Thank you in advance.

1 Answer

1

Guys I solved it:). I deleted some part of code, at last i got, now i need to find replacement for deleted code. The problem was with writing and reading from the file.