Help required with (D5) build/compile problem.
dsr_at_cix.compulink.co.uk
Date: 03/22/05
- Next message: Dirk Claessens: "Re: Help required with (D5) build/compile problem."
- Previous message: Maarten Wiltink: "Re: Put/Get in Delphi"
- Next in thread: Dirk Claessens: "Re: Help required with (D5) build/compile problem."
- Reply: Dirk Claessens: "Re: Help required with (D5) build/compile problem."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 22 Mar 2005 14:02:26 +0000 (UTC)
I've got this problem that I don't understand and wondered if anyone could
throw some light on to what might be happening.
Although I'm describing this with an image control, you don't need to know
anything about images or this control to help me.
Back Ground
===========
I have a project which uses a third party component to cope with loading
and saving non-standard image file formats into an Image control. It does
this by using TPicture.RegisterFileFormat in it's initialization section,
and calls some code to convert the image to a bitmap and then displays it.
I've added a codesite message to this bit of code and it does seem to be
doing this.
Problem
=======
This is where it gets weird (to me at least). If I *build* my project and
then run it, then it will load the new image format into the image control
, but when I try to save it, the component throws an exception that the
image isn't a bitmap. Obviously something has gone wrong.
However if I *compile* my project and run it, all works correctly.
Even if I select Build project and then immediately it's built I select
Compile, it works.
It only fails if I try and run directly after a build.
Now as far as I understand it, when I select build, delphi finds all the
pas files, compiles them into dcu files, then compiles the dpr and then
links everything together into an exe. Similarly when I select compile,
delphi just compiles the dpr and then links everything together into an
exe.
So why would a compile result in a program that works and a build in one
that doesn't ? Does a compile do something extra that I'm missing ?
Anyone any idea how to work out what's going on or suggestions on how to
fix it ?
I've tried compiling/building using DCC32.exe and that exhibits the same
problem, so it doesn't look like it's IDE specific.
(Oh and just to be sure I've removed all the pas files to do with the
troublesome component, so that both the compile & build must be using the
same dcu's)
David
- Next message: Dirk Claessens: "Re: Help required with (D5) build/compile problem."
- Previous message: Maarten Wiltink: "Re: Put/Get in Delphi"
- Next in thread: Dirk Claessens: "Re: Help required with (D5) build/compile problem."
- Reply: Dirk Claessens: "Re: Help required with (D5) build/compile problem."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|