Atlanta Custom Software Development 

 
   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
  Database
Automation
OS/Networking
Graphics
Links
Tools
» Regular Expr Tester
» Free Tools

Beware of the Dictionary object in ASP pages

Total Hit ( 5172)

Rate this article:     Poor     Excellent 

 Submit Your Question/Comment about this article

Rating


 


The Scripting.Dictionary object is marked as having a "Both" threading model, which means that you can freely assign it to a Session or an Application variable. However, the actual threading model for this object is "Apartment", which means that you should use it only at the page scope level. You can't assign it to an Application variable, and even if you get no error when assigning it to Session variable, you are discouraged from doing so, because this action severely affect the scalability of your site.

The registry entry for the Dictionary object is corrected by the Visual Studio setup program. If you haven't installed VS6, you should manually edit the Registry. To do that automatically, copy the following text to Notepad, save it to a .REG file - say, DICT.REG - and double click on it to merge its contents to the system registry:

REGEDIT4

[HKEY_CLASSES_ROOT\CLSID\{EE09B103-97E0-11CF-978F-00A02463E06F}\InprocServer32]
@="H:\\WINNT4\\System32\\scrrun.dll"
"ThreadingModel"="Apartment"


Submitted By : Nayan Patel  (Member Since : 5/26/2004 12:23:06 PM)

Job Description : He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting.
View all (893) submissions by this author  (Birth Date : 7/14/1981 )


Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  BlogsZappySys

© 2008 BinaryWorld LLC. All rights reserved.