次のコードは、例外なく終了する前に終了します。
private void Form1_Load(object sender, EventArgs e)
{
MbnConnectionManager connectionManager = new MbnConnectionManager();
IMbnConnectionManager connectionManagerInterface = (IMbnConnectionManager)connectionManager;
IMbnConnection[] connections = (IMbnConnection[])connectionManagerInterface.GetConnections();
(IMbnConnectionProfileManager)connectionProfile;
MbnApi.MbnInterfaceManager interfaceManager = new MbnInterfaceManager();
MbnApi.IMbnInterfaceManager interfaceManagerInterface = (IMbnInterfaceManager)interfaceManager;
IMbnInterface[] interfaces = interfaceManagerInterface.GetInterfaces() as IMbnInterface[];
foreach (IMbnInterface mbnInterface in interfaces)
{
MBN_PROVIDER homeProvider = mbnInterface.GetHomeProvider(out homeProvider);
}
}
この行がクラッシュを引き起こしているようです-
MBN_PROVIDER homeProvider = mbnInterface.GetHomeProvider(out homeProvider);
なぜこれが発生するのでしょうか。モバイルブロードバンドAPI内で実際に何が起こっているのかを確認する方法はありますか?