operator new[] fails in DLL when being called from within VB6 process
- From: Jo Siffert <jo.siffert@xxxxxxx>
- Date: Fri, 21 Oct 2005 19:36:24 +0200
Hi,
I have written a DLL in C/C++ which is used by a VB6 program. Everything works fine unless the DLL uses the operator new[] - e.g.
m_pBuffer = new CHAR[ dwApproxPayloadLen ];
then an Access Violation Exception is thrown within ntdll!_RtlAllocHeap.
Calling CFoo *f = new Cfoo() works just fine - only arrays will not work.
The same code works just fine when being called from a C/C++ program.
Is there something special about calling CRT functions when my lib is loaded into a VB6 process? Maybe VB6 does not initialize the CRT as it does not use it or something like that?
Thanks in advance, Jo .
- Follow-Ups:
- Re: operator new[] fails in DLL when being called from within VB6 process
- From: Hector Santos
- Re: operator new[] fails in DLL when being called from within VB6 process
- Prev by Date: Re: Service / Access Rights
- Next by Date: Re: operator new[] fails in DLL when being called from within VB6 process
- Previous by thread: Re: Service / Access Rights
- Next by thread: Re: operator new[] fails in DLL when being called from within VB6 process
- Index(es):
Relevant Pages
|