473,320 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Debugging unmangaged code

I have a asp.net web application, using C#, which references (ie., using) a
managed dll acting as a wrapper around unmanaged C++ classes. All works just
fine except that I can't debug the unmanaged code. When I set the project
settings to debug unmanaged code to true and start up the application with
the debugger, Visual Studio.NET hangs and I have to stop it using the Task
Manager. I reference the same dll in a C#, non-web/asp application and can
step into the unmanaged code.

Anyone have any ideas or do I need to set something else other than the
project setting?

Thanks.
Jon Lea.
Nov 18 '05 #1
4 1284
Is the Unmanaged code written in VC++? Can you attach to the process thru
VC++ 6.0 IDE and run it?

- Sahil Malik
You can reach me thru my blog at
http://www.dotnetjunkies.com/weblog/sahilmalik

"jlea" <jo*@leapsoft.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
I have a asp.net web application, using C#, which references (ie., using) a managed dll acting as a wrapper around unmanaged C++ classes. All works just fine except that I can't debug the unmanaged code. When I set the project
settings to debug unmanaged code to true and start up the application with
the debugger, Visual Studio.NET hangs and I have to stop it using the Task
Manager. I reference the same dll in a C#, non-web/asp application and can
step into the unmanaged code.

Anyone have any ideas or do I need to set something else other than the
project setting?

Thanks.
Jon Lea.

Nov 18 '05 #2
Yes - the unmanaged code is VC++ built with .NET.

"Sahil Malik" <co*****************@nospam.com> wrote in message
news:eR**************@TK2MSFTNGP12.phx.gbl...
Is the Unmanaged code written in VC++? Can you attach to the process thru
VC++ 6.0 IDE and run it?

- Sahil Malik
You can reach me thru my blog at
http://www.dotnetjunkies.com/weblog/sahilmalik

"jlea" <jo*@leapsoft.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
I have a asp.net web application, using C#, which references (ie., using)
a
managed dll acting as a wrapper around unmanaged C++ classes. All works

just
fine except that I can't debug the unmanaged code. When I set the

project settings to debug unmanaged code to true and start up the application with the debugger, Visual Studio.NET hangs and I have to stop it using the Task Manager. I reference the same dll in a C#, non-web/asp application and can step into the unmanaged code.

Anyone have any ideas or do I need to set something else other than the
project setting?

Thanks.
Jon Lea.


Nov 18 '05 #3
Then, attach to the process thru VC++ 6.0 IDE

- Sahil Malik
You can reach me thru my blog at
http://www.dotnetjunkies.com/weblog/sahilmalik
"jlea" <jo*@leapsoft.com> wrote in message
news:OB**************@TK2MSFTNGP10.phx.gbl...
Yes - the unmanaged code is VC++ built with .NET.

"Sahil Malik" <co*****************@nospam.com> wrote in message
news:eR**************@TK2MSFTNGP12.phx.gbl...
Is the Unmanaged code written in VC++? Can you attach to the process thru
VC++ 6.0 IDE and run it?

- Sahil Malik
You can reach me thru my blog at
http://www.dotnetjunkies.com/weblog/sahilmalik

"jlea" <jo*@leapsoft.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
I have a asp.net web application, using C#, which references (ie., using)
a
managed dll acting as a wrapper around unmanaged C++ classes. All works just
fine except that I can't debug the unmanaged code. When I set the

project settings to debug unmanaged code to true and start up the application with the debugger, Visual Studio.NET hangs and I have to stop it using the Task Manager. I reference the same dll in a C#, non-web/asp application and can step into the unmanaged code.

Anyone have any ideas or do I need to set something else other than

the project setting?

Thanks.
Jon Lea.



Nov 18 '05 #4
Thanks - I'll give that a try. Jon.

"Sahil Malik" <co*****************@nospam.com> wrote in message
news:e2**************@TK2MSFTNGP10.phx.gbl...
Then, attach to the process thru VC++ 6.0 IDE

- Sahil Malik
You can reach me thru my blog at
http://www.dotnetjunkies.com/weblog/sahilmalik
"jlea" <jo*@leapsoft.com> wrote in message
news:OB**************@TK2MSFTNGP10.phx.gbl...
Yes - the unmanaged code is VC++ built with .NET.

"Sahil Malik" <co*****************@nospam.com> wrote in message
news:eR**************@TK2MSFTNGP12.phx.gbl...
Is the Unmanaged code written in VC++? Can you attach to the process thru VC++ 6.0 IDE and run it?

- Sahil Malik
You can reach me thru my blog at
http://www.dotnetjunkies.com/weblog/sahilmalik

"jlea" <jo*@leapsoft.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
> I have a asp.net web application, using C#, which references (ie.,

using)
a
> managed dll acting as a wrapper around unmanaged C++ classes. All works just
> fine except that I can't debug the unmanaged code. When I set the

project
> settings to debug unmanaged code to true and start up the
application
with
> the debugger, Visual Studio.NET hangs and I have to stop it using
the Task
> Manager. I reference the same dll in a C#, non-web/asp application
and can
> step into the unmanaged code.
>
> Anyone have any ideas or do I need to set something else other than

the > project setting?
>
> Thanks.
> Jon Lea.
>
>



Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: R Millman | last post by:
under ASP.NET, single stepping in debug mode appears not to stop within event procedures. i.e. 1) Create web page with submit button and event procedure for the click event in the code behind...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
5
by: Velvet | last post by:
Can someone tell me to what process I need to attach to be able to step through my classic ASP code in VS.net 2003. I'm working on an XP box with IIS installed. I also have VS.net 2005 (The...
5
by: snicks | last post by:
I'm trying to exec a program external to my ASP.NET app using the following code. The external app is a VB.NET application. Dim sPPTOut As String sPPTOut = MDEPDirStr + sID + ".ppt" Dim p As...
8
by: razael1 | last post by:
I am putting debugging messages into my program by putting blocks that look like this: #ifdef DEBUG errlog << "Here is some information"; #endif All these #ifdef blocks make the code bulky and...
5
by: phnimx | last post by:
Hi , We have developed a number of plug-in .NET Library Components that we typically deploy with our various applications by installing them into the GAC. Each of the applications contains an...
5
by: rn5a | last post by:
Can someone please suggest me a text editor especially for DEBUGGING ASP scripts apart from Microsoft Visual Interdev? I tried using Visual Interdev & created a project but Interdev generates...
0
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
2
jwwicks
by: jwwicks | last post by:
C/C++ Programs and Debugging in Linux This tutorial will give you a basic idea how to debug a program in Linux using GDB. As you are aware Visual Studio doesn’t run on Linux so you have to use...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.