API Hawk: MemoryDomains specified with attribute [RequiredService] will throw NullReferenceException when loading external tool DLL with EmuHawk using argument --open-ext-tool-dll
.
#3329
Labels
App: EmuHawk
Relating to EmuHawk frontend
Repro: Fixed/added in 2.9
Reproducible bug
Should only be added to issues with a `Repro: Affects` label.
Summary
When developing a DLL external tool project for BizHawk, if the tool needs to use MemoryDomains, it will throw a null pointer reference exception when the DLL is loaded by passing the argument
--open-ext-tool-dll
to EmuHawk.exe.I did make sure to include this in my WinForm class:
And I also added this in the
this.Load
event fromMainForm
to bind aSystem.EventHandler
delegate to this method:Repro
tool_src.zip
If not, you can try "Debugging a DLL using external application" and attaching the debugger to the application, by following this instruction from Microsoft:
https://docs.microsoft.com/en-us/visualstudio/debugger/how-to-debug-from-a-dll-project?view=vs-2022#specify-a-calling-app-in-a-c-dll-project-net-core-net-5
Output
These exceptions all point to the same thing.
Pictures are only here to help:
Host env.
The text was updated successfully, but these errors were encountered: