We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Chromeless Window

Thread ID:

Created:

Updated:

Platform:

Replies:

114094 Oct 28,2013 06:59 PM UTC Nov 8,2013 10:19 AM UTC WPF 3
loading
Tags: Tools
Francis Rouleau
Asked On October 28, 2013 06:59 PM UTC

I have a "Hwnd of zero is not valid" error when performing a this.Close(); in the loaded event when the window was open thought a MyWindow.ShowDialog(). by going line by line the this.close(); is in fact called then the loaded event ends and come back to the MyWindow.ShowDialog() and then it crashes on the line. Like it didn't like the return.

 This happen only when i have bindings in the window. without bindings it works perfectly as it should. And with bindings i kept the same winfow and only switch <syncfusion:ChromelessWindow> for <Window> and it works. anyone know how to fix this bug ?



Karuppasamy P [Syncfusion]
Replied On October 30, 2013 05:52 AM UTC

Hi Francis,

Thanks for using Syncfusion products.

You have mentioned that, the application crashes on closing the ChromelessWindow which have been opened using ShowDialog method. We have tried to reproduce the issue, but unable to reproduce the issue at our end. It would be better if you provide the stack trace and modify this sample with replication steps to reproduce the issue.
So that we could provide you an exact solution to the problem.

Thanks,
Karuppasamy P




ChromelessWindowTest_cb3f3b3c.zip

Francis Rouleau
Replied On October 30, 2013 12:24 PM UTC

I cannot reproduce in a side project withou sending the full code and it work only locally. The window model uses over 15 different WCF services and have more than 600 bindings on it span over multiple tabs. i tried making a side project and replicate and i am not able to but i don't have time to waste to create services and 600+ binding just to test something that can be fix by using <window> instead. I cannot send the code but i can send the trace.

I was mostly wondering if someone seen the issue before and found a way around as i wasted over 3 days to find out the Chromeless window was the issue.

stacktrace :
   at System.Windows.Interop.HwndSource.CriticalFromHwnd(IntPtr hwnd)
   at System.Windows.Interop.HwndSource.FromHwnd(IntPtr hwnd)
   at Syncfusion.Windows.Shared.ChromelessWindow.OnSourceInitialized(EventArgs e)
   at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
   at System.Windows.Window.CreateSourceWindowDuringShow()
   at System.Windows.Window.SafeCreateWindowDuringShow()
   at System.Windows.Window.ShowHelper(Object booleanBox)
   at System.Windows.Window.Show()
   at System.Windows.Window.ShowDialog()
   at IngUnitDesigner.ComponentSelection.CComponentSelection.RunDamperSelection(CDamper item) in C:\svn_repository\Designer\DLL\IngUnitDesigner\ComponentSelection\CComponentSelection.cs:line 279
   at IngUnitDesigner.ComponentSelection.CComponentSelection.StartSelection(CItem item) in C:\svn_repository\Designer\DLL\IngUnitDesigner\ComponentSelection\CComponentSelection.cs:line 73

Karuppasamy P [Syncfusion]
Replied On November 8, 2013 10:19 AM UTC

Hi Francis,

Sorry for the delay caused.

We are unable to reproduce the reported issue. But still by keeping track of the stack trace provided, we found that there is a possibility for reported exception to arise. So we will log an issue report. We have created an incident #115425 under your DirectTrac account. Please follow that incident for further technical support.

Thanks,
Karuppasamy P

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;