Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


CE crashes when loading plugin.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Chris12
Expert Cheater
Reputation: 1

Joined: 27 Apr 2012
Posts: 103

PostPosted: Mon Feb 11, 2013 2:43 am    Post subject: CE crashes when loading plugin. Reply with quote

Hi,
since Lua isn't really my language of choice I started a plugin for CE in .NET Razz
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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25788
Location: The netherlands

PostPosted: Mon Feb 11, 2013 4:06 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Chris12
Expert Cheater
Reputation: 1

Joined: 27 Apr 2012
Posts: 103

PostPosted: Mon Feb 11, 2013 10:02 am    Post subject: Reply with quote

Im doing nothIng with ces mainorm.
It crashes before even calling initialize plugin.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25788
Location: The netherlands

PostPosted: Mon Feb 11, 2013 10:07 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Chris12
Expert Cheater
Reputation: 1

Joined: 27 Apr 2012
Posts: 103

PostPosted: Mon Feb 11, 2013 10:56 am    Post subject: Reply with quote

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 Razz

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites