473,386 Members | 1,721 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,386 software developers and data experts.

memory breakpoints/buffer overflows in the VC++ 2005 debugger

I have an app written in native C++ using Visual C++ 2005 (pro edition).
How can I set a memory breakpoint in the debugger for this app?
Or alternatively, is there another source level debugger I can use that
will let me set such breakpoints?

Note that moving to Visual Studio 2008 is not an option.
Feb 16 '08 #1
2 2118
Does VS 2008 have this feature?

Way back in my VAX/VMS days, the debugger had a feature called a "watch
point", which would break into the debugger when data at a specified memory
address was modified. The debugger did this by write protecting the page
containing the watch point, then handling the resultant access violations,
completing those that don't involve the watch point and breaking into the
debugger on those that do.

Bob

"Jonathan Wilson" <jf*****@tpgi.com.auwrote in message
news:uW**************@TK2MSFTNGP05.phx.gbl...
>I have an app written in native C++ using Visual C++ 2005 (pro edition).
How can I set a memory breakpoint in the debugger for this app?
Or alternatively, is there another source level debugger I can use that
will let me set such breakpoints?

Note that moving to Visual Studio 2008 is not an option.
Feb 16 '08 #2
Hi Jonathan!
I have an app written in native C++ using Visual C++ 2005 (pro edition).
How can I set a memory breakpoint in the debugger for this app?
Or alternatively, is there another source level debugger I can use that
will let me set such breakpoints?
Start your project in the debugger. Set some breakpoint where the
variable is accessible.
Then in the menu:
Debug|New Breakpoint|New Data Breakpoint...

The specify either the address or the variable name.

Depending on the processor, normally 4 data breakpoints are natively
supported.

PS: Memory(Data)-Breakpoints are a avilable since several years in VS...
--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Feb 16 '08 #3

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

Similar topics

5
by: blugus | last post by:
Hi Guys, I've been try to use Dinkum STL library. It workes well first, but report memory leak in MFC Debug Mode. I use Dinkum Unabridged Library for VC++ V4.02, MSVC6, WIN2000 SERVER. I...
5
by: Noa Garnett | last post by:
I'm developing on C++, using visual studio 6.0 with service pack 5. I have a memory corruption while debugging. Some of the variables I'm using are suddenly set to zero while progressing along the...
10
by: p175 | last post by:
Hi folks, I'm after some guidelines on general memory allocations for DB2 8.2.2 ESE on Win2k Server FP4 with 4gb physical memory. Seeing as everything is 32bit and win2k server does not...
5
by: lawrencelee | last post by:
My purpose is to know which code reads value from a certain address. So I want to set a memory breakpoint and when cpu reads from the address, the breakpoint will be hit. But in the "Data breakpoint"...
5
by: Senapathy | last post by:
Environment: WinXP, VC++ 7.1 Standard Edition ~~~~~~~~~~~ I have a set of functions that I invoke from main() function of a sample console app. These are the functions:...
2
by: Ilkka | last post by:
I have created an C++ application with Windows Forms, ADO and SQL server 2005. Now I need to change something and started debugging the code. Then suddenly I receive an error. "An unhandled...
81
by: Peter Olcott | last post by:
It looks like System::Collections::Generic.List throws and OUT_OF_MEMORY exception whenever memory allocated exceeds 256 MB. I have 1024 MB on my system so I am not even out of physical RAM, much...
1
by: theresegt1 | last post by:
Does anyone know why VS 2005 might skip breakpoints when debugging through the browser? It's a new installation so no configurations other than 'set startup project' and 'set startup page' have...
7
by: Mesan | last post by:
This is baffling me - I'm coming here in a desperate plea that someone smarter than myself (which isn't hard) might be able to explain what's going on. I've got a native C++ console app that has...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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 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.