View previous topic :: View next topic |
Author |
Message |
Chris12 Expert Cheater
Reputation: 1
Joined: 27 Apr 2012 Posts: 103
|
Posted: Mon Feb 11, 2013 2:43 am Post subject: CE crashes when loading plugin. |
|
|
Hi,
since Lua isn't really my language of choice I started a plugin for CE in .NET
When I open ce and goto settings and add the plugin, check the box and press OK to close the settings-dialog everything works.
The plugin displays it's window, I can call all the exported CE routines without a problem.
But when you close and reopen CE it crashes.
Obviously CE loads plugins differently if they are added from the settings than it does when it's starting.
I don't think that its my fault because the plugin works correctly when added trough the settings menu.
I can upload the source of my plugin if needed. Maybe it helps debugging?
Maybe delaying the loading of plugins until the main-form has completely loaded will fix it?
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25788 Location: The netherlands
|
Posted: Mon Feb 11, 2013 4:06 am Post subject: |
|
|
Your best bet is to start a timer that checks if the main form is not nil, and if so only then execute the mainform specific code and stop the timer.
Also, what do you do to the main form?
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
Chris12 Expert Cheater
Reputation: 1
Joined: 27 Apr 2012 Posts: 103
|
Posted: Mon Feb 11, 2013 10:02 am Post subject: |
|
|
Im doing nothIng with ces mainorm.
It crashes before even calling initialize plugin.
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25788 Location: The netherlands
|
Posted: Mon Feb 11, 2013 10:07 am Post subject: |
|
|
And you're not doing anything special in getVersion or dll load ?
Anyhow, upload your code and I'll check it out
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
Chris12 Expert Cheater
Reputation: 1
Joined: 27 Apr 2012 Posts: 103
|
Posted: Mon Feb 11, 2013 10:56 am Post subject: |
|
|
I PM'd you the code. Just start ce first, then add the plugin, press the pluginbutton on the mainwindow and it will show.
All it does it hiding ce and letting it reappear after 3 seconds
I also screwed around with other routines exposed by ce, they all work as intended. Its just the loading when ce is starting up that somehow crashes...
|
|
Back to top |
|
 |
|