Posted: Tue Apr 07, 2009 12:20 am Post subject: DELPHI PROB.....NEED HELP PLZ.....AGAIN.....
Well as stated above i'm back again... now i have the autosocket id catcher and it works well, my only problem is when i choose a server to login to it crashes and i get this message.....
code for autosocket id
Code:
Main.SockDisp.Text:=IntToStr(s);
PIC
What do i need to do? I've modified Delphi's security settings as to where all users can access it and have all power...... _________________
Read the error message. You are trying to read from a NULL (I believe it's NIL in Delphi) pointer. Look through your code to see where that might occur.
Read the error message. You are trying to read from a NULL (I believe it's NIL in Delphi) pointer. Look through your code to see where that might occur.
Well here is the HookSend Code....
Code:
function hookSend(s:Integer; buf:PAnsiChar; len:Integer; flags:Integer):Integer; stdcall;
begin
try
typeStrings.Add('Sent');
dataStrings.Add(PAnsiChar(@buf^));
sockStrings.Add(IntToStr(s));
Main.SockDisp.Text:=IntToStr(s);
Main.updateLists;
finally
Result := unhookedSend;
end;
end;
Joined: 29 Nov 2005 Posts: 375 Location: Farmington NH, USA
Posted: Tue Apr 07, 2009 1:04 pm Post subject:
the debugger is a the key tool of any developer it provides insight into code flow and is invaluable in bug finding.. though i'm unsure of how the delphi debugger works i am guessing that the IDE has a option to debug the code from the compile or build menu bar
failing this load it up into OllyDbg and then place a breakpoint where you think the error is in the code, and then run till it hits that breakpoint..then you can single step threw your code to find where the error truely resides.
kind regards BanMe _________________
don't +rep me..i do not wish to have "status" or "recognition" from you or anyone.. thank you.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum