|
Posted by Yaroslav Goncharov on November 13, 2007, 11:44 am
Please log in for more thread options
You can create a native function that creates a new thread (you can specify
a stack size when you create a new thread) and call the entry function from
that thread.
--
Yaroslav Goncharov
Pocket PC Developer Network coordinator, http://pocketpcdn.com Spb Software House, http://spbsoftwarehouse.com
> Hi,
>
> I have been trying to embed third party software into a Windows Mobile 5
> DotNet (C#) application by building it as a C++ DLL and calling the DLL
> funtions using InteropServices.
>
> The problem seems to be that the third party software requires a huge
> stack (3.5Meg.) to prevent overflow (In C++ stack size is set in the link
> options) . This works fine in C++, but when called from the C# app it
> crashes (presumably down to stack overflow). But there appears to be no
> way to set the stack (of the main app) in C# program.
>
> Can anybody help?
>
> Thanks in advance,
>
> -James
>
>
>
|