When TestTaskBarIcon is run, an empty field is added to the task bar.
I tried the following to display an icon at the task bar:
After the line
icn <- iconCreateDefault
I added
iconCopyFromBitmap icn (bitmap "../bitmaps/wxwin.ico")
This resulted in the message
Segmentation fault/access violation in generated code
(after pressing "close")
Then I tried
bmp <- bitmapCreateFromFile "../bitmaps/wxwin.ico" iconCopyFromBitmap icn bmp
with the same result.
This might a bug in wxHaskell, or TestTaskBarIcon.hs must be patched some other way.
OS: Windows XP
GHC version: 7.6.3
wxWidgets version: 2.9.5
wxHaskell version: 0.90.1.0 (currently in Github repository)
TestTaskBarIcon now displays an icon instead of an empty field in the taskbar. The crash seems unrelated, many sample programs crash the same way (on Windows).