However the same Delphi DLL when built as Win64 does not work.
Here is a sample bug report, showing ONLY A SINGLE LEVEL on the exception stack trace for the thread. Note that if I use a standalone executable server, with the same 64 bit code, madexcept works FINE. The problems occur ONLY when using an ISAPI DLL, and ONLY when it's a 64 bit ISAPI DLL.
The stack trace is ONLY ONE LINE, there is no "stack traceback" occuring. This exact same code generates a 15 or 16 level stack traceback on Win32 ISAPI dlls, and also works fine with the same code in a 64 bit executable. ONLY problem is on 64 bit ISAPI.DLL when run INSIDE IIS's worker process.
Code: Select all
date/time : 2014-06-05, 16:37:50, 192ms
computer name : WPOSTMA
user name : IUSR
registered owner : Ramsoft
operating system : Windows NT New x64 build 9600
system language : English
system up time : 9 days 4 hours
program up time : 2 minutes 2 seconds
processors : 12x Intel(R) Xeon(R) CPU W3670 @ 3.20GHz
physical memory : 2564/12286 MB (free/total)
free disk space : (C:) 11.78 GB
display mode : 1024x768, 32 bit
process id : $29fc
allocated memory : 111.47 MB
largest free block : 130731.98 GB
command line : c:\windows\system32\inetsrv\w3wp.exe -ap "DefaultAppPool" -v "v4.0" -l "webengine4.dll" -a \\.\pipe\iisipm0461e28e-f61c-4fa9-8acf-39da29c2501f -h "C:\inetpub\temp\apppools\DefaultAppPool\DefaultAppPool.config" -w "" -m 0 -t 20 -ta 0
executable : w3wp.exe
current module : prisapi.dll
module date/time : 2014-06-05 16:32
version : 6.0.0.428
compiled with : Delphi XE5
madExcept version : 4.0.10
callstack crc : $823c930d, $823c930d, $823c930d
exception number : 1
exception class : EServerDummyException
exception message : Exception Within a RemObjects Method #1- This is a sample exception.
thread $1e48:
0194972b +7b prisapi.dll ServerInfoService_Impl 75 +2 TServerInfoService.GenerateServerException
main thread ($2710):
>> stack not accessible
thread $2c8c:
>> stack not accessible
thread $2a00:
>> stack not accessible
.... (About 100 more thread $##### ...... >> stack not accessible repetitions removed. )