Archived Forum Post

Index of archived forum posts

Question:

SEHException 0xc000001d when CkFtp2 is instantiated

May 14 '14 at 10:06

Hi,

I updated my app from Chilkat 9.3.1-x86-vc10 to 9.4.1. After that on an old XP machine with Pentium III processor the app crashes with SEHException 0xc000001d when CkFtp2 is instantiated; entry in Windows Event Log: " Application: cmdutil.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.Runtime.InteropServices.SEHException Stack: at <module>.CkFtp2.{ctor}(CkFtp2*) "

On newer machines (with Win8/7/XP) I could not reproduce this behaviour.

https://magick.codeplex.com/discussions/501346 says that 0xc000001d means "illegal instruction"

Is Chilkat built with options incompatible with Pentium III ? (eg. /arch:SSE2)

Or what other reason could cause this problem ?


Answer

The /SAFESEH option is a linker option, not a compiler option. Chilkat's C/C++ libs are static libs (i.e. not yet linked into an executable). It is your application that includes the Chilkat static libs and links to produce the executable. Check your application's linker options for /SAFESEH. It may be that removing the option will allow it to run on the older processor.


Answer

Thanks for your feedback.

The SAFESEH was already disabled with option /SAFESEH:NO

But the /ARCH option (see http://msdn.microsoft.com/de-de/library/7t5yh4fd.aspx) is a compiler/code generation option which eventually could cause the above problem if eg. /ARCH:SSE2 is set in the Compile options of your VS project which builds ChilkatRelDll.lib

Is that the case ?