gcvt and stack overflow

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

gcvt and stack overflow

2,212 次查看
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
标签 (1)
0 项奖励
回复
1 回复

691 次查看
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 项奖励
回复