Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Solution for Dll FreeLibrary AV error



Permlink Replies: 2 - Last Post: May 18, 2016 12:34 AM Last Post By: Rudy Velthuis (...
Bear Xu

Posts: 10
Registered: 5/22/06
Solution for Dll FreeLibrary AV error
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 15, 2016 2:18 AM
Solution for Dll FreeLibrary AV error:
1. use SimpleShareMem in DLL project as first unit
2. use SimpleShareMem in HOST Application Project as first unit

then the AV error of FreeLibrary will gone
Olivier Sannier

Posts: 424
Registered: 8/26/01
Re: Solution for Dll FreeLibrary AV error
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 17, 2016 12:35 AM   in response to: Bear Xu in response to: Bear Xu
Bear Xu wrote:
Solution for Dll FreeLibrary AV error:
1. use SimpleShareMem in DLL project as first unit
2. use SimpleShareMem in HOST Application Project as first unit

then the AV error of FreeLibrary will gone

Or don't pass in strings as parameters, always use PChar
Rudy Velthuis (...


Posts: 7,731
Registered: 9/22/99
Re: Solution for Dll FreeLibrary AV error
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 18, 2016 12:34 AM   in response to: Olivier Sannier in response to: Olivier Sannier
Olivier Sannier wrote:

Bear Xu wrote:
Solution for Dll FreeLibrary AV error:
1. use SimpleShareMem in DLL project as first unit
2. use SimpleShareMem in HOST Application Project as first unit

then the AV error of FreeLibrary will gone

Or don't pass in strings as parameters, always use PChar

The much better alternative, IMO, if the DLL may one day be used by
other programs as well. I personally would never use a Delphi-specific
interface when I write a DLL, not even if it is designed to be used by
Delphi.

--
Rudy Velthuis http://www.rvelthuis.de

"Laws are silent in time of war."
-- Cicero
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02