the send_string is the one that fully works , the session_send_packet_to is the one I am testing ,it successfully works until the data recieved event is triggered and I try to get the data from the intptr is where it fails with an exception , the freeing doesnt matter at this point I can comment it out and the result stays the same (same problem persists)

I do not really need to check if the intptr is zero because I check it in the event before calling the to_struct .

to me it seems like the intptr in the event parameter`s memmory is held and does not belong to me ? how am I going to test this weird theory I now have

Last edited by Wjbender; 06/11/15 13:40.

Compulsive compiler