Click here to Skip to main content
15,940,173 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Beautiful Page Pin
Paddy Boyd20-Jul-06 6:21
Paddy Boyd20-Jul-06 6:21 
GeneralRe: Beautiful Page Pin
TheEagle24-Jul-06 18:47
TheEagle24-Jul-06 18:47 
AnswerRe: Beautiful Page Pin
WillemM20-Jul-06 22:47
WillemM20-Jul-06 22:47 
GeneralRe: Beautiful Page Pin
TheEagle24-Jul-06 18:31
TheEagle24-Jul-06 18:31 
QuestionTimed Executions for Application Pin
RedGoblin20-Jul-06 4:11
RedGoblin20-Jul-06 4:11 
AnswerRe: Timed Executions for Application Pin
Paddy Boyd20-Jul-06 4:54
Paddy Boyd20-Jul-06 4:54 
GeneralRe: Timed Executions for Application Pin
RedGoblin20-Jul-06 5:05
RedGoblin20-Jul-06 5:05 
QuestionCaching interop calls - not good [modified] Pin
Malcolm Smart20-Jul-06 3:01
Malcolm Smart20-Jul-06 3:01 
**************************
MODIFY : SEE UPDATE BELOW.
**************************
hi

Using C# / ASP.NET I am calling a couple of C++ routines from a tried and tested DLL. I have a test binary on the server which also calls the same routines. The DLL reads from a data provider.

Using the following test plan:-

1. Read data via DLL interop call
2. Change source (via a different app)
3. Read data via DLL interop call

Using the binary harness, the results from 1 and 3 are different, reflecting the change made in 2. Using the ASP.NET, the results of 1 and 3 show the same data - ie not showing the results.

I've wrapped the output with timestamps and spooled out to a file which proves teh ASPX page is being called, and the interop DLL method is being called, but some 'magical' thing inside IIS seems to say, 'Youve just called this with the same parameters - here, have the data back you got first time', which is no good.

Cutting to the chase,
1 - am I talking b******s?
2 - if not, can I force IIS to not cache any results from interop calls. The page making the calls definately isn't cached, just the result from the interop call.

[System.Runtime.InteropServices.DllImport "d:/data/inetpub/focs/bin/MonkeyCfg.dll")]
    public static extern long GetBatchJobSize(string str , ref long i);

  [System.Runtime.InteropServices.DllImport("d:/data/inetpub/focs/bin/MonkeyCfg.dll")]
    public static extern void GetBatchJob(string str , System.Text.StringBuilder buf);


UPDATE : Killing the w3wp.exe process which is holding the DLL open resolves the problem. So this leads to the real question - how can I ensure the DLL is unloaded after each call?


Regards

Angel
*********************************************
The sooner you fall behind, the longer you have to catch up.


-- modified at 10:23 Thursday 20th July, 2006
AnswerRe: Caching interop calls - not good Pin
Malcolm Smart20-Jul-06 4:47
Malcolm Smart20-Jul-06 4:47 
GeneralRe: Caching interop calls - not good Pin
Dustin Metzgar20-Jul-06 6:26
Dustin Metzgar20-Jul-06 6:26 
GeneralRe: Caching interop calls - not good [modified] Pin
Malcolm Smart20-Jul-06 22:44
Malcolm Smart20-Jul-06 22:44 
GeneralRe: Caching interop calls - not good Pin
Malcolm Smart20-Jul-06 23:33
Malcolm Smart20-Jul-06 23:33 
GeneralRe: Caching interop calls - not good Pin
Dustin Metzgar21-Jul-06 3:28
Dustin Metzgar21-Jul-06 3:28 
QuestionHTML Problem Pin
venkatasivaramaprasad20-Jul-06 2:29
venkatasivaramaprasad20-Jul-06 2:29 
AnswerRe: HTML Problem Pin
Malcolm Smart20-Jul-06 3:08
Malcolm Smart20-Jul-06 3:08 
QuestionHey guy , Web.config file Pin
Mohammed Amine20-Jul-06 2:02
Mohammed Amine20-Jul-06 2:02 
AnswerRe: Hey guy , Web.config file Pin
_AK_20-Jul-06 2:14
_AK_20-Jul-06 2:14 
GeneralRe: Hey guy , Web.config file Pin
Mohammed Amine20-Jul-06 2:22
Mohammed Amine20-Jul-06 2:22 
GeneralRe: Hey guy , Web.config file Pin
_AK_20-Jul-06 2:23
_AK_20-Jul-06 2:23 
GeneralRe: Hey guy , Web.config file Pin
Mohammed Amine20-Jul-06 2:43
Mohammed Amine20-Jul-06 2:43 
GeneralRe: Hey guy , Web.config file Pin
_AK_20-Jul-06 2:46
_AK_20-Jul-06 2:46 
GeneralRe: Hey guy , Web.config file Pin
Mohammed Amine20-Jul-06 4:36
Mohammed Amine20-Jul-06 4:36 
GeneralRe: Hey guy , Web.config file Pin
Mohammed Amine20-Jul-06 4:51
Mohammed Amine20-Jul-06 4:51 
GeneralRe: Hey guy , Web.config file Pin
Malcolm Smart20-Jul-06 3:10
Malcolm Smart20-Jul-06 3:10 
GeneralRe: Hey guy , Web.config file Pin
Mohammed Amine20-Jul-06 4:39
Mohammed Amine20-Jul-06 4:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.