f*******e 发帖数: 3 | 1 When converting a very long CString to a _bstr_t, I got the "out of stack
space" error.
The code is:
_bstr_t b=LPCTSTR(str); //str is a CString appx. 670000 chars long
Anyway to work around this? Thanks. | p**v 发帖数: 853 | 2 try this to see if it works assuming you are in linux/unix,
run shell command, ulimit -s unlimited
then run your program | j**********p 发帖数: 22 | 3 by default, each windows thread has 1MB of stack space. You can change it
during compilation though.
【在 f*******e 的大作中提到】 : When converting a very long CString to a _bstr_t, I got the "out of stack : space" error. : The code is: : _bstr_t b=LPCTSTR(str); //str is a CString appx. 670000 chars long : Anyway to work around this? Thanks.
|
|