I am using a C# assembly in Delphi.Win32 using the com interop services.
This works fine, but I am looking for a way to debug the C# assembly. When
using a Delphi program as a host for the assembly, the program quits at the
point where it uses the assembly. If I start the Delphi program itself, all
works fine, but I can't debug the C# code.
Is there a way to have the Delphi debugger step into the C# assembly when
it's loaded? Or is there an alternative debugger that will help me with that?
Any help is appreciated.
Bye,
Bart Roozendaal 7 3139
Hi,
What if you use a C# program to make the same calls (methods & parameters)
than you do from Delphi?
You can attach the debug to anther process. go to Debug/Processes and
select the process you want (from the .dll IDE ) , additionally you could
compile the external program and set it as the starting program fomr the
Project/Properties menu. I use this technique when I'm programming GIS code
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Bart Roozendaal" <ba*************@sevensteps.nl> wrote in message
news:6d*************************@news.microsoft.co m... I am using a C# assembly in Delphi.Win32 using the com interop services. This works fine, but I am looking for a way to debug the C# assembly. When using a Delphi program as a host for the assembly, the program quits at the point where it uses the assembly. If I start the Delphi program itself, all works fine, but I can't debug the C# code.
Is there a way to have the Delphi debugger step into the C# assembly when it's loaded? Or is there an alternative debugger that will help me with that? Any help is appreciated.
Bye, Bart Roozendaal
Hello Ignacio Machin ( .NET/ C# MVP )" ignacio.machin AT dot.state.fl.us,
Thanks for answering me. I tried both attaching to the running process (gives
an error: cannot attach to this process or similar) as well as using the
Delphi program as a startup program (which causes the program to quit immediately
when calling the assembly. I haven't tried using a C# calling program as
I will assume that will work fine. The code in itself looks ok, it's just
that I want to have a decent way of debugging...
Any other suggestion you might have is much appreciated.
bart Hi,
What if you use a C# program to make the same calls (methods & parameters) than you do from Delphi?
You can attach the debug to anther process. go to Debug/Processes and select the process you want (from the .dll IDE ) , additionally you could compile the external program and set it as the starting program fomr the Project/Properties menu. I use this technique when I'm programming GIS code
"Bart Roozendaal" <ba*************@sevensteps.nl> wrote in message news:6d*************************@news.microsoft.co m...
I am using a C# assembly in Delphi.Win32 using the com interop services. This works fine, but I am looking for a way to debug the C# assembly. When using a Delphi program as a host for the assembly, the program quits at the point where it uses the assembly. If I start the Delphi program itself, all works fine, but I can't debug the C# code.
Is there a way to have the Delphi debugger step into the C# assembly when it's loaded? Or is there an alternative debugger that will help me with that? Any help is appreciated.
Bye, Bart Roozendaal
Hello Ignacio Machin ( .NET/ C# MVP )" ignacio.machin AT dot.state.fl.us,
FWIW: I now tried using the assembly from a X# host program and debugging
just works fine there... Hi,
What if you use a C# program to make the same calls (methods & parameters) than you do from Delphi?
You can attach the debug to anther process. go to Debug/Processes and select the process you want (from the .dll IDE ) , additionally you could compile the external program and set it as the starting program fomr the Project/Properties menu. I use this technique when I'm programming GIS code
"Bart Roozendaal" <ba*************@sevensteps.nl> wrote in message news:6d*************************@news.microsoft.co m...
I am using a C# assembly in Delphi.Win32 using the com interop services. This works fine, but I am looking for a way to debug the C# assembly. When using a Delphi program as a host for the assembly, the program quits at the point where it uses the assembly. If I start the Delphi program itself, all works fine, but I can't debug the C# code.
Is there a way to have the Delphi debugger step into the C# assembly when it's loaded? Or is there an alternative debugger that will help me with that? Any help is appreciated.
Bye, Bart Roozendaal
Hi,
Are you exporting it as a COM ?
If the code works fine then it's an issue with the COM visibility from
Delphi. How are you doing it?
There is a checkmark in Project/Settings that reads as "Register for COM
interop", make sure it's marked
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Bart Roozendaal" <ba*************@sevensteps.nl> wrote in message
news:6d*************************@news.microsoft.co m... Hello Ignacio Machin ( .NET/ C# MVP )" ignacio.machin AT dot.state.fl.us,
Thanks for answering me. I tried both attaching to the running process (gives an error: cannot attach to this process or similar) as well as using the Delphi program as a startup program (which causes the program to quit immediately when calling the assembly. I haven't tried using a C# calling program as I will assume that will work fine. The code in itself looks ok, it's just that I want to have a decent way of debugging...
Any other suggestion you might have is much appreciated. bart
Hi,
What if you use a C# program to make the same calls (methods & parameters) than you do from Delphi?
You can attach the debug to anther process. go to Debug/Processes and select the process you want (from the .dll IDE ) , additionally you could compile the external program and set it as the starting program fomr the Project/Properties menu. I use this technique when I'm programming GIS code
"Bart Roozendaal" <ba*************@sevensteps.nl> wrote in message news:6d*************************@news.microsoft.co m...
I am using a C# assembly in Delphi.Win32 using the com interop services. This works fine, but I am looking for a way to debug the C# assembly. When using a Delphi program as a host for the assembly, the program quits at the point where it uses the assembly. If I start the Delphi program itself, all works fine, but I can't debug the C# code.
Is there a way to have the Delphi debugger step into the C# assembly when it's loaded? Or is there an alternative debugger that will help me with that? Any help is appreciated.
Bye, Bart Roozendaal
Hi,
"Bart Roozendaal" <ba*************@sevensteps.nl> wrote in message
news:6d*************************@news.microsoft.co m... Hello Ignacio Machin ( .NET/ C# MVP )" ignacio.machin AT dot.state.fl.us,
FWIW: I now tried using the assembly from a X# host program and debugging just works fine there...
Are you registering your dll for COM interop?
Hello Ignacio Machin ( .NET/ C# MVP )" ignacio.machin AT dot.state.fl.us,
Hi Ignacio, see other answer, but yes, I do... Hi,
"Bart Roozendaal" <ba*************@sevensteps.nl> wrote in message news:6d*************************@news.microsoft.co m...
Hello Ignacio Machin ( .NET/ C# MVP )" ignacio.machin AT dot.state.fl.us,
FWIW: I now tried using the assembly from a X# host program and debugging just works fine there... Are you registering your dll for COM interop?
Hello Ignacio Machin ( .NET/ C# MVP )" ignacio.machin AT dot.state.fl.us,
I'm using BDS2006: there is no Project-Settings option, just Project-Options.
In the Options there is no 'Register for COM interop'. I used regasm to generate
a tlb, which I imported in the Delphi program.
In the help files, the only reference I can find to the 'Register for COM
Interop' setting is in a Visual Basic.NET example and a V# description. In
the assemblyinfo I have added the [assembly: ComVisible(true)] setting.
Does this help you?
Bye,
Bart Hi,
Are you exporting it as a COM ?
If the code works fine then it's an issue with the COM visibility from Delphi. How are you doing it?
There is a checkmark in Project/Settings that reads as "Register for COM interop", make sure it's marked
"Bart Roozendaal" <ba*************@sevensteps.nl> wrote in message news:6d*************************@news.microsoft.co m...
Hello Ignacio Machin ( .NET/ C# MVP )" ignacio.machin AT dot.state.fl.us,
Thanks for answering me. I tried both attaching to the running process (gives an error: cannot attach to this process or similar) as well as using the Delphi program as a startup program (which causes the program to quit immediately when calling the assembly. I haven't tried using a C# calling program as I will assume that will work fine. The code in itself looks ok, it's just that I want to have a decent way of debugging...
Any other suggestion you might have is much appreciated. bart
Hi,
What if you use a C# program to make the same calls (methods & parameters) than you do from Delphi?
You can attach the debug to anther process. go to Debug/Processes and select the process you want (from the .dll IDE ) , additionally you could compile the external program and set it as the starting program fomr the Project/Properties menu. I use this technique when I'm programming GIS code
"Bart Roozendaal" <ba*************@sevensteps.nl> wrote in message news:6d*************************@news.microsoft.co m...
I am using a C# assembly in Delphi.Win32 using the com interop services. This works fine, but I am looking for a way to debug the C# assembly. When using a Delphi program as a host for the assembly, the program quits at the point where it uses the assembly. If I start the Delphi program itself, all works fine, but I can't debug the C# code.
Is there a way to have the Delphi debugger step into the C# assembly when it's loaded? Or is there an alternative debugger that will help me with that? Any help is appreciated.
Bye, Bart Roozendaal This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: glenn |
last post by:
I've gotten a COM server written in C# and I can call it from a VBScript
just fine and it works perfectly. However, I import it into Delphi 6 or
Delphi 2005 and I can not get access to any of the...
|
by: lukeharpin |
last post by:
Hi World,
We have been developing Engineering software in Delphi 3,4,5,6,7 for a
few years now. This morning we had a discussion about OOP and
re-programming the software to which the question...
|
by: Sunil Varma |
last post by:
Hello all,
I wrote a Windows Service in VC.NET 2005
I want to debug the solution.
I tried as mentioned in the following link.
...
|
by: MB |
last post by:
I had a C++ dll that I used for C++ applications. I added a managed C++
class to this library and started to use the managed C++ class in my C#
application.
This works OK only if I build the C++...
|
by: Bardo |
last post by:
Hi all,
We are trying to debug an assembly which was built in debug configuration on
our build server. The output window of visual studio indicates that no
symbols are being loaded for the...
| |
by: Andrew Rowley |
last post by:
I am having trouble getting debug and release builds to work properly
with project references using C++ .NET and Visual Studio 2003.
I created a test solution, with a basic Windows form C++...
|
by: =?Utf-8?B?ZGF2ZWJ5dGhlc2Vh?= |
last post by:
Dear List,
We have a large application written in Delphi. I am writing a mobile app
written in .NET (C#) which reads and writes into the Delphi applications
Oracle database via a .NET Web...
|
by: =?Utf-8?B?SHVnaA==?= |
last post by:
Hi there
We are trying to build a C sharp solution in Visual Studio 2005 Professional.
We have a number of other assemblies, that do not form part of the solution.
Assemblies that do form...
|
by: =?Utf-8?B?bG10dGFn?= |
last post by:
We have developed a number of different applications (ASP.NET web site,
Windows services, DLLs, Windows forms, etc.) in C# 2.0. We have developed
and unit tested all these applications/components...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |