Today I reopened an old project to make some updates.
After the first run I realized that it doesn't shut down and require Ctrl+F2 
(Program reset) in
order to shut it down.
Even running the application from outside of Delphi (Explorer) will let the 
application in memory.
Running the project 'step by step' looks ok. Delphi will close all forms even 
the main form but it
can't reach the project after running the last line of code 'end.' but the 
project is still
running.

begin
  Application.Initialize;
  Application.CreateForm(TFrmBMX, FrmBMX);
  ...
  Application.Run;
end. -----> last line of code

After few hours I found the source of the problem but I still don't know why 
this happens:
I used a TShellTreeView in one on my forms. After I've deleted that 
TShellTreeView the program
worked/shutdown properly.

So, I've reloaded a copy of the buggy project from a backup and started to play 
with that
ShellTreeView.
After 2 minutes I've found that setting the 'Root' property from 'rfDesktop' to 
'C:\' and back to
'rfDesktop' will solve the problem.

Strange!
Now everything is ok. 
I just wanted to let you know what to do if you will run in the same problem.

PS: there is a smaller/better replacement for TShellTreeView?


...and the traveler died, stroked by the beauty of the landscape.

THE MORNING OF THE MAGICIANS
Louis Pawels & Jacques Bergier

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to