Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1 Curses Charp crashes with a BadImageFormatException on x64

open
nobody
None
5
2012-02-20
2012-02-20
Pathogen-David
No

Curses Sharp crashes with a BadImageFormatException on x64 systems when Curses.InitScr is called.

This seems to be because CursesSharp was compiled for "Any Cpu" so it runs as x64 when it is available. A work-around is to compile both CursesSharp and the application (or demo) as x86 explicitly. I also imagine compiling both PDCruses and CursesWrapper as x64 would fix it as well. However, I suspect there is probably a better solution, but I am not familiar with C# binding.

Platform: Windows 7 64-Bit
Using Curses Sharp 0.8 source distribution and pdc34 binary distribution.

Discussion