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