Discussion:
Delphi D7 to Delphi 2007: application compiles fine but cannot run
(too old to reply)
Claus Nielsen
2008-03-26 15:36:38 UTC
Permalink
Hi,
I have a fairly large application written in Delphi7. I have ported it to
Delphi 2007 and fixed a few problems concerning formless Quickreports, but
nothing much else.

The application compiles without warnings, but when I try to run it, it
halts and displays a green line at the "begin" in the project file (why?).
If I press F7, it crashes in the Application.initialize, opens the unit? CPU
and proudly displays an access violation in some "push esi" assembler line.

- Very nice, but does this leave me with any clue as to what may be wrong?

Claus
Peter Below (TeamB)
2008-03-26 19:04:54 UTC
Permalink
Post by Claus Nielsen
Hi,
I have a fairly large application written in Delphi7. I have ported
it to Delphi 2007 and fixed a few problems concerning formless
Quickreports, but nothing much else.
The application compiles without warnings, but when I try to run it,
it halts and displays a green line at the "begin" in the project file
(why?).
Might be a problem in a unit initialization. Do a Build all and then
run the program outside the IDE (Shift-Ctrl-F12). Do you get an
exception dialog this way?
--
Peter Below (TeamB)
Don't be a vampire (http://slash7.com/pages/vampires),
use the newsgroup archives :
http://www.tamaracka.com/search.htm
http://groups.google.com
Claus Nielsen
2008-03-28 11:46:17 UTC
Permalink
Hi,
Ahah! - The application could be started outside the IDE albeit with an
exception stating that "class TPieSeries could not be found". This quickly
lead me to the problem, namely a TChart component that somehow did not
behave well after the transition to Delphi 2007. I replaced the component in
the IDE and now the application runs fine.
Thank you!
Claus
Post by Peter Below (TeamB)
Post by Claus Nielsen
Hi,
I have a fairly large application written in Delphi7. I have ported
it to Delphi 2007 and fixed a few problems concerning formless
Quickreports, but nothing much else.
The application compiles without warnings, but when I try to run it,
it halts and displays a green line at the "begin" in the project file
(why?).
Might be a problem in a unit initialization. Do a Build all and then
run the program outside the IDE (Shift-Ctrl-F12). Do you get an
exception dialog this way?
--
Peter Below (TeamB)
Don't be a vampire (http://slash7.com/pages/vampires),
http://www.tamaracka.com/search.htm
http://groups.google.com
Loading...