Who and when is allocation and deallocating the memory used for/by the
PChar's??
If the memory had been free'd and reused, then the PChar could just be
pointing to junk.
> -----Original Message-----
> From: Lukas Svoboda [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, 7 March 2000 12:12
> To: Multiple recipients of list delphi
> Subject: RE: [DUG]: DLL s
>
>
> > > We are using Dlls from a single threaded app. When we call a
> > function in
> > > the DLL that returns a pChar some times this returns corrupted (other
> > > characters floating in it). This generally stuffs up our software.
> > > Is this a known problem, what are the solutions?
> >
> > I assume that ShareMem is the first item in the uses clause of
> > both the DLL
> > and the Application... There are string and Dynamic array issues
> otherwise
> > and I'm not sure of the symptoms...
>
> He should only need that if he is using Strings instead of PChars.
>
> Cheers,
> Lukas
>
> --------------------------------------------------------------------------
> -
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz