|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000032||Cheat Engine||public||2008-02-08 03:40||2008-02-09 17:14|
|Assigned To||Dark Byte|
|Summary||0000032: Plugins Freeze Cheat Engine (Compiler Issue?)|
|Description||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. |
|Additional Information||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-08 03:40||Wiccaan||New Issue|
|2008-02-09 00:22||Dark Byte||Note Added: 0000049|
|2008-02-09 00:22||Dark Byte||Status||new => acknowledged|
|2008-02-09 07:43||Wiccaan||Note Added: 0000051|
|2008-02-09 10:47||Wiccaan||Note Added: 0000052|
|2008-02-09 17:14||Dark Byte||Status||acknowledged => resolved|
|2008-02-09 17:14||Dark Byte||Resolution||open => fixed|
|2008-02-09 17:14||Dark Byte||Assigned To||=> Dark Byte|
|2008-02-09 17:14||Dark Byte||Note Added: 0000053|
|2009-07-24 05:16||longnhatvl||Tag Attached: 5.4.3 cheatengine|