OpenNETCF.Desktop.Communication.RAPI and BSOD:s

Jul 1, 2009 at 4:15 PM

Hi all

I've been struggling with BSOD problems when using OpenNETCF Desktop Communication library.

What i have done so far is:

- I downloaded latest sources and compiled them with Visual C# 2005

- I Added resulted  DLL to my VC# project as reference.

I use it like this:

// Create instance of RAPI

OpenNETCF.Desktop.Communication.RAPI rapi = new OpenNETCF.Desktop.Communication.RAPI();

//Setup Eventhandlers

            rapi.ActiveSync.Active += new OpenNETCF.Desktop.Communication.ActiveHandler(handleConnection);
            rapi.ActiveSync.Disconnect += new OpenNETCF.Desktop.Communication.DisconnectHandler(Disconnect);

  private void Disconnect()



  private void handleConnection()

          // For here on we have a connection!



The basic idea is that my application sits and waits for device to appear, this approach works fine, but then....

After a while; unplugging and replugging the device and using rapi funtions like CopyFileForDevice etc, my computer halts on BSOD (typically irql_not_less_or_equal)

I noticed that there is a dispose() member on rapi and i call that when closing the application.


What i'm doing wrong here to get those BSOD:s??