StackOverflowException happens on every pdf I tried to open, not specific one.
I tried with 'coverPage.Read(fn, settings);'. It was same.
The debug log is:
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.016 0.016u 6.8.8 Policy Magick[6964]: policy.c/IsRightsAuthorized/485/Policy
Domain: Path; rights=Read; pattern="C:\Temp\09004006-00.PDF" ...
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.078 0.016u 6.8.8 Blob Magick[6964]: blob.c/OpenBlob/2535/Blob
destroy
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Configure Magick[6964]: configure.c/GetConfigureOptions/589/Configure
Searching for configure file: "magic.xml"
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Configure Magick[6964]: configure.c/GetConfigureOptions/589/Configure
Searching for configure file: "C:\Users\Sally.magick\magic.xml"
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Configure Magick[6964]: magic.c/LoadMagicList/682/Configure
Loading magic configure file "magic.xml" ...
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Policy Magick[6964]: policy.c/IsRightsAuthorized/485/Policy
Domain: Coder; rights=Read; pattern="PDF" ...
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Policy Magick[6964]: policy.c/IsRightsAuthorized/485/Policy
Domain: Path; rights=Read; pattern="C:\Temp\09004006-00.PDF" ...
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Blob Magick[6964]: blob.c/OpenBlob/2535/Blob
destroy
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Policy Magick[6964]: policy.c/IsRightsAuthorized/485/Policy
Domain: Path; rights=Read; pattern="C:\Temp\09004006-00.PDF" ...
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Blob Magick[6964]: blob.c/OpenBlob/2535/Blob
Searching for configure file: "delegates.xml"
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.109 0.047u 6.8.8 Configure Magick[6964]: configure.c/GetConfigureOptions/589/Configure
Searching for configure file: "C:\Users\Sally.magick\delegates.xml"
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.109 0.047u 6.8.8 Configure Magick[6964]: delegate.c/LoadDelegateList/1228/Configure
Loading delegate configuration file "delegates.xml" ...
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.109 0.047u 6.8.8 Configure Magick[6964]: nt-base.c/NTLocateGhostscript/1035/Configure
Ghostscript (GPL Ghostscript) version 8.15
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.109 0.047u 6.8.8 Configure Magick[6964]: nt-base.c/NTGhostscriptGetString/1101/Configure
registry: "HKEY_LOCAL_MACHINE\SOFTWARE\GPL Ghostscript\8.15\GS_DLL"="C:\Program Files (x86)\GPLGS\gsdll32.dll"
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.109 0.047u 6.8.8 Configure Magick[6964]: nt-base.c/NTGhostscriptGetString/1101/Configure
registry: "HKEY_LOCAL_MACHINE\SOFTWARE\GPL Ghostscript\8.15\GS_DLL"="C:\Program Files (x86)\GPLGS\gsdll32.dll"
I tried with 'coverPage.Read(fn, settings);'. It was same.
The debug log is:
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.016 0.016u 6.8.8 Policy Magick[6964]: policy.c/IsRightsAuthorized/485/Policy
Domain: Path; rights=Read; pattern="C:\Temp\09004006-00.PDF" ...
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.078 0.016u 6.8.8 Blob Magick[6964]: blob.c/OpenBlob/2535/Blob
read 3 magic header bytes
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Cache Magick[6964]: cache.c/DestroyPixelCache/960/Cachedestroy
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Configure Magick[6964]: configure.c/GetConfigureOptions/589/Configure
Searching for configure file: "magic.xml"
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Configure Magick[6964]: configure.c/GetConfigureOptions/589/Configure
Searching for configure file: "C:\Users\Sally.magick\magic.xml"
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Configure Magick[6964]: magic.c/LoadMagicList/682/Configure
Loading magic configure file "magic.xml" ...
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Policy Magick[6964]: policy.c/IsRightsAuthorized/485/Policy
Domain: Coder; rights=Read; pattern="PDF" ...
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Policy Magick[6964]: policy.c/IsRightsAuthorized/485/Policy
Domain: Path; rights=Read; pattern="C:\Temp\09004006-00.PDF" ...
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Blob Magick[6964]: blob.c/OpenBlob/2535/Blob
read 3 magic header bytes
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Cache Magick[6964]: cache.c/DestroyPixelCache/960/Cachedestroy
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Policy Magick[6964]: policy.c/IsRightsAuthorized/485/Policy
Domain: Path; rights=Read; pattern="C:\Temp\09004006-00.PDF" ...
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Blob Magick[6964]: blob.c/OpenBlob/2535/Blob
read 3 magic header bytes
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.109 0.047u 6.8.8 Configure Magick[6964]: configure.c/GetConfigureOptions/589/ConfigureSearching for configure file: "delegates.xml"
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.109 0.047u 6.8.8 Configure Magick[6964]: configure.c/GetConfigureOptions/589/Configure
Searching for configure file: "C:\Users\Sally.magick\delegates.xml"
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.109 0.047u 6.8.8 Configure Magick[6964]: delegate.c/LoadDelegateList/1228/Configure
Loading delegate configuration file "delegates.xml" ...
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.109 0.047u 6.8.8 Configure Magick[6964]: nt-base.c/NTLocateGhostscript/1035/Configure
Ghostscript (GPL Ghostscript) version 8.15
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.109 0.047u 6.8.8 Configure Magick[6964]: nt-base.c/NTGhostscriptGetString/1101/Configure
registry: "HKEY_LOCAL_MACHINE\SOFTWARE\GPL Ghostscript\8.15\GS_DLL"="C:\Program Files (x86)\GPLGS\gsdll32.dll"
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.109 0.047u 6.8.8 Configure Magick[6964]: nt-base.c/NTGhostscriptGetString/1101/Configure
registry: "HKEY_LOCAL_MACHINE\SOFTWARE\GPL Ghostscript\8.15\GS_DLL"="C:\Program Files (x86)\GPLGS\gsdll32.dll"