Author: draget | Posted on: 10/6/2010 8:19:04 AM | Views : 324

Hi
In our WCF service we use a third party product (product C) for querying an external database. We can not change the code in this third party product.
The library is imported for exemple via
Declare Function vbPriopti Lib "PRIMCSAM.dll" (ByVal a As String, ByVal b As Integer) As Integer
Declare Function vbConnectionClose Lib "PRIMCSAM.dll" () As Integer
etc
The problem we face is that the product C keep connections in memory and refuses more connections from the same user/ip address. And their "vbConnectionClose" subroutine does not do proper clean up, something is left in memory and we can therefore not do a new connection.
The only thing to do a new connection is to restart the wcf servcie appliaction on the web server. But I do not want to close my whole app and restart it because of errors in the product C, instead it would be better to just reload the imported dll again?!
What is the easiest way ...

Go to the complete details ...