COURSE of the MONTH

Compiler ignoring errors

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?

Who is Participating?

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