Calling Dispose on a Device twice produces a crash

Sep 1, 2010 at 12:28 PM

I wrote a Unit Test with a VirtualDevice and put a using around it, this produced a crash because the Device was 2 Times Disposed

Is this intended behavior that I can't dispose a divice twice (It could detect if it already was disposed and if so not dispose again.

Sep 1, 2010 at 1:10 PM

Thanks for catching this.  It's definitely a bug.  Dispose methods should always be able to be called multiple times without throwing an exception.

Can you please create a new work item for this so it doesn't get forgotten?  I'd actually like to check all of the GeoFramework classes (or at least the most commonly-used ones) to ensure that they don't have this problem.