Problems developing an application to PocketPC

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: triki tron via .NET 247 (anonymous_at_dotnet247.com)
Date: 08/04/04


Date: Wed, 04 Aug 2004 04:54:58 -0700


(Type your message here)
I have proved this code in an application for PC and works OK:

   Dim RxBufferDatos(40) As Byte
   Dim Arbuffer() As Byte

   ReDim Preserve Arbuffer(ContadorDatos + nbRx - 1)

   Dim handle As GCHandle = GCHandle.Alloc(RxBufferDatos, GCHandleType.Pinned)
   Dim aux As IntPtr = handle.AddrOfPinnedObject()
   Marshal.Copy(aux, Arbuffer, ContadorDatos, RxBufferDatos.Length)
   handle.Free()

This copies a number of bytes from "RxBufferDatos" to "Arbuffer".

But when I copy this code to an application to a PocketPC, this doesn?t work OK.
Do you know why and how can I do it?

--------------------------------
From: triki tron

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>n5sKkgAM1UKL7KlDR1sSiQ==</Id>