473,327 Members | 2,118 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,327 software developers and data experts.

debugging memory inside a managed C++ DLL

I have a managed C++ DLL wrapping some unmanaged C++ code. I'm using this
DLL in a C# program, and I need to watch some of the buffers being used.
When I try to use the memory debugger window in Studio, the pointers are all
pointed to 0x0000, and that space is filled with question marks, instead of
the more common hex.

I'm assuming there's something I'm missing here, but I cannot for the life
of me figure out what it is.

Any ideas?

Lee Crabtree
Nov 17 '05 #1
2 1489

"Lee Crabtree" <lc*******@goisi.com> wrote in message
news:eI****************@TK2MSFTNGP12.phx.gbl...
I have a managed C++ DLL wrapping some unmanaged C++ code. I'm using this
DLL in a C# program, and I need to watch some of the buffers being used.
When I try to use the memory debugger window in Studio, the pointers are
all pointed to 0x0000, and that space is filled with question marks,
instead of the more common hex.

I'm assuming there's something I'm missing here, but I cannot for the life
of me figure out what it is.

Any ideas?

Lee Crabtree


There is a bug in your code if that's the case.
Pointers that point to 0x00000000 are non valid pointers (null pointers).
We will need to see some code to help you out with this.

Willy.
Nov 17 '05 #2
I don't think it's a bug in the code. I think it's a problem of unmanaged
versus managed space. The C++ is unmanaged code, and when I'm debugging,
I'm debugging from a C# program. I'm not sure. I'll have to do some more
looking.

Lee Crabtree

"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:ud***************@TK2MSFTNGP09.phx.gbl...

"Lee Crabtree" <lc*******@goisi.com> wrote in message
news:eI****************@TK2MSFTNGP12.phx.gbl...
I have a managed C++ DLL wrapping some unmanaged C++ code. I'm using this
DLL in a C# program, and I need to watch some of the buffers being used.
When I try to use the memory debugger window in Studio, the pointers are
all pointed to 0x0000, and that space is filled with question marks,
instead of the more common hex.

I'm assuming there's something I'm missing here, but I cannot for the
life of me figure out what it is.

Any ideas?

Lee Crabtree


There is a bug in your code if that's the case.
Pointers that point to 0x00000000 are non valid pointers (null pointers).
We will need to see some code to help you out with this.

Willy.

Nov 17 '05 #3

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

Similar topics

2
by: Cider123 | last post by:
I'm posting this in anticipation for troubleshooting tomorrow, however: I have a project I just finished up that I'm beta testing now. It's comprised of a main core Window Service, with...
6
by: Fernando Cacciola | last post by:
Help me out here please: While watching Brad Abraham's MSDN TV talk about the Dispose pattern, refering to: public virtual void Dispose ( bool disposing ) { if ( disposing ) { <-- WHAT...
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...
7
by: Rich Denis | last post by:
Hello, I have been trying to solve a mysterious memory leak problem and was hoping that you could help me out on my stuck point. First a bit of background. We have two app servers in an app...
1
by: trialproduct2004 | last post by:
Hi all, I am having slight confusion regarding memory management in .net. Say suppose i have two application one is in C# and other is in MFC(VC++). Both of this application are using lots...
4
by: Lonewolf | last post by:
hi, I'm still in the process of transiting from MFC/VC6 to vs2005, and a lot of things are very alien to me. So hope you could bear with me if my question sounds stupid. Basically I have native...
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...
2
by: Zach | last post by:
I compiled a game client and it crashed (segmentation fault) resulting in a core file being generated. I'm trying to find out exactly what caused it to crash. Any ideas how I can do this with gdb?...
17
by: Cesar | last post by:
Hello people. I'm having a Winform app that contains a webbrowser control that keeps navigating from one page to another permanentrly to make some tests. The problem I'm having is that after a...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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)...
1
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: 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
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.