Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
When is Configure() called??
thomas:
Can't see anything wrong there at first sight (from RC2 on, you should replace the GetPlugin function with a new macro found in the SDK, but for the time being, that's fine).
Do you have __GNUWIN32__ WXUSINGDLL BUILDING_PLUGIN defined as compiler options?
And (very obvious thing) do you have the plugin copied to the plugins folder and enabled it in plugins settings?
What happens if you move the INT 3 into the constructor, does that crash the application on startup?
EDIT:
As a sidenote, wxBell(); will let you know that something happened, too, and is a little less intrusive than INT 3 ;)
Pecan:
Sure enough. Moving the INT3 into the ctor crashes like
an 80 year old after .... never mind.
So.. your idea about compiler options. Its gotta be there somewhere.
The project's at c:\usr\proj\uPlgN1\*.*
Cutting and pasting options:
[compiler->#defines]
__GNUWIN32__
WXUSINGDLL
BUILDING_PLUGIN
[Linker]
codeblocks
wxmsw242
[Directories/Compiler]
c:\usr\proj\wxWidgets242\contrib\include
c:\usr\proj\wxWidgets242\include
c:\usr\proj\wxWidgets242\lib\mswdll
c:\Usr\CodeBlocks\SDK\include
[Directories/Linker]
..\wxWidgets242\lib <--this is c:\usr\proj\wxWidgets242\lib (wxmsw242.dll)
c:\usr\codeblocks <-- (codeblocks.dll)
[Resource Compiler]
..\wxWidgets242\include <--this is c:\usr\proj\wxWidgets242\include
Actually I'm still confused about where to point those
Directory entries. I just did it until the errors went away.
I'll take any advice anytime, anyhow
Thanks
thomas:
Except for this...
--- Quote from: Pecan on October 23, 2005, 10:46:53 pm ---[Directories/Linker]
..\wxWidgets242\lib <--this is c:\usr\proj\wxWidgets242\lib (wxmsw242.dll)
c:\usr\codeblocks <-- (codeblocks.dll)
--- End quote ---
...everything looks (as far as I can see) just like it worked fine for me all the time (just switched to wx2.6).
I would give it a try with <codeblocks dir>\lib instead of ..\wxWidgets242\lib, except for that I don't see anything at this time, sorry.
mandrav:
What *exactly* are you doing to crash it? Configure() is called when the relevant menu entry is selected in "Settings->Plugins' settings->[your plugin name]". Do you select that menu entry?
Pecan:
Hi mandrav
The problem is that Untitled::Configure() *won't* crash because it never
gets called. We know that the ctor is being called because we *can* crash it
with and INT3. Using an INT3 hammer where a wxBell would do.
Anyway, ::Execute() works fine. I get a messagebox from it when I click
on Plusgins->uPlgN1. Somehow C::B is never seeing my "m_PluginInfo.hasConfigure = true;" even tho we know it's being executed. i.e. put an INT3 in front of it and it crashes.
So, I'm looking for a header or linker conflict. I'm guessing... I'm wishing..
I'm hopping for luck..
It's me vs C::B, and C::B is winning. (so far). But I aint done yet...
I compared ..\SDK\include with ..\SDK\codeblocks-1.0-RC1-1_sdk\include\
the only difference is ..\SDK\include contains cdEditor.h while ..\SDK\codeblocks-1.0-RC1-1_sdk\include\ does not. But I dont know which was used by the build yet.
Im working on it.... If you come up with any ideas, I'll try 'em out
Thanks
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version