For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > September 2004 > Debugging unmangaged code









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Debugging unmangaged code
jlea

2004-09-29, 8:09 pm

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.


Sahil Malik

2004-09-29, 8:09 pm

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" <jon@leapsoft.com> wrote in message
news:%23WuduDmpEHA.896@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.
>
>



jlea

2004-09-29, 8:09 pm

Yes - the unmanaged code is VC++ built with .NET.

"Sahil Malik" <contactmethrumyblog@nospam.com> wrote in message
news:eRfknHmpEHA.2900@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" <jon@leapsoft.com> wrote in message
> news:%23WuduDmpEHA.896@TK2MSFTNGP12.phx.gbl...
using)[color=darkred]
> a
> just
project[color=darkred]
with[color=darkred]
Task[color=darkred]
can[color=darkred]
>
>



Sahil Malik

2004-09-29, 8:09 pm

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" <jon@leapsoft.com> wrote in message
news:OBrQGkmpEHA.3716@TK2MSFTNGP10.phx.gbl...
> Yes - the unmanaged code is VC++ built with .NET.
>
> "Sahil Malik" <contactmethrumyblog@nospam.com> wrote in message
> news:eRfknHmpEHA.2900@TK2MSFTNGP12.phx.gbl...
thru[color=darkred]
> using)
works[color=darkred]
> project
> with
> Task
> can
the[color=darkred]
>
>



jlea

2004-09-30, 11:37 am

Thanks - I'll give that a try. Jon.

"Sahil Malik" <contactmethrumyblog@nospam.com> wrote in message
news:e21qrBnpEHA.4004@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" <jon@leapsoft.com> wrote in message
> news:OBrQGkmpEHA.3716@TK2MSFTNGP10.phx.gbl...
> thru
> works
application[color=darkred]
the[color=darkred]
and[color=darkred]
> the
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com