Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

DECLARE_EVENT_TABLE crash

(1/1)

rickg22:
I'm having a problem trying to modifying the SDK, maybe one of you guys can help me.

I added a DECLARE_EVENT_TABLE() in the EditorBase class (CVS), with an empty BEGIN_EVENT_TABLE(EditorBase,wxPanel) - END_EVENT_TABLE() block.

It compiles ok, but on startup, Code::Blocks gives me a runtime error 0xC0000005.  :( What am I doing wrong? Those event macros were the ONLY thing I added.

Please help!

mandrav:
Have you deleted the third-party plugins?

Yiannis.

rickg22:
Yes, but that gives me an idea. I'll disable all plugins except the compiler one, and tell you what happens.

rickg22:
I found the cause. The EditorBase class wasn't DLLIMPORT'ed, and this was generating the runtime error because the starthere.cpp was executed in the main exe, not the DLL.

UGH. I need some rest, later I'll work on doing the *ACTUAL* modifications.  :?

Navigation

[0] Message Index

Go to full version