string & on a DLL boundary



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.


.



Relevant Pages

  • Re: string & on a DLL boundary
    ... string is assigned to in the DLL and the calling .EXE frees the string. ... Both modules use the same calling convention. ...
    (microsoft.public.vc.stl)
  • Re: string & on a DLL boundary
    ... string is assigned to in the DLL and the calling .EXE frees the string. ... Both modules use the same calling convention. ...
    (microsoft.public.vc.stl)
  • Re: Getting Start/End time, etc. from IPM.Schedule.Meeting.Resp.Po
    ... So, if I understand you correctly, I can get at these named properties by ... both marked with the same string. ... to GetIDsFromNames and "or" the returned tag with teh appropriate type (e.g. ... then iterating over the list and calling ...
    (microsoft.public.win32.programmer.messaging)
  • Re: IsFile, isURL
    ... | arguments rather than simply calling Environment.GetCommandLineArgs, ... Public Sub Mainas String) ... I was using the Windows API as the original poster stated "launch links if ... |> || Public Shared Function ParseCommandLine(ByVal commandLine As ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Why db.OpenRecordset("SQL STRING HERE", dbOpenDynaset) is not working ?
    ... Dim r As Recordset ... I generally pass calling ... Function AllCarsNbatchReady4906(CallingProcedure As String) As Boolean ... name in the error message box if the procedure err's at runtime. ...
    (comp.databases.ms-access)

Loading