clq

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年1月9日

摘要: http://topic.csdn.net/t/20031023/09/2385627.html--------------------------------------------------我创建了一个动态库,库中实现了对Socket(TCP、UDP)的封装,其中使用了BCB的TClientSocket,当使用该ClientSocket去连接一个并不存在的服务器时必然导致会ESocketError异常。 问题:我该如何捕捉到该异常? 如下代码明显不行,请哪位高手帮帮忙!!!!!!!!!!!!! try { ConnectServer(); } catch(...) ... 阅读全文
posted @ 2012-01-09 09:32 clq 阅读(823) 评论(2) 推荐(0) 编辑

摘要: c# 异常句柄 好象以前写过,再写一次.using System;using System.Collections.Generic;//using System.Linq;using System.Windows.Forms;using System.Threading;namespace ttt{ static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { // Add 阅读全文
posted @ 2012-01-09 09:20 clq 阅读(650) 评论(0) 推荐(0) 编辑