Hey Guys,
Need to deliver my application in a week or so and my application has started crashing with exceptions that my applications can't even handle.
My application allows users to add furniture in a room. There are a number of models available to choose from. There are a few highly detailed models which are over 4MB in size. When I load a couple of these into my room, they load and render perfectly. But after a while (like 10-20s) when I try to select the meshes and move them around I get the following error:
"
An unhandled exception of type 'System.StackOverflowException' occurred in MTV3D65.dll"
This error I get from the line:
CollisionResult = Scene.MousePick((int)mouseX, (int)mouseY, (int)CONST_TV_OBJECT_TYPE.TV_OBJECT_MESH, CONST_TV_TESTTYPE.TV_TESTTYPE_BOUNDINGBOX);
When I click on View Details in the exception window, I get the following message:
"
Cannot evaluate expression because the current thread is in a Stack Overflow state"
The bad thing is I can't even handle the error. The code runs within a try catch block but still crashing.
I check the resource usage of my PC and over 1GB of RAM is still available. Is there a certain max size of a mesh that TV3D can handle. I am getting the same error with a couple of other models of size around 700KB, but in that case the application runs for a longer time before crashing.
I am sitting in front of my PC for hours now with this message. Please help guys. I am clueless. Donno what to do?

Regards
EDIT:FYI I am using .X files and I am using the Timer Control for my main loop execution