Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avalondock with a floating document crash when connect throught remote desktop #1448

Open
jmtuset opened this issue Feb 12, 2019 · 1 comment

Comments

@jmtuset
Copy link

jmtuset commented Feb 12, 2019

Hi.
I detect a situation that avalondock crash the application. I use the last version 3.5.

I can reproduce this situation with LiveExplorer application added in wfptoolkit repository

  • Open the application (LiveExplorer).
  • Go to Other>AvalonDock and drag out document 2. Maximixed "Document 2" as a floating document.

When conect to this machine with remote desktop. The aplication crash throwing a NullReferenceException in Xceed.Wpf.AvalonDock.Controls.LayoutDocumentFloatingWindowControl.OnInitialized becase _model is null. I found that in the constructor "internal LayoutDocumentFloatingWindowControl( LayoutDocumentFloatingWindow model )" call base method and not inicialized variable _method. I changed to call the previous constructor
internal LayoutDocumentFloatingWindowControl( LayoutDocumentFloatingWindow model ): this( model, false )

With this change if the "Document 2" is a floating doucment but not maximized run ok if conect with remote desktop.

document2-not_maximized-runok

But if maximized or put in a second screen when connect with remote desktop launch exception "Visual is not connected to a PresentationSource"

@XceedBoucherS
Copy link
Collaborator

Hi,

calling the constructor with "this" instead of "base" is already fixed in v3.6.
You can test the latest version v3.8 for free for 45 days here : https://xceed.com/xceed-toolkit-plus-for-wpf/
You can try that version for your second issue and see if it's also fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants