IS4Code / PawnPlus

A SA-MP plugin enhancing the capabilities of the Pawn programming language
MIT License
102 stars 17 forks source link

samp-server.exe is not shut down correctly #18

Closed George480 closed 2 years ago

George480 commented 4 years ago
#include <a_samp>
#include <PawnPlus>

main() {}

When typing exit on console or calling SendRconCommand("exit");, the result is: Untitled

If I click on Debug, the result is:

The thread 0x... has exited with code 0 (0x0).
The thread 0x... has exited with code 3 (0x3).
The thread 0x... has exited with code 3 (0x3).
The program '[5928] samp-server.exe' has exited with code 3 (0x3).

I use Windows 7 Ultimate (SP1).

IS4Code commented 4 years ago

Hello, I am aware of the issue, which probably comes from one of the C++ destructors for static objects, but I haven't yet debugged the issue, since the stack trace doesn't point to my code and the issue shouldn't affect normal functioning of the server.

George480 commented 4 years ago

Re-ordering the plugins seems to fix it for now.

n0dai commented 4 years ago

I have the same problem. Do you plan to fix it?

maximilianopagani commented 3 years ago

This is still happening. I used to had this problem and reordering plugins fixed it. Yet, after some time i updated mysql plugin to latest version R41-4 and the problem reappeared (same plugin order that worked before). Tried every plugin order but now i can't get rid of it.