PC Review


Reply
Thread Tools Rate Thread

DllImport C++ dll produces exception

 
 
bbembi_de@lycos.de
Guest
Posts: n/a
 
      22nd Nov 2007
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
 
Reply With Quote
 
 
 
 
Michael C
Guest
Posts: n/a
 
      22nd Nov 2007
<(E-Mail Removed)> wrote in message
news:26ff1208-b291-45aa-9a59-(E-Mail Removed)...
> 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.


No idea, you haven't posted any code.

Michael


 
Reply With Quote
 
Michael Nemtsev
Guest
Posts: n/a
 
      22nd Nov 2007
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
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the difference of [DllImport ....] with _declspec(dllimport) Ed Microsoft VC .NET 2 31st Jul 2007 02:31 AM
double.Parse produces overflow exception on double.MinValue Samuel R. Neff Microsoft C# .NET 2 6th Mar 2007 06:36 PM
DLLImport and "First time exception" ? Fabien Penso Microsoft C# .NET 9 15th Apr 2005 10:22 AM
Publish exception to Email in Exception Handling Exception Block =?Utf-8?B?ZW15?= Microsoft C# .NET 1 31st Mar 2005 12:45 PM
.NET Windows Service produces Exception errors? Richard Microsoft VB .NET 3 30th Nov 2004 03:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:40 PM.