DllImport C++ dll produces exception

B

bbembi_de

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
 
M

Michael C

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top