View Single Post
Author Message
xm3kilo
Member
Join Date: Jan 2018
Old 03-10-2018 , 08:27   DataPacks and queries leaking?
Reply With Quote #1

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(Text64);
                
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:ownerHandle:HQuery, const String:error[], any data
Any ideas?

Thanks everyone

Last edited by xm3kilo; 03-13-2018 at 14:47.
xm3kilo is offline