Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Stack overflow problem (increase allocated stack size?)  (Read 1685 times)

0 Members and 1 Guest are viewing this topic.

furrydice

  • Newbie
  • *
  • Posts: 9
    • View Profile
Stack overflow problem (increase allocated stack size?)
« on: January 04, 2011, 07:19:11 pm »
Hi,

I was wondering if you could help. I have defined a structure that uses quite a lot of memory (120kB), and I need to create at least another 3 of them. When I only create 1, the program works fine, when I add the second I get the errror:

Unhandled exception at 0x01037fd7 in Dungeon_Twister_1.exe: 0xC00000FD: Stack overflow.

Can anyone tell me how/where to increase the allocated stack size. I seem to remember it should be done in the makefile (more a compiler/VC++ option than SFML).

If anyone could tell me how to set/increase the stack size would be great (+ general rules for maximum allocatable stack size..)

Many thanks..

(p.s.:  sfml1.6, Win7-64bit, VC++2008, 6GB RAM)

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
Stack overflow problem (increase allocated stack size?)
« Reply #1 on: January 04, 2011, 07:21:23 pm »
You should allocate them on the heap if the stack isn't enough, not increase the stack.
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

furrydice

  • Newbie
  • *
  • Posts: 9
    • View Profile
Stack overflow problem (increase allocated stack size?)
« Reply #2 on: January 04, 2011, 07:45:19 pm »
thanks, sorry, been a while...  :oops:

 

anything