-
Notifications
You must be signed in to change notification settings - Fork 19
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
WinForms example crashes in Release mode #10
Comments
I'm thinking of just deleting the WinForms package. Why would you want it anyway? I can't think of a valid use case, since this isn't a legacy library. |
Link is broken, can you provide working link so I can have a look. |
@amaitland link repaired |
It's probably relevant that I'm using CefSharp in AnyCPU mode. The WinForms sample did work in the past if memory serves me correctly. |
Thanks. I'm restructuring the CefSharp Nuget packages in an attempt to simplify usage, including AnyCpu. Looking for real world test cases, make sure I haven't broken anything. I'll take a look at the this while I'm at it. Full disclaimer I've never written f# before 😄 |
Oh, interesting, how are you restructuring? Is there a more detailed topic somewhere else? I'm curious No problem, I'm happy to provide whatever info you need! I appreciate the help a lot. |
…dlls until Assembly Resolve is hooked up Issue https://github.com/jwosty/Interstellar/issues/10
Sure, see cefsharp/CefSharp#3319 I'm hoping to improve some scenarios like this one. Moving the managed I've not used
So from my understanding here's what's happening in
Quick test and commit amaitland@84d690a should resolve the problem. You'll probably want to restructure it a little so it first with your style 😄 |
Totally off topic and happy to open a seperate discussion, I was having a little bit of a look through the code, are you injecting javascript for the sole purpose of proxying You should be able to customise the naming without having to jump through all those hoops. Fairly recently the option to configure the name of the object CefSharp injects into the browser was added (e.g. instead of browser.JavascriptObjectRepository.Settings.JavascriptBindingApiGlobalObjectName = "interstellarBridge"; http://cefsharp.github.io/api/86.0.x/html/P_CefSharp_IJavascriptObjectRepository_Settings.htm |
Separate issue would probably be good for that, but yeah I'd be happy to talk about it. Honestly I don't remember how those bits in particular work right now so I'll have to look into them again and get back to you. I really appreciate the feedback! |
Assuming I properly understand the stuff in cefsharp/CefSharp#3319, I think Paket should work fine with most of this stuff. Paket's restore functionality is invoked automatically as part of Perhaps this will be useful: https://fsprojects.github.io/Paket/paket-and-dotnet-cli.html
Fix seems to work, thank you. I've adapted it into PR #14 by moving it into the library itself. |
WinForms example works fine in Debug mode, but crashes in Release mode (regardless of running under .net core 3, .net framework, or .net 5):
In the past, this has indicated something going wrong with runtime CefSharp DLL resolver (see https://github.com/jwosty/Interstellar/blob/master/src/Interstellar.WindowsCommon.Chromium/Platform.fs#L36), but I'm not sure how this is happening only in release but not in debug. And only in WinForms, specifically. Wpf is all fine and I can't find any differences.
The text was updated successfully, but these errors were encountered: