Solved

Compiler  ignoring errors

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

863 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now