Can anyone please explain what is going wrong here.
I'm getting a "NullReferenceException. Object reference not set to an instance of an object" using:
For Each SetEntry As DBDictionaryEntry In SetRootDict Dim SetEntryDict As DBDictionary = CType(SetEntry.Value.GetObject(OpenMode.ForRead), DBDictionary) Next
I have the same lines letter for letter in a different procedure and referring the same unchanged root dictionary where it works fine.
I replaced it with an alternative that works.
Dim SetEntryDict As DBDictionary = trans.GetObject(SetRootDict.GetAt(SetEntry.Key), OpenMode.ForRead)
A bit confused why the previous line would work in one location and not another.
Hi Jeff,
Both are located inside the top transaction. I think this is relevant but the only difference I see is that the one that didn't work was being called from an override. Probably not it though, just taking a wild stab.
Sorry.. during an overrule. not an override
Yea I've read the classes and watched the videos.
I forgot about the OpenCloseTransactions thing.
Everything seems to be stable at the moment but I should change that.