I'm making a firebreath based plugin which adds two integers.
I'm debugging the plugin by attaching the source to the browser. I'm getting the above exception at this step of my PLUGINAPI.cpp
I have created and built the dll of the wrapper and the c# class libraries. it's working..added the project references of these to my firebreath api project.
In PLUGINAPI project>>
int PLUGINAPI::PerformAddition(int a, int b)
{
IWrapIt *wrapIt=IWrapIt::CreateInstance();
HWND handler=getPlugin()->AttachedWindow;
wrapIt->SetHandle(handler); return wrapIt->PerformAddition(a,b);
}
In PLUGIN.cpp(window attached event)>>
bool PLUGIN::onWindowAttached(FB::AttachedEvent *evt, FB::PluginWindow * wnd)
{
AttachedWindow = wnd->get_as<fb::pluginwindowwin xmlns:fb="#unknown">()->getHWND();
return false;
}
What am I doing wrong here?
Also My debug point in c# class library is not hit even if i have set the Property of the firebreath (unmanaged c++) debugging to mixed
MY CALL STACK here is as follows:
KernelBase.dll!RaiseException() + 0x54 bytes
[Frames below may be incorrect and/or missing, no symbols loaded for KernelBase.dll]
clr.dll!LogHelp_TerminateOnAssert() + 0x2e1b0 bytes
clr.dll!CopyPDBs() + 0x4abd bytes
clr.dll!CorLaunchApplication() + 0x25745 bytes
clrjit.dll!61d17e0e()
clrjit.dll!61d2d342()
clrjit.dll!61d13396()
clrjit.dll!61d134c9()
clrjit.dll!61d15e4b()
clr.dll!LogHelp_TerminateOnAssert() + 0x12d99 bytes
clr.dll!LogHelp_TerminateOnAssert() + 0x12e25 bytes
clr.dll!LogHelp_TerminateOnAssert() + 0x12e6b bytes
clr.dll!LogHelp_TerminateOnAssert() + 0x12c40 bytes
clr.dll!LogHelp_TerminateOnAssert() + 0x76d7b bytes
clr.dll!LogHelp_TerminateOnAssert() + 0x76f28 bytes
clr.dll!CoUninitializeEE() + 0x3d8d bytes
01e90817()
i downloaded the symbols for Kernelbase32.dll from MicrosoftSymbolSAervers.kept it checked in visual studio.still not working