Ticket #1212 (new defect)
Button Printf Callback Fails
| Reported by: | guest | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | general (Gtk+, Glib) | Version: | |
| Keywords: | printf button callback | Cc: |
Description
The version was 0.12 (not listed as an option).
If I include any call to printf (from Text.Printf) within a button callback, I get a "gtk2hs_closure_marshal: uncaught exception" and the program terminates. The failure does not seem to happen with other non-button callbacks and it also does not fail for other string printing functions like putStrLn.
The equivalent code in C works fine. I've attached both a C and haskell version for comparison.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.