See "Stack Memory Leak in C#" thead in interop group
http://groups.google.com/group/micro...b7f0e53d623dc/
--
WBR, Michael Nemtsev [.NET/C# MVP].
Blog:
http://spaces.live.com/laflour
"(E-Mail Removed)" wrote:
> Hello everyone,
>
> I really need some help on this:
> I have a C# console application.
> I use DllImport to access a c++ dll.
> In an extra thread I poll a method in this dll.
> This works fine.
>
> Now the problem:
> I use the same code and put it in the simplest windows forms
> application and then the application crashes.
> I get an StackOverflowException in my c++ dll.
>
>
> How can that be?
>
> Thanks.
>
> bye
> juergen
>