← Back to team overview

kicad-developers team mailing list archive

Plugin Startup Phase (KIFACE)

 

Hello,

so I'm newly digging my way through the Kicad startup phase, which gets my head melting... I can follow the way from getting the KIFACE_1 of the dll all the way to a CreateWindow-Call which for example creates a SCH_EDIT_FRAME. Now what I could not find out yet is, how is the wxApp::ms_appInstance is initialized for the plugin dlls (ie. maybe through wxInitialize or the wxApp constructor). I'm asking this because I run into crashes in my personal build when a plugin tries to run functions which depend on wxGetApp() and the likes, because the dll's wxApp::ms_appInstance is nullptr.

Any input on this would be highly appreciated!

Kind Regards
Michael