Segfaults in MSVC9, does not in KDevelop

Biturn segfaulted on 3d file preview, but only in winxp. Solved by setting main class to static in main(). Reason ? There is some memory allocation at the place where it segfaults, and it probably taken up all memory.

http://www.experts-exchange.com/Programming/Languages/C/Q_20577736.html

malloc() are using memory from stack. They should be replaced with calls to new() which allocs from heap.

2009-06-03 18:01:30
< tdb> mirex: Windows has a considerably smaller stack than Linux, so
             it’s very much possible that your object is causing a stack
             overflow.  Static local variables go in the data section and not
             stack.