Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Memory Access in DLL arnd String Rtn Funcs

Status
Not open for further replies.

ahhchu

Programmer
Sep 19, 2001
38
US
I notice that when I call a DLL in a function that rtns a string in FORMSHOW of a form I get memory reference errors. Has anyone seen this b4 ? any clues ?

Thanks
 
Howdy,

Did you write the DLL yourself ? If so, Delphi needs 'ShareMem' as the first unit in both your library and project's uses list if you return strings from functions in your DLL. When you create a new DLL project, Delphi actually includes a warning about this in the project. Hope this helps.

WB
 
thanks for that note. I will chk and am pretty sure youa re right.... apprciate it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top