Problems with a DLL

  • Thread starter Thread starter Arnau Font
  • Start date Start date
A

Arnau Font

Hi,

I've written a DLL that internally calls another DLL. The problem is that if
I call my DLL from a C++ program, it works fine, but if I call it from a
..NETCF program, it raises an exception and the exception dialog is shown.
If I press on the Details button, the application hangs and I must close it
from the 'Running programs' list.

Any idea why this happens??
 
How did you "call" it? Show us P/Invoke declaration and provide more
information: type of exception, line, etc.
 
Well, one of the problems is that when I press the details button to get the
exception information, the application hangs and I can't read the
information.

The dllImport in .NetCF is:

[DllImport("IPSMultiProtocol.dll")]
static extern int ReadCIRSA(uint Flags, byte[] password, uint pwdSize);

and the call:

static public ResultCIRSA LlegirCIRSA(FlagsCIRSA Flags, string password,
uint pwdSize) {
byte[] pwd = System.Text.Encoding.ASCII.GetBytes(password);
ResultCIRSA res = (ResultCIRSA)ReadCIRSA((uint)Flags, pwd, pwdSize);
}

Thanks!!

Arnau.

Sergey Bogdanov said:
How did you "call" it? Show us P/Invoke declaration and provide more
information: type of exception, line, etc.

--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com


Arnau said:
Hi,

I've written a DLL that internally calls another DLL. The problem is that if
I call my DLL from a C++ program, it works fine, but if I call it from a
.NETCF program, it raises an exception and the exception dialog is shown.
If I press on the Details button, the application hangs and I must close it
from the 'Running programs' list.

Any idea why this happens??
 
Back
Top