|Anonymous | Login | Signup for a new account||2013-12-04 16:01 EST|
|Main | My View | View Issues | Change Log | Roadmap | Docs|
|Viewing Issue Simple Details|
|ID||Category||Severity||Reproducibility||Date Submitted||Last Update|
|0000032||[Cheat Engine]||minor||always||2008-02-07 21:40||2008-02-09 11:14|
|Assigned To||Dark Byte|
|Summary||0000032: Plugins Freeze Cheat Engine (Compiler Issue?)|
Copied the code from the example plugin and created a new project using Visual Studio 2005. The plugin compiles fine but Cheat Engine fails to load it.
The first message box in the plugin shows:
MessageBox(0,"This plugin dll got loaded","C Plugin Example",MB_OK);
Then right after you click ok, Cheat Engine freezes. Tried removing all the code from the plugin to make it completely blank and the same thing still occurs.
Dark Byte (developer)
Does your dll implement AND export the: GetVersion, InitializePlugin and DisablePlugin functions? (Using normal C exportnames, so not those obfuscated c++ exportnames that have a @ in them with paramcount etc...)
GetVersion is called when adding to the list. Make sure that you have a 0-terminated string for the name etc..
|Yes, I'm sure. It is the exact code copy pasted from the example-c project. Just compiled with VS2005.|
Ok I have pin-pointed the issue that causes this to happen. You MUST compile as C code when compiling with VS2005. If you compile as C++ code, it will cause CE to freeze when attempting to load the plugin.
To set this option, goto:
Project -> Properties
Then click the + next to Configuration Properties, then click the + next to C/C++.
Then click on Advanced. There will be an option on the right labeled, "Compile As". Select "Compile As C Code (/TC)" and the plugin should load fine.
Dark Byte (developer)
|I think using a proper .def file should fix it as well. But yes, compiling as C is a solution as well|
|2008-02-07 21:40||Wiccaan||New Issue|
|2008-02-08 18:22||Dark Byte||Note Added: 0000049|
|2008-02-08 18:22||Dark Byte||Status||new => acknowledged|
|2008-02-09 01:43||Wiccaan||Note Added: 0000051|
|2008-02-09 04:47||Wiccaan||Note Added: 0000052|
|2008-02-09 11:14||Dark Byte||Status||acknowledged => resolved|
|2008-02-09 11:14||Dark Byte||Resolution||open => fixed|
|2008-02-09 11:14||Dark Byte||Assigned To||=> Dark Byte|
|2008-02-09 11:14||Dark Byte||Note Added: 0000053|
|2009-07-23 23:16||longnhatvl||Issue Monitored: longnhatvl|
|2009-07-23 23:16||longnhatvl||Tag Attached: 5.4.3 cheatengine|
|Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group|