Click here to Skip to main content
15,921,622 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralStayOnTop for window. Pin
int01h22-Oct-02 13:33
int01h22-Oct-02 13:33 
GeneralRe: StayOnTop for window. Pin
Christian Graus22-Oct-02 13:36
protectorChristian Graus22-Oct-02 13:36 
GeneralRe: StayOnTop for window. Pin
int01h22-Oct-02 13:39
int01h22-Oct-02 13:39 
GeneralRe: StayOnTop for window. Pin
Christian Graus22-Oct-02 13:44
protectorChristian Graus22-Oct-02 13:44 
GeneralRe: StayOnTop for window. Pin
Anonymous23-Oct-02 4:31
Anonymous23-Oct-02 4:31 
GeneralRe: StayOnTop for window. Pin
Paul M Watt22-Oct-02 14:13
mentorPaul M Watt22-Oct-02 14:13 
GeneralRe: StayOnTop for window. Pin
Christian Graus22-Oct-02 15:34
protectorChristian Graus22-Oct-02 15:34 
GeneralC++ Memory Allocation and Memory Leakage Pin
Anonymous22-Oct-02 13:15
Anonymous22-Oct-02 13:15 
I know, this is a really novice type of question, but, I'm trying to understand the subject in detail, before I start generating vast numbers of incomprehensible error messages.
In allocating memory dynamically in an application either globally or in a class-specific scope, how does a person know what is actually happening in the "pool called the free store"? Are there ways to monitor this without writing a "custom exception-handling routine" (which in my case, would undoubtedly generate many more error messages)?
...And, (ha ha) I have absolutely NO IDEA what a custom exception-handling routine is, much less, how to approach the problem.
I have been doing some preliminary reading over at the MSDN site, where they have an overwhelming amount of technical information. In the C++ Language Reference, they tell us that: "when new is used to allocate memory for a C++ class object, the object's constructor is called after the memory is allocated". They also tell us that "the new keyword allocates memory for an object or array of objects of type-name from the free store and returns a suitably typed, nonzero pointer to the object". They then show a couple of code examples, but, I don't see how the pointer can be used to demonstrate either the amount of memory used in that particular expression, or if this feature can be utilized to detect that evil scourge 'memory leakage'.
Any enlightenment is appreciated. ...And, humor, even malicious humor (if necessary) will be thoroughly enjoyed.
Trash me,...
GeneralRe: C++ Memory Allocation and Memory Leakage Pin
Christian Graus22-Oct-02 13:30
protectorChristian Graus22-Oct-02 13:30 
GeneralRe: C++ Memory Allocation and Memory Leakage Pin
Paul Oss22-Oct-02 13:38
Paul Oss22-Oct-02 13:38 
GeneralRe: C++ Memory Allocation and Memory Leakage Pin
Paul M Watt22-Oct-02 13:45
mentorPaul M Watt22-Oct-02 13:45 
GeneralRe: C++ Memory Allocation and Memory Leakage Pin
Christian Graus22-Oct-02 15:35
protectorChristian Graus22-Oct-02 15:35 
GeneralRe: C++ Memory Allocation and Memory Leakage Pin
ursus zeta23-Oct-02 9:47
ursus zeta23-Oct-02 9:47 
QuestionTracking ToolTips in a CControlBar? Pin
Jim A. Johnson22-Oct-02 12:58
Jim A. Johnson22-Oct-02 12:58 
AnswerRe: Tracking ToolTips in a CControlBar? Pin
Maximilien22-Oct-02 15:13
Maximilien22-Oct-02 15:13 
GeneralViews Pin
Anonymous22-Oct-02 12:56
Anonymous22-Oct-02 12:56 
GeneralRe: Views Pin
Ben Burnett22-Oct-02 14:13
Ben Burnett22-Oct-02 14:13 
GeneralHide the Windows Clock Pin
alpha+22-Oct-02 12:52
alpha+22-Oct-02 12:52 
GeneralDialogBox Pin
G. White22-Oct-02 12:37
G. White22-Oct-02 12:37 
GeneralRe: DialogBox Pin
Paul M Watt22-Oct-02 12:46
mentorPaul M Watt22-Oct-02 12:46 
GeneralRe: DialogBox Pin
Christian Graus22-Oct-02 13:19
protectorChristian Graus22-Oct-02 13:19 
QuestionTerminating window-less process? Pin
Abin22-Oct-02 12:29
Abin22-Oct-02 12:29 
AnswerRe: Terminating window-less process? Pin
Hans Ruck22-Oct-02 23:41
Hans Ruck22-Oct-02 23:41 
Generaloverloaded operator new and STL vector Pin
Nemanja Trifunovic22-Oct-02 12:30
Nemanja Trifunovic22-Oct-02 12:30 
GeneralRe: overloaded operator new and STL vector Pin
Christian Graus22-Oct-02 13:34
protectorChristian Graus22-Oct-02 13:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.