Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


DELPHI PROB.....NEED HELP PLZ.....AGAIN.....

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
NoManchesPuto
I post too much
Reputation: 0

Joined: 24 Jan 2009
Posts: 2820

PostPosted: Tue Apr 07, 2009 12:20 am    Post subject: DELPHI PROB.....NEED HELP PLZ.....AGAIN..... Reply with quote

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......

_________________
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Tue Apr 07, 2009 12:35 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
NoManchesPuto
I post too much
Reputation: 0

Joined: 24 Jan 2009
Posts: 2820

PostPosted: Tue Apr 07, 2009 12:42 am    Post subject: Reply with quote

Flyte wrote:
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;


What does it need to be?

_________________
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Tue Apr 07, 2009 12:28 pm    Post subject: Reply with quote

Using the debugger would make too much sense...
Back to top
View user's profile Send private message
NoManchesPuto
I post too much
Reputation: 0

Joined: 24 Jan 2009
Posts: 2820

PostPosted: Tue Apr 07, 2009 12:59 pm    Post subject: Reply with quote

slovach wrote:
Using the debugger would make too much sense...
well i dont know how to use it ive never had to....what do i do 1st to debug it...
_________________
Back to top
View user's profile Send private message
BanMe
Master Cheater
Reputation: 0

Joined: 29 Nov 2005
Posts: 375
Location: Farmington NH, USA

PostPosted: Tue Apr 07, 2009 1:04 pm    Post subject: Reply with quote

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 Smile

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. Smile

kind regards BanMe

_________________
don't +rep me..i do not wish to have "status" or "recognition" from you or anyone.. thank you.
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites