Reply to Thread

Post a reply to the thread: Dynamic DLL load error

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?

 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 06-19-2020, 04:42 PM
    MarkRiffey

    Re: Dynamic DLL load error

    Friedrich,

    I had a feeling that's what was going on. Not the first time, wont be the last

    Mark
  • 06-19-2020, 10:58 AM
    linder

    Re: Dynamic DLL load error

    Hi Mark,

    the installer has to use LoadLibrary Windows API when you call your DLL from within the installer. And this call fails.

    Before the installer can call a function from within your DLL, it has to load it using the LoadLibrary Windows API. The installer is not even processing your DLL at this stage. It just uses the Windows API to load your library.

    Friedrich
  • 06-18-2020, 02:23 PM
    MarkRiffey

    Re: Dynamic DLL load error

    Friedrich,

    Checked the source, it doesn't call LoadLibrary directly. I suppose it's possible that one of these does, however. You might recognize a few of them

    Mark

    MODULE('CLARUN.LIB')
    CRC32(*STRING buffer,ULONG buffersize,ULONG seed),ULONG,RAW,NAME('Cla$crc32')
    END

    MODULE('win32.lib')
    OutputDebugString(*CString),raw,pascal,name('Outpu tDebugStringA')
    END

    MODULE( 'LSMEMORY.LIB' )
    LS_INIT( ULONG, ULONG ),LONG,RAW,PASCAL
    LS_KILL(),RAW,PASCAL
    LS_MEMCOMPRESS( *CSTRING, *CSTRING, *CSTRING ),LONG,RAW,PASCAL
    LS_MEMDECOMPRESS( *CSTRING, *CSTRING, *CSTRING ),LONG,RAW,PASCAL
    LS_ORIGINALSIZE(),LONG,RAW,PASCAL
    LS_COMPRESSEDSIZE(),LONG,RAW,PASCAL
    END
  • 06-18-2020, 02:14 PM
    MarkRiffey

    Re: Dynamic DLL load error

    Quote Originally Posted by linder View Post
    this error code comes directly from the LoadLibrary Windows API call. It is GetLastError() 87:

    ERROR_INVALID_PARAMETER 87 (0x57) - The parameter is incorrect.
    Friedrich,

    I dont think we use that in our DLL, but I'll check.

    Mark
  • 06-11-2020, 02:55 AM
    linder

    Re: Dynamic DLL load error

    Hi Mark,

    this error code comes directly from the LoadLibrary Windows API call. It is GetLastError() 87:

    ERROR_INVALID_PARAMETER 87 (0x57) - The parameter is incorrect.

    Friedrich
  • 06-09-2020, 09:26 AM
    MarkRiffey

    Re: Dynamic DLL load error

    Friedrich,

    It looks like this:

    There was a fatal error when trying to launch the Product Control Code
    entry subsystem. This installation program must halt.

    The module "GetPCC" returned errorcode : %_SB_ERRORCODE%

    Please advise ENERCALC that this problem happened and provide
    the errocode given above.

    Send information to support@enercalc.com

    See image below.

    Mark

    Attachment 4997
  • 06-09-2020, 01:42 AM
    linder

    Re: Dynamic DLL load error

    Hi Mark,

    this seems to be a custom message box. What command did you use to catch the "error code"?

    The "Load DLL..." script function only returns the following:

    If the function succeeds, the %_SB_ERRORCODE% return value is nonzero.
    If the function fails, the return value is zero.


    The %_SB_ERRORCODE% value is retrieved from the LoadLibrary Windows API.

    Friedrich
  • 06-08-2020, 03:06 PM
    MarkRiffey

    Dynamic DLL load error

    Friedrich,

    I dont see this error number in the documentation. Any idea what this means? GetPCC.dll is a Clarion dll that the installer calls.

    Mark

    Attachment 4996

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •