15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


RtlValidateHeap error

Charlie Jursch -- cjursch@pacbell.net
Thursday, January 23, 1997

Environment: VC++ 4.2b, NT4.0

I recently upgraded to 4.2b and I have one application that is now getting
the following error which I did not get under 4.1:

HEAP (SCMT.exe): Invalid Address specified to RtlValidateHeap (12c0000,6360b8)

The error is occurring in the CWinApp destructor at line 610
   free ((void*))m_pszAppName;

Any ideas on what might cause this or where I should start to look?

Thanks,

Charlie
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Charlie Jursch              "Be kind to your web-footed
Patotech Software, Inc.      friends for a duck may be
1-800-PATOTECH               somebody's mother."
mailto:cjursch@pacbell.net    
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



Mario Contestabile -- Mario_Contestabile.UOS__MTL@UOSMTL2.universal.com
Monday, January 27, 1997

[Mini-digest: 2 responses]

>I recently upgraded to 4.2b and I have one application that is now getting
>the following error which I did not get under 4.1:
>
>HEAP (SCMT.exe): Invalid Address specified to RtlValidateHeap (12c0000,6360b8)
>
>The error is occurring in the CWinApp destructor at line 610
>   free ((void*))m_pszAppName;
>
>Any ideas on what might cause this or where I should start to look?

Did you use m_pszAppName anywhere in your app?
If so, perhaps using strdup() would resolve this error.

mcontest@universal.com


-----From: "Kenneth A. Argo" 

This is an easy one.  I'll bet that you are setting the application name =
by setting the value of m_pszAppName.

If this is the case the new CWinApp ctor which now takes a name will =
correct the problem.  Basically the way the strings in CWinApp have =
changed, what you are getting is a failure during the call to free in =
the dtor.  If you are not changing this value then I suspect that you =
are changing one of the strings in CWinAPP.

Ken



----------
From:  Charlie Jursch[SMTP:cjursch@pacbell.net]
Sent:  Thursday, January 23, 1997 6:41 PM
To:  mfc-l@netcom.com
Subject:  RtlValidateHeap error

Environment: VC++ 4.2b, NT4.0

I recently upgraded to 4.2b and I have one application that is now =
getting
the following error which I did not get under 4.1:

HEAP (SCMT.exe): Invalid Address specified to RtlValidateHeap =
(12c0000,6360b8)

The error is occurring in the CWinApp destructor at line 610
   free ((void*))m_pszAppName;

Any ideas on what might cause this or where I should start to look?

Thanks,

Charlie
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Charlie Jursch              "Be kind to your web-footed
Patotech Software, Inc.      friends for a duck may be
1-800-PATOTECH               somebody's mother."
mailto:cjursch@pacbell.net   =20
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%





| Вернуться в корень Архива |