Closed ChrisBrandhorst closed 11 years ago
Also, for performance-reasons (due to locking), IsLoaded
itself should not be called, rather the sp_*_is_loaded
should.
Actually, thinking about it, I think that maybe all API's should throw a NotLoadedException
when relevant, simply because that's a LOT easier to track down than a random NullReferenceException
that doesn't occur if you set breakpoints (cause then things have time to load).
Agreed. I should have the NotLoadedException
somewhere in the commits, since I already added it once, but removed it later :-)
Lets just remake it. It's too messy drawing things back from old commits imho.
In order to prevent
AccessViolationException
s, we need to addIsLoaded
checks to properties of Spotify types. IfIsLoaded
returns false, those properties should throw aNotLoadedException
.The following types should be addressed: