?
Solved

Compiler  ignoring errors

Posted on 2002-05-02
2
Medium Priority
?
253 Views
Last Modified: 2010-04-04
I am writing an application in Delphi 5, with a main form calling about 6 child forms. I am in the middle of converting any labels,captions,text messages etc to read the captions in from a text file. This will allow easier language conversion. I have converted all the child forms and am working on the main form. I have written a procedure (procedure mainform.findcaption(i:integer; var txt:string) so i can supply the index of the text file(i) and the procedure returns the string(txt). however every time i compile the project, it ignores the new procedure. I can also create a procedure without declaring it or even rename a current procedure and the compiler reports everything is ok and the program runs ignoring and changes i have made. How can i get the compiler to see the errors?
0
Comment
Question by:alshepstone
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Expert Comment

by:God_Ares
ID: 6986126
and if you put the cursor somwere random and type in 'asdfasdfgsfkgask3274627834678' it's all ok?

if yes then you are not compiling the unit your working on, try finding the right unit you ware working on, open it with the ctrl+click at the uses clausule.
0
 

Accepted Solution

by:
neld earned 150 total points
ID: 7018121
you probably have an old dcu laying around somewhere which the compiler finds before it finds the new dcu..  Your main form is probably compiling its dcu to some arb folder, and in your current folder you have an old dcu..

what i generally do for each project is create a seperate dcu and dcp folder and then i sent the dcu and dcp out directories to them (..\Dcu or ..\Dcp).

quick fix ! find all dcus via windows search, delete them all and do a build all

derrick
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question