Code::Blocks

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: rickg22 on June 12, 2005, 04:59:47 am

Title: DECLARE_EVENT_TABLE crash
Post by: rickg22 on June 12, 2005, 04:59:47 am
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!
Title: DECLARE_EVENT_TABLE crash
Post by: mandrav on June 12, 2005, 08:21:49 am
Have you deleted the third-party plugins?

Yiannis.
Title: DECLARE_EVENT_TABLE crash
Post by: rickg22 on June 12, 2005, 05:39:47 pm
Yes, but that gives me an idea. I'll disable all plugins except the compiler one, and tell you what happens.
Title: *twitch... twitch...*
Post by: rickg22 on June 12, 2005, 10:08:50 pm
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.  :?