Stack overflow createinstance | developer.brewmp.com Stack overflow createinstance | developer.brewmp.com

Developer

Stack overflow createinstance

Forums:

hi

i have ported a game which run on brew 2.0 to brew 1.1 and while the game starts i am getting an err "stack overflow Createinstance" can anybody help me out

tnx in advance
hepsy

Looks like you are have bug buffers or large objects in your init function. Post code snippet.

Looks like you are have bug buffers or large objects in your init function. Post code snippet.

tnx ruben.......
yaa i hav initialized lot of varaibles in the init function.........
whether this may cause this problem or suggest me some way.

tnx ruben.......
yaa i hav initialized lot of varaibles in the init function.........
whether this may cause this problem or suggest me some way.

As I said last time, check for large buffer or object on stack, you can use heap for allocating these large objects.

As I said last time, check for large buffer or object on stack, you can use heap for allocating these large objects.

If you are serious about measuring stack size of your code in every place, then in BREW emulator you may be able to use /Gh feature of MSVC (implementing __penter windows hook function). You can instrument your application stack size.
This feature works in regular windows program, and I believe it may well work with BREW emulator.

If you are serious about measuring stack size of your code in every place, then in BREW emulator you may be able to use /Gh feature of MSVC (implementing __penter windows hook function). You can instrument your application stack size.
This feature works in regular windows program, and I believe it may well work with BREW emulator.