WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: 1topgun on June 15, 2015, 04:48:17 PM

Title: Postie Extender: Extender DLL is invalid
Post by: 1topgun on June 15, 2015, 04:48:17 PM
I'm getting the following error message when I include

AddExtender("wwpst44i.dll")

Using Winbat: 2015A licensed

Postie download: Ver 44049, January 21, 2015

I've re-downloaded file & re-installed it, no change. Also ran vcheck, shows correct versions

Any ideas on what may be causing the DLL problem?
Title: Re: Postie Extender: Extender DLL is invalid
Post by: td on June 15, 2015, 05:24:51 PM
The only time WinBatch will generate that exact error is when it receives Windows system error 'ERROR_BAD_EXE_FORMAT'.  That error means your dll is corrupt and no, the extender on the download server is not corrupt.
Title: Re: Postie Extender: Extender DLL is invalid
Post by: 1topgun on June 15, 2015, 07:03:43 PM
Resolution was to run in 32 bit mode, 64 bit mode was source of error
Title: Re: Postie Extender: Extender DLL is invalid
Post by: td on June 16, 2015, 06:43:54 AM
The Postie extender does not have a 64-bit version because it relies in part on 3rd party source code that is not ported to 64-bit and a 64-bit process cannot load a 32-bit DLL.   All extenders that have been ported to 64-bit install both a 32-bit and 64-bit DLL on 64-bit systems.   64-bit DLLs have '64' in the file name and are placed in the WinBatch 64-bit 'system' directory.  You can place both the 32-bit and 64-bit extender names in a single call to the  'AddExtender' function and the function will select the correct version for you.  See the functions documentation in the Consolidated WIL Help file for details.