Re: Delphi seems to have gone nuts...

From: Raptor (bogus_at_none.com)
Date: 03/18/05

  • Next message: Rob Kennedy: "Re: Delphi seems to have gone nuts..."
    Date: Thu, 17 Mar 2005 15:41:36 -0800
    
    

    Rob Kennedy <me3@privacy.net> wrote in message
    news:39rkv6F644sfqU1@individual.net...
    > Raptor wrote:
    > > This one has me stumped. I'm going along fine when I start getting
    > > odd errors from my code. It's seeing some procedures and functions in
    > > another unit just fine, but not others just adjacent in both the code
    > > and interface declarations.
    > >
    > > It's as if the "old" procedures work fine, but adding anything "new"
    > > makes things bomb. All I can do is drop back to a previous revision
    > > and start adding pieces, as I am unable to find a cause for this
    > > behavior.
    >
    > It seems as though the unit you're editing isn't really being
    > recompiled.

    Yes. As my other posts noted, there seem to somehow be multiple copies at
    work, one I'm editing and one which is being compiled.

    > Make sure the unit either appears in your current project or
    > that its directory is on your project's search path.

    I avoid the use of paths like the plague. I simply clone a new folder for
    each subsequent rev, and ALL of my working source code is in that folder. I
    never, ever, touch the paths lines or try to use code in various places. My
    brief excursions into that were very messy, and persuaded me to use another
    approach.

    > Otherwise, the
    > compiler is always just using the existing DCU file, and any changes you
    > make to the PAS file are simply ignored.

    Gotcha.

    As I mentioned, the strange thing is that when I would get an "undeclared
    identifier" I would do a Find in Files search, and both the modified and
    unmodified files would show the same path. Even though I never mess with
    paths, when two uWhatever files were opened in the editor by the search, the
    paths were the first thing I examined in the results pane.

    I still don't know what's going on. Not the first time.

    R


  • Next message: Rob Kennedy: "Re: Delphi seems to have gone nuts..."

    Relevant Pages

    • Re: Installing an application on Vista/Win7 with VirtualStore ProgramData
      ... <Calling GetUserName fails the first time, ... usersize: dWord; ... The install script changes the user permissions for the data folder and also adds the file which signifies a new installation and causes the startup code to copy the old database into the new structure, ... I need to see if the folder path appears as the actual virtualized folder or the normal path. ...
      (comp.lang.pascal.delphi.misc)
    • RE: "Basic File Search"
      ... this part of the fde gets the folder name FOLDER ... Set oFolderItem = objFolder.Items.Item ... all files with these criteria ... When Dir is used the first time you include the criteria for the search and ...
      (microsoft.public.excel.misc)
    • Re: Is it possible to cancel a destruction ?
      ... Well compiling the VCL was quite simple but required a little bit of work. ... the VCL and then the compiler would simply use the VCL sources to build the ... The compiler was unable to find the resource files. ... delete such a folder without even thinking about it another further. ...
      (alt.comp.lang.borland-delphi)
    • Re: precompiled headers question
      ... All my source files are not in the same folder. ... which contains headers and sources of publishing functionality. ... That is because the compiler will look for the PCH instead of trying to load ... extern int MyFunction; ...
      (microsoft.public.dotnet.languages.vc)
    • Re: Word 6.0 documents in Word 2004
      ... :-) This is the first time I have heard of your ... Tell her to create a new folder: Word2004 Copies, ... I would also be interested to check what her "Default" save format is. ... and we reaffirm the wish to overwrite. ...
      (microsoft.public.mac.office.word)