Thanks for the advice. Sorry about the messed up code but I didn't want to clutter anybody's inbox with an attachment and I guess the indents got hosed.
The appearance of multiple hashes is not my intention. Just didn't pay too much attention to my test class. :(



Brian Kelley wrote:


Adam Russell wrote:

Below is a test of something I thought of.
I create a hashed view and then store the view in a dictionary.
I then try and use the vw from teh dict. Fails every time with a system error.
Should this be able to work? Is my test code wrong somehow?


You need to keep a reference to the original storage (db in this case) when it gets garbage collected and the views won't work any more. Even if they are referenced in a dictionary. Your code didn't come across very well by the way, the indentation got messed up.

It looks like you are keeping multiple hashes to the same single view. I don't think this will work in the long run. If you modify one hash, none of the other hashes will know about the update.

Brian


_____________________________________________
Metakit mailing list  -  [EMAIL PROTECTED]
http://www.equi4.com/mailman/listinfo/metakit

Reply via email to