Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic SaveToXml throw exception (Read 4279 times)
tzippy
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 77
Joined: Jan 11th, 2009
SaveToXml throw exception
Jun 4th, 2009 at 3:14pm
Print Post  
Hi,
The method SaveToXml throw a stack overflow exception.
What could be the reason?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SaveToXml throw exception
Reply #1 - Jun 4th, 2009 at 3:30pm
Print Post  
Are you using custom node types that override SaveToXml?
  
Back to top
 
IP Logged
 
tzippy
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 77
Joined: Jan 11th, 2009
Re: SaveToXml throw exception
Reply #2 - Jun 7th, 2009 at 7:15am
Print Post  
No, I'm using diagramNodeAdapter that get inside userControl.
I'm using custom link types.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SaveToXml throw exception
Reply #3 - Jun 7th, 2009 at 8:26am
Print Post  
Do the custom links override SaveToXml? What is the method name shown at the end of the exception stack trace?
  
Back to top
 
IP Logged
 
tzippy
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 77
Joined: Jan 11th, 2009
Re: SaveToXml throw exception
Reply #4 - Jun 7th, 2009 at 9:50am
Print Post  
The ovverides in the project:
1. override InteractionState StartDraw(Point point)
for class that imports BehaviorBase.
2. override CursorHint SetMouseCursor(Point point, out bool startInteraction)
for class that imports BehaviorBase.

The exception doesn't reach the 'catch', so I don't have stack trace.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SaveToXml throw exception
Reply #5 - Jun 8th, 2009 at 6:04am
Print Post  
Hi,

Run the application through the debugger; it should stop when the exception happens and show a 'view details' popup. You can also see the stack trace in the debugger's Call Stack window (Debug -> Window -> Call Stack).

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
tzippy
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 77
Joined: Jan 11th, 2009
Re: SaveToXml throw exception
Reply #6 - Jun 9th, 2009 at 11:36am
Print Post  
In the view details popup I see :
"Cannot evaluate expression because the current thread is in a stack overflow state."

The call stack ended with :
mscorlib.dll!string.CtorCharPtrStartLength(char* ptr, int startIndex, int length = 90) + 0x48 bytes
mscorlib.dll!System.IO.Path.NormalizePathFast(string path, bool fullCheck) + 0x1fd bytes
mscorlib.dll!System.IO.Path.NormalizePath(string path, bool fullCheck) + 0x25 bytes
mscorlib.dll!System.IO.Path.GetFullPathInternal(string path) + 0x16 bytes
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SaveToXml throw exception
Reply #7 - Jun 10th, 2009 at 5:12am
Print Post  
Could you email us a test project that reproduces this?
  
Back to top
 
IP Logged
 
tzippy
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 77
Joined: Jan 11th, 2009
Re: SaveToXml throw exception
Reply #8 - Jun 10th, 2009 at 7:05am
Print Post  
It's impossible.
The project is very large.
Could you focus us to the points that obstructive us?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SaveToXml throw exception
Reply #9 - Jun 10th, 2009 at 7:21am
Print Post  
I didn't mean your whole application, but just a test project with your custom types added to it.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint