 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Robert Guest
|
Posted: Wed May 16, 2007 11:28 pm Post subject: Using a previous custom component in a Delphi 6 to 2007 upgr |
|
|
I am porting 3 applications from Delphi 6 to Delphi 2007, all of which
use a custom, non-visual component I created. The component is
installed and available on the tool pallet.
I am having an error that is within the component each time I run any
app with the component on it and need to get in and debug it. But I
cannot seem to be able to debug and the instructions in the help file
are confusing. I have tried it both ways, as an installed component
and as an uninstalled component. I am unable to be able to step
through the component's source and debug the errors.
Under Testing Installed Components, it reads
Test an installed component using a second running instance of the
IDE:
1. Choose ProjectOptionsDebugger and set the Debug Source Path to
point to the component's source file.
2. Then select ToolsOptions. On the Debugger OptionsBorland
DebuggersLanguage Exceptions page, enable the exceptions you want to
track.
3. Open the component source file and set breakpoints.
Select RunParameters and set the Host Application field to the name
and location of the Delphi executable file.
4. In the Run Parameters dialog, click the Load button to start a
second instance of Delphi.
Then drop the components to be tested on the form, which should break
on your breakpoints in the source.
Its the number 4 item I don't get. I do not see a Load button on the
Run/Parameters dialog.
any help would be greatly appreciated.
Robert |
|
| Back to top |
|
 |
Mike Williams (TeamB) Guest
|
Posted: Wed May 16, 2007 11:41 pm Post subject: Re: Using a previous custom component in a Delphi 6 to 2007 |
|
|
Robert wrote:
| Quote: | I am having an error that is within the component each time I run any
app with the component on it and need to get in and debug it. But I
cannot seem to be able to debug and the instructions in the help file
are confusing. I have tried it both ways, as an installed component
and as an uninstalled component. I am unable to be able to step
through the component's source and debug the errors.
|
It sounds like Delphi simply can't find the source file but perhaps
only the compiled DCU. If you open the source file in the editor and
do a build, do you see blue balls on each line that contains actual
code?
--
-Mike (TeamB) |
|
| Back to top |
|
 |
Liz Guest
|
Posted: Wed May 16, 2007 11:44 pm Post subject: Re: Using a previous custom component in a Delphi 6 to 2007 |
|
|
Robert wrote:
| Quote: | 4. In the Run Parameters dialog, click the Load button to start a
second instance of Delphi.
|
Under my run menu, I have a "Load process" option, I imagine instead of
run parameters, the load process menu option, and then browse for
delphi, and OK it at the bottom.
| Quote: | any help would be greatly appreciated.
|
Does the problem occurr if instead of dropping it on the form you
create it at run time? You should be able to trace through its creation
if you create it at runtime.
--
Liz the Brit
Delphi things I have released: http://www.xcalibur.co.uk/DelphiThings |
|
| Back to top |
|
 |
Robert Guest
|
Posted: Thu May 17, 2007 1:10 am Post subject: Re: Using a previous custom component in a Delphi 6 to 2007 |
|
|
Hi Mike,
I am not sure what you mean by blue balls, I have attached a picture.
Let me know what you think.
Robert
On Wed, 16 May 2007 14:41:30 -0400, "Mike Williams (TeamB)"
<mlwi!!iams@gmail!.com> wrote:
| Quote: | Robert wrote:
I am having an error that is within the component each time I run any
app with the component on it and need to get in and debug it. But I
cannot seem to be able to debug and the instructions in the help file
are confusing. I have tried it both ways, as an installed component
and as an uninstalled component. I am unable to be able to step
through the component's source and debug the errors.
It sounds like Delphi simply can't find the source file but perhaps
only the compiled DCU. If you open the source file in the editor and
do a build, do you see blue balls on each line that contains actual
code? |
|
|
| Back to top |
|
 |
Robert Guest
|
Posted: Thu May 17, 2007 1:16 am Post subject: Re: Using a previous custom component in a Delphi 6 to 2007 |
|
|
When I did it non visually and created it at run time, I had a create
event. But the error seems to occur before the vcl is even created
because putting a breakpoint on the oncreate event did not stop the
error from happening.
Pathwise, I have the VCL in the Lib folder so it should be able to see
it.
I do have the Load Process on my Run menu. I tried putting that in.
The error occurs on the Application.CreateForm(TForm1, Form1);
command.
Funny thing is, the VCL is working. It has calculations that I can see
working when I drop one on a form and change one of the property
values. I can't figure out why I get a 'file not found' error.
Thanks for your help,
Robert
On 16 May 2007 11:44:12 -0700, "Liz"
<liz_wants_no_spam (AT) xcalibur (DOT) nospam.co.uk> wrote:
| Quote: | Robert wrote:
4. In the Run Parameters dialog, click the Load button to start a
second instance of Delphi.
Under my run menu, I have a "Load process" option, I imagine instead of
run parameters, the load process menu option, and then browse for
delphi, and OK it at the bottom.
any help would be greatly appreciated.
Does the problem occurr if instead of dropping it on the form you
create it at run time? You should be able to trace through its creation
if you create it at runtime. |
|
|
| Back to top |
|
 |
Robert Guest
|
Posted: Thu May 17, 2007 4:40 am Post subject: Re: Using a previous custom component in a Delphi 6 to 2007 |
|
|
I was able to get the vcl to work, even though I never was able to get
it to debug. I had to set some paths and now the file it was not
finding, it finds and works.
Now I am having an error that says Required package dss not found.
I notice that all the packages listed in Runtime Packages are the
older Delphi 6 ones. Do I need to delete all those or what? Any ideas?
Robert
On Wed, 16 May 2007 11:28:24 -0700, Robert <meshael (AT) yahoo (DOT) com> wrote:
| Quote: | I am porting 3 applications from Delphi 6 to Delphi 2007, all of which
use a custom, non-visual component I created. The component is
installed and available on the tool pallet.
I am having an error that is within the component each time I run any
app with the component on it and need to get in and debug it. But I
cannot seem to be able to debug and the instructions in the help file
are confusing. I have tried it both ways, as an installed component
and as an uninstalled component. I am unable to be able to step
through the component's source and debug the errors.
Under Testing Installed Components, it reads
Test an installed component using a second running instance of the
IDE:
1. Choose ProjectOptionsDebugger and set the Debug Source Path to
point to the component's source file.
2. Then select ToolsOptions. On the Debugger OptionsBorland
DebuggersLanguage Exceptions page, enable the exceptions you want to
track.
3. Open the component source file and set breakpoints.
Select RunParameters and set the Host Application field to the name
and location of the Delphi executable file.
4. In the Run Parameters dialog, click the Load button to start a
second instance of Delphi.
Then drop the components to be tested on the form, which should break
on your breakpoints in the source.
Its the number 4 item I don't get. I do not see a Load button on the
Run/Parameters dialog.
any help would be greatly appreciated.
Robert |
|
|
| Back to top |
|
 |
Mike Williams (TeamB) Guest
|
Posted: Thu May 17, 2007 9:17 pm Post subject: Re: Using a previous custom component in a Delphi 6 to 2007 |
|
|
Robert wrote:
| Quote: | I am not sure what you mean by blue balls, I have attached a picture.
Let me know what you think.
|
I don't see any post from you in the attachments group. The blue balls
(or dots) I'm referring to show up in the on the left side of the
editor in the gutter and indicate which lines represent generated code.
These feature existed in Delphi 6 so you should already be familiar
with it.
--
-Mike (TeamB) |
|
| Back to top |
|
 |
Liz Guest
|
Posted: Thu May 17, 2007 9:46 pm Post subject: Re: Using a previous custom component in a Delphi 6 to 2007 |
|
|
Mike Williams (TeamB) wrote:
| Quote: | I don't see any post from you in the attachments group. The blue
balls (or dots) I'm referring to show up in the on the left side of
the editor in the gutter and indicate which lines represent generated
code. These feature existed in Delphi 6 so you should already be
familiar with it.
|
Make sure you have the view gutter on too :P
--
Liz the Brit
Delphi things I have released: http://www.xcalibur.co.uk/DelphiThings |
|
| Back to top |
|
 |
Robert Guest
|
Posted: Fri May 18, 2007 3:22 am Post subject: Re: Using a previous custom component in a Delphi 6 to 2007 |
|
|
Hi Mike,
The small blue dots are there. I did attach a picture but I guess it
did not come through. I am trying it again.
I still cannot figure what I am not doing that does not allow me to
debug and set breakpoints, etc,. in the code. In Delphi 6 it seemed to
be easier to do.
Thanks for your help,
Robert
On Thu, 17 May 2007 12:17:20 -0400, "Mike Williams (TeamB)"
<mlwi!!iams@gmail!.com> wrote:
| Quote: | Robert wrote:
I am not sure what you mean by blue balls, I have attached a picture.
Let me know what you think.
I don't see any post from you in the attachments group. The blue balls
(or dots) I'm referring to show up in the on the left side of the
editor in the gutter and indicate which lines represent generated code.
These feature existed in Delphi 6 so you should already be familiar
with it. |
|
|
| Back to top |
|
 |
Liz Guest
|
Posted: Fri May 18, 2007 8:13 am Post subject: Re: Using a previous custom component in a Delphi 6 to 2007 |
|
|
Robert wrote:
| Quote: | The small blue dots are there. I did attach a picture but I guess it
did not come through. I am trying it again.
|
You cant post attachments in any group, other than attachments.
If you press F7 does it step into your program etc (rather than f9)
--
Liz the Brit
Delphi things I have released: http://www.xcalibur.co.uk/DelphiThings |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|