boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - "out of stack space" when constructing a _bstr_t object
相关主题
how can I convert CString to char*?
#ifdef _MSC_VER 是什么意思啊?
new了指针,delete的时候出错了
为什么我的Navigate2总是崩溃在错误的参数表版本里?
tf keras 这么多坑?
Array in C
C ++ 问题
A function can be history-sensitive??????
高手请进
How to conver CString to long long type?
相关话题的讨论汇总
话题: bstr话题: stack话题: space话题: when
进入Programming版参与讨论
1 (共1页)
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.

1 (共1页)
进入Programming版参与讨论
相关主题
How to conver CString to long long type?
除了类,c++和C区别在那?
问个C++的String问题
Mysterious PgSQL 8.3 crash
stl的map可以嵌套几层?
two general C++ question
[合集] dll输出问题
[合集] 一个依赖于平台的memory问题
无法编译一个文件
问个c++问题
相关话题的讨论汇总
话题: bstr话题: stack话题: space话题: when