Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dll too slow as apartment thread

Status
Not open for further replies.

lalonde

Programmer
Nov 12, 2002
2
0
0
CA
my VB dll is too slow when compiled as an apartment threaded DLL (with unattended exec. + retained...).
The DLL is accessed in IIS (asp)

The dll basically creates a text file with everyhit to the site. (we use the scripting object and not the "#fileHandler". Unique file names are assured using the sessionID & another time variable...

However, when compiled as single thread, we have the performance we want but the server freezes as soon as two users "hit the site" simeltanously...

Any hints are appreciated,
Thanks
 
Without looking at your code here are some suggestions.

Are you creating unique names for every file?
Are you closing the files properly?
 
yep, file names are unique and the file is closed properly.
 
Another guess ,

Does the dll or the class some initization code ? In apartment threaded app this code may execute several times then in single thread.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top