ayuda el siguiente codigo me da error y al parecer no me falta nada...
-   
-     private unsafe void leeComs_Click(object sender, System.EventArgs e) 
-     { 
-             int *ptraddr;  /* apuntador a la localidad de las direcciones del puerto */ 
-             int address;   /* direccion del puerto */ 
-             int a; 
-   
-             //*ptraddr=(uint *)0x00000400; 
-       ptraddr=(int*)0x00000400; 
-   
-             for (a = 0; a <  4; a++) 
-             { 
-                 address = *ptraddr; 
-         if (address == 0) 
-         { 
-           desplegar.Text="No port found for COM%d \n" + (a+1); 
-         } 
-         else 
-         { 
-           desplegar.Text="Address assigned to COM" + (a+1)+ "is" + address +"Xh\n"; 
-         } 
-                 (*ptraddr)++; 
-             } 
-     } 
-   
-   
alguna idea please
An unhandled exception of type 'System.NullReferenceException' occurred in leerCom.exe
Additional information: Object reference not set to an instance of an object.