Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » main

This thread is locked; no one can reply to it. rss feed Print
 1   2 
main
AuriaG
Member #7,362
June 2006

Quote:

It's possible the program's crashing for some other reason, such as loading bitmaps before allegro_init() or something. Can you gdb the core file? Or perhaps have it write "progress report" messages to a file as it goes, where the file ends should tell you approximately where it's crashing. (maybe want to close the file after each message, then reopen it for next message)

no, the code i've tried is sure to be valid, it works on Windows - the crash occurs on allegro_init, most probably because the pointer to main is wrong (if i understaood correctly what END_OF_MAIN does)

Thomas Fjellstrom
Member #476
June 2000
avatar

Quote:

wxWidgets and Allegro are both cross-platform stuff, so code should be the same on all platforms

Except that he used win_* api functions that are only available on allegro for windows.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

 1   2 


Go to: