![Tantrum](https://forums.contractoruk.com/core/images/smilies/extras/tantrum.gif)
Protected Overrides Function DeviceHasBeenEnabled() As Boolean
Static blnFirstTime As Boolean = False
The above code throws a null reference exception.
I am guessing it's because the ultimate caller is in a SyncLock ??
Obviously I can do it a different way with no problems but why the hell can't I allocate a static in this circumstance.
![Tantrum](https://forums.contractoruk.com/core/images/smilies/extras/tantrum.gif)
Comment