Re: DLLInport from a ASP.NET web app using C#
- From: Scott Allen <scott@xxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 05 Jun 2005 16:41:19 -0400
Yes - it does sound odd. Is there anychance something in this unmanged
method uses thread local storage? If that is the case it would have to
be invoked on the same thread everytime, else exhibit wierd behavior.
--
Scott
http://www.OdeToCode.com/blogs/scott/
On Sun, 5 Jun 2005 10:19:29 -0700, "Ravneet"
<Ravneet@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>Hi Scott,
>I will run the CLRSpy to narrow the cause. Meanwhile the sig of the native is:
>
>LPSTR APIENTRY getSerialEx();
>
>it is declared in the managed code as:
>static extern string getSerialEx();
>
>What I am not able to understand is that why it works the first time around
>and fails in successive sessions. I must remind you that this code is being
>called from Session_Start of the ASP.NET web application. To narrow down
>issues if I do a LoadLibrary just before the call it returns all the time
>with a valid module handle. So the DLL is loaded but the call to the function
>fails from second instance onwards. Now, this sounds like some memory not
>being released issue. I am gonna do some more tests, meanwhile if you (or
>anyone else) has something to suggest, pls do.
>
>Thanks
>Ravneet
.
- Follow-Ups:
- Re: DLLInport from a ASP.NET web app using C#
- From: Ravneet
- Re: DLLInport from a ASP.NET web app using C#
- References:
- DLLInport from a ASP.NET web app using C#
- From: Ravneet
- Re: DLLInport from a ASP.NET web app using C#
- From: Scott Allen
- Re: DLLInport from a ASP.NET web app using C#
- From: Ravneet
- Re: DLLInport from a ASP.NET web app using C#
- From: Scott Allen
- Re: DLLInport from a ASP.NET web app using C#
- From: Ravneet
- Re: DLLInport from a ASP.NET web app using C#
- From: Scott Allen
- Re: DLLInport from a ASP.NET web app using C#
- From: Ravneet
- DLLInport from a ASP.NET web app using C#
- Prev by Date: Reading A Text File From A Remote Server
- Next by Date: Re: force close the aspx page.
- Previous by thread: Re: DLLInport from a ASP.NET web app using C#
- Next by thread: Re: DLLInport from a ASP.NET web app using C#
- Index(es):
Relevant Pages
|