string & on a DLL boundary
- From: "Andrew Chalk" <achalk@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 28 Mar 2007 16:43:33 -0500
An exported function in my VC++ v7.1 passes a std::string & parameter. The
string is assigned to in the DLL and the calling .EXE frees the string. The
programs GPFs in the RtlHeap.. functions.
Both modules use the same calling convention. Both use the multithreaded
static runtime. Presumably the latter is my error. Since each library is
bound into its module they each have separate heaps. One allocates memory
and the other tries to free the memory. Is this logic correct? Anyone else
made this error?
Thanks.
.
- Follow-Ups:
- Re: string & on a DLL boundary
- From: Stephen Howe
- Re: string & on a DLL boundary
- From: David Lowndes
- Re: string & on a DLL boundary
- Prev by Date: Re: help
- Next by Date: Re: string & on a DLL boundary
- Previous by thread: Last valid element in a vector
- Next by thread: Re: string & on a DLL boundary
- Index(es):
Relevant Pages
|
Loading