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 2 1499
"Lee Crabtree" <lc*******@gois i.com> wrote in message
news:eI******** ********@TK2MSF TNGP12.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.
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******** *******@TK2MSFT NGP09.phx.gbl.. . "Lee Crabtree" <lc*******@gois i.com> wrote in message news:eI******** ********@TK2MSF TNGP12.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.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 multiple support
libraries I developed as PlugIns.
I know the Garbage Collector will handle and release memory as it
needs to (or something like that),...
|
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 GOES HERE -->
|
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 converted/developed with VB.NET.
What I want from debugging is to be able to step into the methods in
the DLLs called from ASP scripts using Visual Studio .NET.
...
|
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 center
cluster that are each running a number of web applications. For some
reason one of the boxes' asp_wp process keeps recylcing on us. It seems...
|
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 of memory.
Suppose i run first C# application which has occupied all memory and
| |
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 codes written in VC6
which I want to encapsulate in a managed assembly using C++/CLI so that
I can use it in C# easily without all the interop codes....
|
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 app.config file referencing arbitrary
versions of the plug-in components they wish to consume.
Here's the problem:
Assuming I have installed any...
|
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? In the
Makefile can I just add a "-g" flag to have the binary produced with
debugging symbols? The source is written in ANSI C.
This is what I...
|
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 while, the application is
using more than 100 or 150 Mb in RAM, and if I let it continue, it can leave
the system without memory. I've been watching in...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
| |
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
| |