Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread Delphi 2010: F2063 Could not compile used unit 'dbisamst.pas'
Tue, Oct 6 2009 3:00 AMPermanent Link

"James Duff"
Using DBISAM 4.29 Build 1, Delphi 2010 Professional and Windows XP.

When I try to compile, the above error is displayed, and the red line is
under the used unit DBISAMTb in my DataModule.  My Project Options,
Directories and Conditionals contains the following folder name:

.... ; C:\Program Files\DBISAM\RAD Studio (Delphi) 2010\code

I notice that the dbisamst.pas file, referred to in the error message, is
located in the lower named folder called source.

Any idea why this error message occurs?

Regards, Jim.

Tue, Oct 6 2009 12:36 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

James,

<< ... ; C:\Program Files\DBISAM\RAD Studio (Delphi) 2010\code

I notice that the dbisamst.pas file, referred to in the error message, is
located in the lower named folder called source. >>

You need to make sure that the \source subdirectory is not in your compiler
search paths, either the project's Search Path or the IDE's Library Search
Path.   You only need the \code subdirectory in the search path, and the
installation sets that up automatically.

If the compiler search paths are okay, then you need to make sure that there
isn't a different copy of dbisamst.pas somewhere in the compiler search
path.  A global Windows search on dbisamst.* should tell you what the
situation is there.

--
Tim Young
Elevate Software
www.elevatesoft.com

Tue, Oct 6 2009 8:34 PMPermanent Link

"James Duff"
Thanks, Tim.

Your advice led me to finding that, because I had copied the project from
its former folder, there was a library path to the old ...RAD Studio\6.0\lib
(Delphi2009) that had been brought forward, possibly causing some confusion.
I have since replaced it with the correct one.

I have also created a test single unit project with my 'problem' data
module, and it compiles fine under Delphi 2010.

Now, getting back to my problem Project; it has half a dozen data modules
that are auto-created, plus many forms that are created as required.  When I
try to build the project, the first (main) datamodule comes up in the forms
tab pages as a second instance, with an error message saying the session
component has been duplicated.  Whenever I have had error messages in the
past, the unit at fault has never ever come up as a second instance.  So I
think my problem is now with Delphi 2010 rather than with DBISAM.

Thanks again for your help.
Jim.

Tue, Oct 6 2009 10:42 PMPermanent Link

"James Duff"
Hi Tim.

A further note to let you know the problems have now been fixed.

Thanks to advice received from my local ADUG group, I have fixed the Delphi
2010 problem with the duplication of the data module and the contained
session component.  This was done by deleting all the existing .dsk files.

Once that was done, however, I still got the above error message when I
tried to do a Build.  I thought I'd copy all the files (.pas and others) up
from the C:\Program Files\DBISAM\RAD Studio (Delphi) 2010\code\source folder
up one level to its parent ...\code folder.  This then fixed the Build
problem.

Phew, now I can get back to the business logic.

Kind regards,
Jim.

Wed, Oct 7 2009 1:08 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

James,

<< A further note to let you know the problems have now been fixed. >>

Cool, I'm glad that you were able to track everything down and resolve it.

<< Thanks to advice received from my local ADUG group, I have fixed the
Delphi 2010 problem with the duplication of the data module and the
contained session component.  This was done by deleting all the existing
..dsk files. >>

Yeah, we have that same problem with our test framework - I'm constantly
copying old test projects to use as the basis for new test projects, and you
have to be careful to not use the default view that shows up due to the
existing .dsk file, because it is pointing to the old source directory.  I
normally just close all open source windows and then re-open them in the
IDE.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image