Click here to Skip to main content
15,915,719 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Strange problem with _CrtIsValidHeapPointer Pin
Viorel.19-Jun-06 1:23
Viorel.19-Jun-06 1:23 
AnswerRe: Strange problem with _CrtIsValidHeapPointer Pin
Mathias S.19-Jun-06 1:37
Mathias S.19-Jun-06 1:37 
AnswerRe: Strange problem with _CrtIsValidHeapPointer Pin
NiceNaidu19-Jun-06 1:25
NiceNaidu19-Jun-06 1:25 
GeneralRe: Strange problem with _CrtIsValidHeapPointer Pin
Mathias S.19-Jun-06 1:42
Mathias S.19-Jun-06 1:42 
AnswerRe: Strange problem with _CrtIsValidHeapPointer Pin
Laxman Auti19-Jun-06 1:39
Laxman Auti19-Jun-06 1:39 
GeneralRe: Strange problem with _CrtIsValidHeapPointer Pin
Mathias S.19-Jun-06 1:50
Mathias S.19-Jun-06 1:50 
AnswerRe: Strange problem with _CrtIsValidHeapPointer Pin
James R. Twine19-Jun-06 8:29
James R. Twine19-Jun-06 8:29 
GeneralRe: Strange problem with _CrtIsValidHeapPointer Pin
Mathias S.20-Jun-06 3:58
Mathias S.20-Jun-06 3:58 
No! no overloading of new/delete.

But I must have had som other error that is fixed now, that overwrote the memory or something. because delete[] work now.

But _CrtIsValidPointer still does not work when checking a pointer of an array of objects with a destructors. Because of a bug in CrtIsValidHeapPointer.
but as a workaround I can use

_CrtIsValidHeapPointer( ((LPCBYTE)p)-4 );

- Mathias


Questionhow can i pass string in BREW throuch C++. Pin
nitinjdalal19-Jun-06 0:48
nitinjdalal19-Jun-06 0:48 
AnswerRe: how can i pass string in BREW throuch C++. Pin
NiceNaidu19-Jun-06 1:09
NiceNaidu19-Jun-06 1:09 
GeneralRe: how can i pass string in BREW throuch C++. Pin
nitinjdalal19-Jun-06 1:47
nitinjdalal19-Jun-06 1:47 
GeneralRe: how can i pass string in BREW throuch C++. Pin
ThatsAlok19-Jun-06 2:02
ThatsAlok19-Jun-06 2:02 
QuestionHow we can select numbors in Random way Pin
johnalek19-Jun-06 0:45
johnalek19-Jun-06 0:45 
AnswerRe: How we can select numbors in Random way Pin
_AnsHUMAN_ 19-Jun-06 0:49
_AnsHUMAN_ 19-Jun-06 0:49 
AnswerRe: How we can select numbors in Random way Pin
Laxman Auti19-Jun-06 0:56
Laxman Auti19-Jun-06 0:56 
Questioncolor Pin
yogendra kaushik19-Jun-06 0:06
yogendra kaushik19-Jun-06 0:06 
AnswerRe: color [modified] Pin
Naveen19-Jun-06 0:11
Naveen19-Jun-06 0:11 
AnswerRe: color [modified] Pin
Hamid_RT19-Jun-06 0:20
Hamid_RT19-Jun-06 0:20 
AnswerRe: color Pin
_AnsHUMAN_ 19-Jun-06 0:21
_AnsHUMAN_ 19-Jun-06 0:21 
GeneralRe: color Pin
yogendra kaushik19-Jun-06 0:43
yogendra kaushik19-Jun-06 0:43 
GeneralRe: color Pin
_AnsHUMAN_ 19-Jun-06 0:53
_AnsHUMAN_ 19-Jun-06 0:53 
AnswerRe: color Pin
Laxman Auti19-Jun-06 1:01
Laxman Auti19-Jun-06 1:01 
GeneralRe: color Pin
Naveen19-Jun-06 1:25
Naveen19-Jun-06 1:25 
GeneralRe: color Pin
Hamid_RT19-Jun-06 1:12
Hamid_RT19-Jun-06 1:12 
AnswerRe: color Pin
Laxman Auti19-Jun-06 0:21
Laxman Auti19-Jun-06 0:21 

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.