HighTechTalks DotNet Forums  

Try not handle the exception CF 2

Dotnet Framework (Compact Framework) microsoft.public.dotnet.framework.compactframework


Discuss Try not handle the exception CF 2 in the Dotnet Framework (Compact Framework) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Dani
 
Posts: n/a

Default Try not handle the exception CF 2 - 06-08-2010 , 03:03 AM






Hello group I discovered that in this code:

/ / Allocate ICMP_ECHO_REPLY structure
ICMP_ECHO_REPLY reply = new ICMP_ECHO_REPLY (255);
reply.DataSize = 255;
IntPtr pData = LocalAlloc (LMEM_ZEROINIT, reply.DataSize);
reply.Data = pData;
IcmpCreateFile IntPtr h = ();

.............................

IcmpCloseHandle (h);
LocalFree (reply.Data);

the last line triggers an exception if enclosed in a try you can not
manage and exit. The problem occurs when an ip is not reachable. Why not
allow me to manage the application? maybe some compiler option?

Dan

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.