fenix01/cheatengine-library

unloadEngine crashes

Opened this issue · 4 comments

Hello, when I`m using unloadEngine I almost always have crashes of my app.

Even when I'm using Example Assembler and press Unload Library this program just freeze. I'm using x64 lib.
But I do this because it don't want even load library (comment everything except lib64)
/*#if _WIN64*/ libInst = LoadLibraryW("ce-lib64.dll"); /*#else libInst = LoadLibrary("ce-lib32.dll"); #endif*/

Hi !
I have successfully reproduced your bug. I don't know exactly how to solve the problem but it seems to be a problem between c# (managed code) and the library (unmanaged code).

It raised this exception 'LoaderLock'. I'm not really familiar with c# but be sure I will try to fix this error

Thanks. I also have another error. Sometimes when I'm using iProcessAddress it returns "???" and when I'm using iOpenProcess after that I had AccessViolationException. But when I restart my app iOpenProcess and iProcessAddress works fine with same PID. Thats why I wanted to use unloadEngine. Do you know how to fix AccessViolationException? Maybe if you fix unloadEngine, iOpenProcess also will be fixed and it sometimes didn`t works because of same problem in your lib.

Hi Voronkin,

Sorry for this late answer, I'm very busy since a few weeks with my studies.
I don't know if this bug is correlated with unloadEngine, so I will open a new ticket for the bug with IOpenProcess.

Anyway, I'm working on a new release of the library which may fix all these bugs, and add a support to python. So I'll come back to you as soon as possible.