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

How to obtain the handle of the heap used by the C-Runtime system?

I guess this is a new function for VS 2003, but how to obtain this
information in VC6 and VC7?

Best regards,
Klaus
Nov 17 '05 #1
3 1844
>I guess this is a new function for VS 2003, but how to obtain this
information in VC6 and VC7?


Klaus,

Have you tried GetProcessHeap?

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Nov 17 '05 #2
Who guarantees that the current C-Runtime is using the process heap ?
I've seen processes with few version of the C-Runtime loade, some linekd
statically
and some linked dynamically (msvcrt.dll, msvcr70.dll, msvcr80.dll),
each one using a different C-Rutnime heap.
In the debugger it's the ModuleName!_crtheap symbol.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"David Lowndes" <da****@example.invalid> wrote in message
news:b4********************************@4ax.com...
I guess this is a new function for VS 2003, but how to obtain this
information in VC6 and VC7?


Klaus,

Have you tried GetProcessHeap?

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq

Nov 17 '05 #3
"Klaus Bonadt" <Bo****@hotmail.com> wrote in message
news:en**************@tk2msftngp13.phx.gbl...
I guess this is a new function for VS 2003, but how to obtain this
information in VC6 and VC7?


_get_heap_handle:
http://msdn.microsoft.com/library/de...eap_handle.asp

Leo Havmøller.
Nov 17 '05 #4

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

Similar topics

17
by: Jonas Rundberg | last post by:
Hi I just started with c++ and I'm a little bit confused where stuff go... Assume we have a class: class test { private: int arr; };
7
by: cppaddict | last post by:
I'm running a Java application that uses a native C++ library I've written. The Java application hits one of the native methods pretty frequently (about 100 ms or so), and while it usually works...
0
by: Erik Hendrix | last post by:
Hi, I was wondering if someone maybe knew what is stored in the following memory array and maybe give a clue as in why it is not released anymore: I have 1 agent which reports the following...
1
by: Geiregat Jonas | last post by:
I'm reading Eric Gunnerson's book. He is talking about the heap and stack, he says you have 2types, value wich are in the stack or inline or reference types wich are in the heap. I don't get...
3
by: nahur | last post by:
why do you need a heap and a stack why not all memory called a heap or call it a stack what is the purpose of having a heap and a stack
2
by: kim d | last post by:
Hi, I know already this is a really stupid question but how do you obtain a handle to an application or a window in C#. Formerly I used Application.Handle in Delphi so I'm looking for the...
18
by: Umesh | last post by:
How Globals are handle in C since global variables can be acessed by any function in that program. Is it they stored in heap so they can be acessed across fuction.OR how they handle in c.
16
by: sarathy | last post by:
Hi all, I need a few clarifications regarding memory allocaion in C++. I apologize for the lengthy explanation. 1. In C++, Objects are allocated in heap. What does heap refer to? Is it an area...
53
by: fdmfdmfdm | last post by:
This is an interview question and I gave out my answer here, could you please check for me? Q. What are the memory allocation for static variable in a function, an automatic variable and global...
2
weaknessforcats
by: weaknessforcats | last post by:
Handle Classes Handle classes, also called Envelope or Cheshire Cat classes, are part of the Bridge design pattern. The objective of the Bridge pattern is to separate the abstraction from the...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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...
0
tracyyun
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...
0
isladogs
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...

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.