Smart questions
Smart answers
Smart people
Join Tek-Tips Forums
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

MLNorton (Programmer) (OP)
16 Oct 11 0:01
I have a Delphi 7 program with several Forms. A procedure in a Form calls another Form. This has been working until I had to change the called Form to a different one. Now the program skips the entire Unit that contains the calling Form and apparently is finding an old dcu file and running it since the resulting Form is the old one and not the new one. The following code might help:

Unit NewMember
........
........
    Application.CreateForm(TForm_NewEntry, Form_NewEntry);
    Form_NewEntry.ShowModal;

Previously the called Form was "Form_NewData" and "Form_NewEntry is the desired Form as shown in the Unit. Form_NewData is displayed rather than the desired Form_NewEntry.  Unit NewMember is never run.

How can this be resolved?
 
Glenn9999 (Programmer)
16 Oct 11 4:28
What's specified in the DPR?

It is not possible for anyone to acknowledge truth when their salary depends on them not doing it.

djjd47130 (Programmer)
16 Oct 11 8:08
Not sure if this will help fix your problem, but I have a little trick for deleting temporary files. First of all I never tell delphi to save any dcu files or anything in any other place (by default in the same folder as the unit). I have a batch file in every folder which looks like this:

CODE

@Echo off
echo Deleting temporary files...
del *.~*
del *.dcu
del *.map
del *.ddp
del *.dti
del *.dof
del *.cfg
del *.clx
del *.dsk
del *.dsm
echo Complete.

Run this batch file any time you want to make sure all temporary files are deleted. It's a good cleanup routine every now and then. I still haven't had the time to create a project which does this work for me, but that might come soon.

JD Solutions

DjangMan (Programmer)
16 Oct 11 14:14
GExperts has a similar utility to keep your folders clean.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close