Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Using TTimer at Delph
Old 12-03-2007, 11:16 AM Using TTimer at Delph
Junior Talker

Posts: 3
Name: Jake
Trades: 0
I got a procedure at delphi that will be executed every 30s. This procedure is read and working ok!
The problem is.

This software will work with out any frame or window. will on used on DOS! i need him to do not leave the memory!

it has only one unit and one data module. at the unit i call a procedure that creates data module that has a timer.

but when i put timer1.enable = true, the action isn't executed. but when i call it by timer(self) then the goes just one time and then it closes. and even if timer1.enabled = true, the timer procedure is not executed again! =(

the code is like this more or less:

in frmMain
begin
try
frmDModule.procedure();// in here i started to put the code
Finally
end;

no DModule
begin
...
...
...
timer1.enable := true;
timer1Timer(Self); //i had to creat here so then it will call the timer function. because it wasnt even going througth there.
end;

the the software closes. how that i make to the software do not closes while the timer1.enable still true? because if i put a while in the procedure, it goes on an eternal loop!

thanks for the help dudes!
jakefrog is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-03-2007, 11:43 AM Re: Using TTimer at Delph
Junior Talker

Posts: 3
Name: Jake
Trades: 0
Some1 told me to use NEW>Service Application

Thats would work for me if the application doesnt close after 15 secs.
What about it? any tips?
jakefrog is offline
Reply With Quote
View Public Profile
 
Old 12-03-2007, 12:15 PM Re: Using TTimer at Delph
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
depends,

Is it going to run as a service, or as a TSR (terminate & stay resident) daemon, or simply a hidden program.

What version of DOS is the target OS.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-03-2007, 12:18 PM Re: Using TTimer at Delph
Junior Talker

Posts: 3
Name: Jake
Trades: 0
i just got noticed that it was a windows 2k server. and it will be called from a prompt.

run > cmd

jakefrog is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Using TTimer at Delph
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23377 seconds with 12 queries