c# - Windows 7 Mobile Broadband API - Crash with no exception -


Exits with the exception of the following code before exiting:

  private void Form 1_load (object sender, EventArgs e) {MbnConnectionManager connectionManager = New MbnConnectionManager (); IMbnConnectionManager ConnectionMeager interface = (IMbnConnectionManager) connectionManager; IMbnConnection [] Connection = (IMbnConnection []) connectionManagerInterface.GetConnections (); (IMbnConnectionProfileManager) connectionProfile; MbnApi.MbnInterfaceManager interfaceManager = New MbnInterfaceManager (); MbnApi.IMbnInterfaceManager interfaceManagerInterface = (IMbnInterfaceManager) Interface Manager; IMBN interface [] Interface = InterfaceManagerInterface.GetInterface () IMbnInterface [] as; Foreign exchange (IMBN interface MBN interface in interface) {MBN_ PROVIDER HOMEPRODUCTOR = MBN interface.GetHomeProvider (outside homeprint); }}   

This line is about to crash -

  MBN_ PROVIDER home provider = mbnInterface.GetHomeProvider (outside the homeprint);   

Why is it that there is any way to see what is happening inside the mobile broadband API?

Comments