Click here to Skip to main content
15,914,416 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Convert DWORD_PTR back to my object Pin
David Crow13-Sep-07 17:24
David Crow13-Sep-07 17:24 
AnswerRe: Convert DWORD_PTR back to my object Pin
carrivick13-Sep-07 19:29
carrivick13-Sep-07 19:29 
GeneralRe: Convert DWORD_PTR back to my object Pin
Michael Dunn13-Sep-07 22:13
sitebuilderMichael Dunn13-Sep-07 22:13 
AnswerRe: Convert DWORD_PTR back to my object Pin
paresh_joe13-Sep-07 19:41
paresh_joe13-Sep-07 19:41 
QuestionWindows XP Memory allocation questions Pin
Budric B.13-Sep-07 5:34
Budric B.13-Sep-07 5:34 
AnswerRe: Windows XP Memory allocation questions Pin
Mark Salsbery13-Sep-07 6:01
Mark Salsbery13-Sep-07 6:01 
AnswerRe: Windows XP Memory allocation questions Pin
Waldermort13-Sep-07 6:16
Waldermort13-Sep-07 6:16 
AnswerRe: Windows XP Memory allocation questions Pin
Nemanja Trifunovic13-Sep-07 6:34
Nemanja Trifunovic13-Sep-07 6:34 
Budric B. wrote:
1. To my surprise new operator does not return NULL on error. It seems to throw an exception. When did this happen? What's the exception object? I'm using VS 8.


That's the way it is supposed to work - it throws bad_alloc. If you want to get a NULL instead, use nothrow[^]

Budric B. wrote:
2. Is new a thread safe operator? What if I'm using some libraries that most likely use malloc. Is memory allocation still thread safe? I'm using dynamic link run time for my program and hopefully all the libraries. If some library is using a different run-time but I don't free its memory is that fine?


Yes. Yes. Yes.

Budric B. wrote:
3. What is the memory allocation limit for a process in Windows XP? Is it 2 GB? Or RAM + swap space?


In practice, less then 2GB[^] (BTW, who would vote down that text and why Confused | :confused: )


Budric B. wrote:
4. Any free GUI profilers out there?


Try GlowCode.


GeneralRe: Windows XP Memory allocation questions Pin
Budric B.13-Sep-07 7:41
Budric B.13-Sep-07 7:41 
QuestionDatabase Embedding Pin
perrin486913-Sep-07 5:12
perrin486913-Sep-07 5:12 
QuestionRe: Database Embedding Pin
Maximilien13-Sep-07 5:47
Maximilien13-Sep-07 5:47 
AnswerRe: Database Embedding Pin
perrin486913-Sep-07 7:02
perrin486913-Sep-07 7:02 
GeneralRe: Database Embedding [modified] Pin
Nemanja Trifunovic13-Sep-07 7:32
Nemanja Trifunovic13-Sep-07 7:32 
GeneralRe: Database Embedding Pin
perrin486913-Sep-07 8:41
perrin486913-Sep-07 8:41 
Questionget console cursot position Pin
baerten13-Sep-07 4:55
baerten13-Sep-07 4:55 
AnswerRe: get console cursot position Pin
jeron113-Sep-07 5:20
jeron113-Sep-07 5:20 
JokeRe: get console cursot position Pin
baerten13-Sep-07 21:14
baerten13-Sep-07 21:14 
GeneralRe: get console cursot position Pin
jeron114-Sep-07 4:21
jeron114-Sep-07 4:21 
Questionhide/disable MyComputer/drives Pin
H.R13-Sep-07 4:20
H.R13-Sep-07 4:20 
AnswerRe: hide/disable MyComputer/drives Pin
Abdellatif_El_Khlifi23-Sep-07 13:28
Abdellatif_El_Khlifi23-Sep-07 13:28 
QuestionGet file list on a folder Pin
est_dy13-Sep-07 3:33
est_dy13-Sep-07 3:33 
AnswerRe: Get file list on a folder Pin
David Crow13-Sep-07 3:37
David Crow13-Sep-07 3:37 
AnswerRe: Get file list on a folder Pin
nbugalia13-Sep-07 4:10
nbugalia13-Sep-07 4:10 
AnswerRe: Get file list on a folder Pin
Hamid_RT13-Sep-07 6:22
Hamid_RT13-Sep-07 6:22 
QuestionVB DLL to be used in VC++ ??? Pin
Nelek13-Sep-07 3:32
protectorNelek13-Sep-07 3:32 

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.