[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: _CrtIsValidHeapPointer Problem
- From: "jason zhang" <jzhang@...>
- Date: Mon, 21 Aug 2006 09:40:51 +0800
I also tried your advice. The result is the same.
Anyway, Thank you very much;)
----- Original Message -----
From: "Jerome Vuarand" <jerome.vuarand@ubisoft.com>
To: "Lua list" <lua@bazar2.conectiva.com.br>
Sent: Friday, August 18, 2006 10:19 PM
Subject: RE: _CrtIsValidHeapPointer Problem
> I have used the multithreaded DLL for the DLL and multithreaded for the
> interpreter, but the error is still there.
You should use "Multithreaded DLL" for the DLL, but also "Multithreaded DLL" for the interpreter. The "DLL" word here don't represent the type of project, but the place where the CRT is (either in msvcrt.lib or in msvcrt.dll). All dlls *AND* the exe loading them must use the same version of the msvcrt.
And to explain the difference when you insert at table index 0, it's probably because _CrtIsValidHeapPointer is not a 100% sure detection method and the difference in memory allocations hides the memory corruption problem.
-----Message d'origine-----
De : lua-bounces@bazar2.conectiva.com.br [mailto:lua-bounces@bazar2.conectiva.com.br] De la part de jason zhang
Envoyé : 16 août 2006 23:44
À : Lua list
Objet : Re: _CrtIsValidHeapPointer Problem
I have used the multithreaded DLL for the DLL and multithreaded for the interpreter, but the error is still there.
ps. The static lua library is linked into the extension DLL, is that incorrect?
what's more, why it works well when I insert a element with index zero?
Thank you.
Regards,
Jason
----- Original Message -----
From: "D Burgess" <dburgess@gmail.com>
To: "Lua list" <lua@bazar2.conectiva.com.br>
Sent: Thursday, August 17, 2006 11:31 AM
Subject: Re: _CrtIsValidHeapPointer Problem
> You should use multithreaded DLL. (/MD)You cannot have a static
> Lua Library and an extension DLL
>
> David B
>
> jason zhang wrote:
>> 2. Different Crt library
>> I double checked this. The crt of Lua Interpreter, Lua static Library and the extension DLL are
>> the same. In VC6.0, I set all of them to Debug Single-Threaded. Should I use mutli-Threaded Crt?
>