由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - "out of stack space" when constructing a _bstr_t object
相关主题
how can I convert CString to char*?高手请进
#ifdef _MSC_VER 是什么意思啊?How to conver CString to long long type?
new了指针,delete的时候出错了除了类,c++和C区别在那?
为什么我的Navigate2总是崩溃在错误的参数表版本里?问个C++的String问题
tf keras 这么多坑?Mysterious PgSQL 8.3 crash
Array in Cstl的map可以嵌套几层?
C ++ 问题two general C++ question
A function can be history-sensitive??????[合集] dll输出问题
相关话题的讨论汇总
话题: 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版参与讨论
相关主题
[合集] dll输出问题tf keras 这么多坑?
[合集] 一个依赖于平台的memory问题Array in C
无法编译一个文件C ++ 问题
问个c++问题A function can be history-sensitive??????
how can I convert CString to char*?高手请进
#ifdef _MSC_VER 是什么意思啊?How to conver CString to long long type?
new了指针,delete的时候出错了除了类,c++和C区别在那?
为什么我的Navigate2总是崩溃在错误的参数表版本里?问个C++的String问题
相关话题的讨论汇总
话题: bstr话题: stack话题: space话题: when