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??

Re: Problems with a DLL by Sergey

Sergey
Mon Oct 10 10:50:43 CDT 2005

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 Font wrote:
> 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??
>
>

Re: Problems with a DLL by Arnau

Arnau
Tue Oct 11 02:57:29 CDT 2005

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" <sergey.bogdanov@gmail.com> escribio en el mensaje
news:%23IF3eJbzFHA.720@TK2MSFTNGP15.phx.gbl...
> 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 Font wrote:
> > 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??
> >
> >