Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 08-17-2004, 14:28
kunam kunam is offline
Friend
 
Join Date: Jul 2004
Posts: 35
Rept. Given: 14
Rept. Rcvd 2 Times in 2 Posts
Thanks Given: 1
Thanks Rcvd at 2 Times in 2 Posts
kunam Reputation: 2
Angry The best method to kill TIMER

hi all i need your help here...
in my apps i create more than 30 TTimer thread classes.
when application is execute, all TTimer i set to enable.
inside TTimer i place some code, this code act like this
- random x
- if x is equal to TTimer (in miliseconds) then application closed
so guys, how to break before TTimer CALL application close,
i just want to NOP this call.
(because my apps random the time when its closed, my apps can close in
different range of time of course)
what is the best method..???
thank you

Last edited by kunam; 08-17-2004 at 15:40. Reason: just add some infos
Reply With Quote
  #2  
Old 08-17-2004, 14:44
grashalm_
 
Posts: n/a
hi,

just a idea - take a look if there is a cmp eax,ebx or a compare against 0/1 and try to change this...

maybe this helps

greets
grashalm_
Reply With Quote
  #3  
Old 08-17-2004, 23:11
sgdt
 
Posts: n/a
RAND is a very uncomon routine, unless the application is a game. What if RAND where to always return an obscenly large value? That would enable your app to run for a month or so continiously...

Seriously, I would just nuke the VMT entry for On Timer or whatever it is (been a while since I've messed with Delphi code).
Reply With Quote
  #4  
Old 08-17-2004, 23:27
djneo
 
Posts: n/a
i'm sorry but i don't understand what you want to do

it's your application and you want patch it.

For break, you can try Settimer to know identifier of the timer and sometimes the address of the function called and after with ontimer you know when it is called.

Otherwise with ExitProcess, you will land at the end of the function.
Reply With Quote
  #5  
Old 08-22-2004, 16:14
kunam kunam is offline
Friend
 
Join Date: Jul 2004
Posts: 35
Rept. Given: 14
Rept. Rcvd 2 Times in 2 Posts
Thanks Given: 1
Thanks Rcvd at 2 Times in 2 Posts
kunam Reputation: 2
i just code it by myself, to test my skill, but
thats why i make alot TTimer classes, i think if we put on SetTimer/OnTimer
it will break in all execution of TTimer not in the specific class that
execute a function that call Form.Close,
i just want to break at Form.Close when TTimer call this
Reply With Quote
  #6  
Old 09-06-2004, 16:28
SkyYear
 
Posts: n/a
First, not clearly know your meaning.
Secnod, What's your coding language?
Third,
if you can't use FORM.CLOSE event to stop the App Close.
Try HOOK MSG of your App.
WM_CLOSE
Reply With Quote
  #7  
Old 09-07-2004, 02:14
FrmrV
 
Posts: n/a
Well... if djneo's or grashalm_'s solution don't work, then I don't know what.
Try their solutions first, then come tell us the good news.

The key to kill the timer is in the cmp. (nop the call to exit)

Last edited by FrmrV; 09-07-2004 at 02:17.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Timer Functions bedrock General Discussion 9 05-24-2005 23:09
Good App to kill Spyware wizkid0109 General Discussion 13 08-15-2004 10:36


All times are GMT +8. The time now is 14:39.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )