single user problem of VB dll in asp.net

  • Thread starter Thread starter Smith
  • Start date Start date
S

Smith

Hello,
We have a VB6 dll that we need to use in our asp.net 2.0 app. We build it as
multiple user.
But at runtime, it does not seem to allow more then two pages using the dll
at the same time.

Is there an issue with this scenario or it could be the code inside the DLL
preventing this from working
properly.

Thanks

J
 
vb6 dll's are sta (single apt model) and use thread static storage for
module data. therefore asp.net uses a single thread to accesses the
methods. sta modules should not be used with any high volume site.

be sure to set your pages aspcompat, which will turn off thread agility
or you could get errors calling the sta (due to thread local storage use)

-- bruce (sqlwork.com)
 
Back
Top