Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have the following code that works fine for the .NET framework 2003, but when I run it on the Compact Framework 2003 (pocket pc) with service pack 1.0 3, It crash in the ReceiveData. Begin and Endinvoke is recognized in SP2, so I can't see there should be any problem. What goes wrong !!!

 

public delegate void DelegateRxHandler(byte []pData, byte length);

private DelegateRxHandler RxHandler = null;

 

public constructor ()

{

Initialize(new DelegateRxHandler(DoSomethingWithReceivedData));

}

 

public void Initialize(DelegateRxHandler handler)

{

RxHandler = handler;

}

 

public void ReceiveData

{

------------->crash RxHandler(receivedFrame,rxLen);

}

 

public void DoSomethingWithReceivedData(byte []pData, byte length)

{

...

}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...