Hi all,
I have a DLL that I need to call from my IA script. However, rather than simply calling a function, it must be loaded, and remain in memory for the duration of the script (or I explicitly free it.)
It appears that the CALL DLL function, loads the DLL, calls the desired function in the DLL, then unloads the DLL. How can I keep the DLL in memory until I free it (or the script terminates.)
Thanks,
-Ed Lecuyer
Loading a DLL
-
- Site Admin
- Posts: 364
- Joined: Mon Jul 30, 2007 11:51 am
- Location: USA
- Contact:
read the following topics in the help file, and decide which is the one you need:
Register Library and
Install Assembly
Register Library and
Install Assembly
Alejandro Ronquillo
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Neither applies to this case.
"Register Library" is for registering/unregistering a self-registering DLL upon installation. This DLL is not being installed, I just need to run it for the duration of the script. I tried Register Library anyway, and I got the same result as if it wasn't done (IA7 - and my DLL - crashes because IA is trying to close an active DLL.)
"Install Assembly" installs and registers a .NET assembly. This is not a .NET assembly that needs to be installed/registered. It is a standard DLL that needs to remain open for the duration of the script. For fun, I tried Install Assembly anyway - and again IA7 crashed string to close my dll.
Is there another solution or am I SOL?
I have attached the DLL for reference. Call is:
~InstallAware Clipboard Data~
~Call DLL Function~
~{295DF8C3-A8F1-45F9-B004-992AD872990C}~
~$SUPPORTDIR$\\AutoRunOff.dll,MTA_AutoplayStart,void,,$~
~mIDEFunc.dll\\mEXEFunc.dll~
File Attached:
AutoRunOff.dll
"Register Library" is for registering/unregistering a self-registering DLL upon installation. This DLL is not being installed, I just need to run it for the duration of the script. I tried Register Library anyway, and I got the same result as if it wasn't done (IA7 - and my DLL - crashes because IA is trying to close an active DLL.)
"Install Assembly" installs and registers a .NET assembly. This is not a .NET assembly that needs to be installed/registered. It is a standard DLL that needs to remain open for the duration of the script. For fun, I tried Install Assembly anyway - and again IA7 crashed string to close my dll.
Is there another solution or am I SOL?
I have attached the DLL for reference. Call is:
~InstallAware Clipboard Data~
~Call DLL Function~
~{295DF8C3-A8F1-45F9-B004-992AD872990C}~
~$SUPPORTDIR$\\AutoRunOff.dll,MTA_AutoplayStart,void,,$~
~mIDEFunc.dll\\mEXEFunc.dll~
File Attached:
AutoRunOff.dll
-
- Posts: 3
- Joined: Thu Jul 26, 2018 1:32 am
Re: Loading a DLL
I see this is a quite old topic and wonder if some changes in IA happened in the meantime.
I wish to call functions from the SoftMeter DLL ( https://www.starmessagesoftware.com/softmeter )
I wish to call functions from the SoftMeter DLL ( https://www.starmessagesoftware.com/softmeter )
Who is online
Users browsing this forum: No registered users and 51 guests