Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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>>
C++
    int PLUGINAPI::PerformAddition(int a, int b)
    {
        IWrapIt *wrapIt=IWrapIt::CreateInstance();
        HWND handler=getPlugin()->AttachedWindow;
        wrapIt->SetHandle(handler);//ABOVE EXCEPTION RAISED HERE
        return wrapIt->PerformAddition(a,b);
    }



In PLUGIN.cpp(window attached event)>>

 

     bool PLUGIN::onWindowAttached(FB::AttachedEvent *evt, FB::PluginWindow * wnd)
    {
        // The window is attached; act appropriately
        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
Posted
Updated 21-May-13 3:29am
v2

1 solution

I made a suggestion in your other post of this same problem[^], that you are not checking your return values, before using them in function calls. Use your debugger to see what these values really are, and why the assert occurs.

Also, please do not repost the same question; use the "Improve question" widget to edit the original.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900