且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从本机DLL堆栈溢出从托管应用程序调用

更新时间:2022-12-21 09:18:03

下面是一个链接的的Windows CE的内存架构的讨论。

Here's a link to a discussion of the memory architecture of Windows CE.

最后,很少有你可以做编程,或在编译时调整堆栈大小;基于若干因素,包括存储器可用性操作系统会有所不同的。设置堆栈大小与/ f仅设置可以(并且通常将)被由OS忽略的默认值。和/ F不上一个.DLL工作,无论如何;它只编译可执行文件时的作品。 .DLL文件没有一个堆栈;属于该线程和(最终)的过程。

Ultimately, there is very little you can do to adjust the stack size programmatically or at compile time; the OS will vary it based on a number of factors, including memory availability. Setting stack size with /F only sets a default value that can (and often will) be ignored by the OS. And /F doesn't work on a .DLL, anyway; it only works when compiling the executable. .DLLs don't have a stack; that belongs to the thread and (ultimately) to the process.

这也许是时候回去了绘图板以消除你的递归。

It might be time to go back to the drawing board to remove your recursion.