Hey guys,
I'm having some strange issues with memory leaking.
I'm passing a datapack through a threaded SQL callback like this:
PHP Code:
DataPack pack = new DataPack();
pack.WriteCell(client);
pack.WriteString(Text);
Then in the callback I'm closing the handle like this:
PHP Code:
DataPack pack = data;
pack.Reset();
int client = pack.ReadCell();
char Text[64];
pack.ReadString(Text, 64);
CloseHandle(pack);
I do that about 50 times over the course of this plugin and I have the DataPack handle leaking which forces the plugin to crash, and I also have the:
IQuery | Count 14892
Leaking, with functions args like this:
PHP Code:
public void test(Handle:owner, Handle:HQuery, const String:error[], any data)
Any ideas?
Thanks everyone