gcvt and stack overflow

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

gcvt and stack overflow

1,902 Views
TTA
Contributor I
Hi,
When i am using gcvt() function in my application, it is causing a stack overflow. Can you please let me know if there are any compiler/linker settings that need to be done to avoid this problem.
Kindly do let me know.
 
Thanks,
TTA
Labels (1)
0 Kudos
1 Reply

381 Views
CrasyCat
Specialist III
Hello
 
Well you will have to change something in your application.
  - You may define a bigger stack in your linker configuration file
  - I would also suggest you to check your application and make sure you do not have
    big arrays or data structure local variables.
  - Also avoid when possible to pass structure as parameters to a function. Whenever possible
    pass a pointer to the structure.
    This is using less memory on the stack.
 
CrasyCat
0 Kudos