This is a migrated thread and some comments may be shown as answers.

Float windows on external monitors saving layout causes VS crash

3 Answers 77 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Iron
Iron
Rob asked on 24 Sep 2018, 10:41 AM

I am saving the layout using the savelayout method on the docking control.

This works fine (although i have no pane titles but that is another question) until I float panes on external monitors (I have 3). 

When I do this and I use the save layout method I get an error 'Managed Debugging Assistant: 'FatalExecutionEngineError'. The runtime has encountered a fatal error. The address of the error was at 0x65bf395f, on thread 0x4548. The error code is 0x80131623. This error may be a bug in the CLOR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.

My code (in the Window closing event) is:

MemoryStream stream = new MemoryStream();
DockMain.SaveLayout(stream);

stream.Seek(0, SeekOrigin.Begin);

StreamReader reader = new StreamReader(stream);

var layout = reader.ReadToEnd();

Then i persist layout to a file.

 

Can you please assist.

 

Rob

3 Answers, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 27 Sep 2018, 07:56 AM
Hello Rob,

I tried to reproduce the issue you've described with the "Save/Load layout with PaneSource" demo from our SDK Samples Browser on my two-monitor setup but I was, unfortunately, unable to do so.
 
Would you find it possible to isolate this issue in a small sample project, open a new support ticket (so that you can attach an archive with it) and send it over so that I can further investigate? If it would be easier for you, you can use the aforementioned demo as the base of your isolation.

Thank you in advance for your cooperation on the matter. I look forward to your reply.

Regards,
Dilyan Traykov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Rob
Top achievements
Rank 1
Iron
Iron
answered on 27 Sep 2018, 09:12 AM

Many thanks Dilyan,

 

I've opened a support ticket as requested.

 

Rob Collett

0
Dilyan Traykov
Telerik team
answered on 27 Sep 2018, 01:14 PM
Hello Rob,

Thank you for the cooperation. We will try to address your case as soon as possible.

Regards,
Dilyan Traykov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Docking
Asked by
Rob
Top achievements
Rank 1
Iron
Iron
Answers by
Dilyan Traykov
Telerik team
Rob
Top achievements
Rank 1
Iron
Iron
Share this question
or