Logo 
Search:

Asp.net Forum

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds

VB COM calling VC++ DLL error

  Asked By: Thelma    Date: Jun 11    Category: Asp.net    Views: 3990
  

I have a VB COM obj residing in IIS that upon ASP web client request
calls a function from a VC++6.0 DLL, in the following manner:

"
Dim obj As New app_objects.clsFunction()
obj = Server.CreateObject("app_objects.clsFunction")
strResultsTable(0) = obj.Function(txtInput.Text, param1, param2)
Marshal.ReleaseComObject(obj)
"

This works for a single client call. If a second client requests the
service when the first has not finished, IIS outputs the following
error to the second client:

"
Object reference not set to an instance of an object
"

The first client does not get any errors and receives the correct
answer to his query. If the second client requests the page after the
first client completion, there is no problem.

I have tried apartment model, unattented execution and retained in
memory option, but unsuccessfully. Is it a VC DLL error, an IIS
problem or a COM setting?

Thanks in advance for your support and help.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Robin Bailey     Answered On: Jun 11

are you using:
<%@ Page ASPCompat="true" %>
in your file....

 
Didn't find what you were looking for? Find more on VB COM calling VC++ DLL error Or get search suggestion and latest updates.




Tagged: