COBRA-II SD Access in 2014 R5

My apologies in advance if this question has already been asked.

Is it expected that the following code should throw an exception when no SD Card is present?


SDCard sd = new SDCard(); 


An unhandled exception of type 'System.Exception' occurred in GHI.Hardware.dll

This really throws a monkey wrench in to our existing code. Our perception was that we could construct the SDCard object and then mount (using the card detect pin). Why did this change?

Thanks.

@ Diesel Engineer - Are you using Gadgeteer?

No, straight NETMF.

@ Diesel Engineer - I do not believe mounting or constructing has changed in any recent SDK. Once you receive the detect interrupt from your interrupt object, you can create the SDCard object and mount it.