-
-
Notifications
You must be signed in to change notification settings - Fork 744
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
FluentWindow makes stack unbalanced #803
Comments
I stumbled across the same problem and it's preventing me from using the lib in our project. Also the repo need a sample project targeting .net framework 4.8 |
is there any fix? |
Not any that I know of. Today I checked the new preview.9 version and the problem is stile there. |
I removed pinvoke that caused issue and i wrote new pinvoke and issue fixed, however there is a lot of issues something related to accent color exception 😑 and i removed it. I switched to another wpf fluent https://github.com/InkoreStudios/UI.WPF.Modern which is more stable. |
can you please make a PR with that? |
|
Describe the bug
When turning a window into a FluentWindow, the function
Wpf.Ui!Wpf.Ui.Interop.User32::SetWindowLong
makes the stack unbalanced. This function is called formUnsafeNativeMethods.RemoveWindowTitlebarContents(IntPtr handle)
.If you run the app without debugging you only get a black screen.
Exception:
Managed Debugging Assistant 'PInvokeStackImbalance'
Message=Managed Debugging Assistant 'PInvokeStackImbalance' : 'A call to PInvoke function 'Wpf.Ui!Wpf.Ui.Interop.User32::SetWindowLong' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.'
Call Stack (Partial)
until the problem is solved, does anyone have an idea of what to use instead of FluentWindow so that NavigationView can stile be used (because UiWindow is no longer exsists)?
To Reproduce
ui:FluentWinow
Expected behavior
The app should not crach.
Screenshots
Running With Debugging
Running Without Debugging
OS version
Win10 Pro N, Version 22H2, build 19045.3570
.NET version
.Net Framework 4.8, work's fine in .Net 6
WPF-UI NuGet version
WPF-UI.3.0.0-preview.8 and WPF-UI.3.0.0-preview.9
Additional context
No response
The text was updated successfully, but these errors were encountered: