PDA

View Full Version : Call dll



NewsArchive
06-07-2010, 01:53 AM
Hi Friedrich,

I'm using CallDLL to call a dll. Works fine, but if I call it multiple
times it crashes the installer and it just disappears. I'm passing a single
*CString into it. I'm _not_ calling the LoadDLL, just calling the "Call
DLL" repeatedly. In this particular install I can work around this with
just one call, but I have others where I need to do at least two calls. Any
ideas what to look for?

Best regards,

--
Arnór Baldvinsson - Icetips Alta LLC
Port Angeles, Washington
www.icetips.com - www.buildautomator.com - www.altawebworks.com

Icetips product subscriptions at http://www.icetips.com/subscribe.php

NewsArchive
06-07-2010, 01:54 AM
Hi Friedrich,

> I'm using CallDLL to call a dll. Works fine, but if I call it multiple
> times it crashes the installer and it just disappears. I'm passing a single
> *CString into it. I'm _not_ calling the LoadDLL, just calling the "Call
> DLL" repeatedly. In this particular install I can work around this with
> just one call, but I have others where I need to do at least two calls. Any
> ideas what to look for?

Using the LoadDLL/FreeDLL and use the dll handle instead of the dll name
solved it - also found a string variable that wasn't disposed of in my (dll)
code which probably didn't help<g> I had an install that has multiple
tempaltes that I needed to do a search/replace in and it was crashing the
installer every time as it hit the dll. All better now:)

Best regards,

--
Arnór Baldvinsson - Icetips Alta LLC
Port Angeles, Washington
www.icetips.com - www.buildautomator.com - www.altawebworks.com

Icetips product subscriptions at http://www.icetips.com/subscribe.php

NewsArchive
06-07-2010, 01:54 AM
Hi Arnór,

> Using the LoadDLL/FreeDLL and use the dll handle instead of the dll name
> solved it - also found a string variable that wasn't disposed of in my
> (dll) code which probably didn't help<g> I had an install that has
> multiple tempaltes that I needed to do a search/replace in and it was
> crashing the installer every time as it hit the dll. All better now:)

Cool :) Thanks for the update!

Friedrich