Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • 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!
  • Students Click Here

*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.

Students Click Here


Unit bypassrd and old dcu run

Unit bypassrd and old dcu run

Unit bypassrd and old dcu run

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);

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?

RE: Unit bypassrd and old dcu run

What's specified in the DPR?

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

RE: Unit bypassrd and old dcu run

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:


@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

RE: Unit bypassrd and old dcu run

GExperts has a similar utility to keep your folders clean.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

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