Solved

Compiler  ignoring errors

Posted on 2002-05-02
2
250 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 50 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

726 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