single user problem of VB dll in asp.net

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
 
B

bruce barker

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top