I'm trying to store a Dictionary in the IIS Application variables using Global.ASA however I read this isnt possible due to something related to threading and dictionaries.
Since then Im trying to store an ArrayList, however this seems to fail too.
DIM LanguageArray
set LanguageArray = CreateObject("System.Collections.ArrayList")
-- Populate Array List
Application("LanguageArray") = LanguageArray.Synchronized(LanguageArray)
I have a fairly basic setup, I declare the array list, create it and then populate it and finally try put it into the Application object. I read that Synchronized returns a thread safe wrapper and an example I saw did this however i'm pretty sure this is wrong.
I'm at a loss of what to do now, can ArrayLists even go into Application variables? If so is my call to Synchronized incorrect?
Thanks