Application failed to initialize properly (0xc0000005)
is displayed when attempting to run wxHaskell programs, when wxWidgets is compiled with GCC 4.5.2
DependencyWalker indicates that this happens at the first call to a wxWidgets DLL function:
DllMain(0x6A540000, DLL_PROCESS_ATTACH, 0x0022FD30) in "WXBASE295U_GCC_CUSTOM.DLL" called.
Second chance exception 0xC0000005 (Access Violation) occurred in "NTDLL.DLL" at address 0x7C9673BE.
When wxWidgets is compiled with GCC 3.4.5, no Access Violation message appears.
An explanation might be, that the DLL interface for GCC 4.5 is different, see the following snippet from include\wx\dlimpexp.h:
# elif defined(GNUC) && !wxCHECK_GCC_VERSION(4, 5)
# define WXEXPORT attribute((dllexport))
# define WXIMPORT attribute((dllimport))
|wxHaskell||0.90.1.0 (currently in Github repository)|
Log in to post a comment.