上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 17 下一页

2018年1月31日

socket技术难点

摘要: 1、使用socket建立连接后,客户端和服务端只要有一方使用close()或者dispose()关闭连接,对端在发送或接收时都会抛出异常:远程主机强迫关闭了一个现有的连接。 2、使用TcpClient建立连接后,当客户端在TcpClient实例上调用close()方法,或者在流上调用dispose( 阅读全文

posted @ 2018-01-31 20:41 liuslayer 阅读(950) 评论(0) 推荐(0) 编辑

2018年1月29日

supersock问题

摘要: 1.“错误 1 类型“System.Configuration.ConfigurationElement”在未被引用的程序集中定义。必须添加对程序集“System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f 阅读全文

posted @ 2018-01-29 13:25 liuslayer 阅读(194) 评论(0) 推荐(0) 编辑

2017年11月20日

UDP错误10054:远程主机强迫关闭了一个现有的连接

摘要: UDP错误10054:远程主机强迫关闭了一个现有的连接 原文地址:http://www.devnewsgroups.net/group/microsoft.public.dotnet.framework/topic1887.aspx 在公司一项目的UDP消息服务开发中时不时的会遇到这样一个问题:在U 阅读全文

posted @ 2017-11-20 17:12 liuslayer 阅读(6304) 评论(0) 推荐(0) 编辑

2017年10月10日

【转】javascript深入理解js闭包

摘要: 闭包(closure)是Javascript语言的一个难点,也是它的特色,很多高级应用都要依靠闭包实现。 一、变量的作用域 要理解闭包,首先必须理解Javascript特殊的变量作用域。 变量的作用域无非就是两种:全局变量和局部变量。 Javascript语言的特殊之处,就在于函数内部可以直接读取全 阅读全文

posted @ 2017-10-10 10:02 liuslayer 阅读(175) 评论(0) 推荐(0) 编辑

2017年7月31日

第二十一章 任务、线程和同步

摘要: BarrierSample using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tas 阅读全文

posted @ 2017-07-31 15:10 liuslayer 阅读(263) 评论(0) 推荐(0) 编辑

2017年7月10日

第十三章 异步编程

摘要: Foundations using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks 阅读全文

posted @ 2017-07-10 15:30 liuslayer 阅读(145) 评论(0) 推荐(0) 编辑

2017年6月29日

C# "xxx::Invoke"类型的已垃圾回收委托进行了回调。这可能会导致应用程序崩溃、损坏或数据丢失。向非托管代码传递委托时,托管应用程序必须让这些委托保持活动状态,直到确信不会再次调用它们。

摘要: 症状描述如下: 如果将一个委托作为函数指针从托管代码封送到非托管代码,并且在对该委托进行垃圾回收后对该函数指针发出了一个回调,则将激活 callbackOnCollectedDelegate 托管调试助手 (MDA)。 原因描述如下: 从其创建函数指针并将创建的函数指针公开给非托管代码的委托已被垃圾 阅读全文

posted @ 2017-06-29 11:12 liuslayer 阅读(2168) 评论(0) 推荐(0) 编辑

第十一章 LINQ

摘要: DataLib using System; using System.Collections.Generic; namespace Wrox.ProCSharp.LINQ { [Serializable] public class Team { public Team(string name, pa 阅读全文

posted @ 2017-06-29 09:02 liuslayer 阅读(174) 评论(0) 推荐(0) 编辑

2017年6月27日

第十章 集合

摘要: BitArraySample using System; using System.Collections; using System.Collections.Specialized; using System.Text; namespace BitArraySample { class Progr 阅读全文

posted @ 2017-06-27 16:59 liuslayer 阅读(111) 评论(0) 推荐(0) 编辑

2017年6月15日

第八章 委托、lambda表达式和事件

摘要: GetAStringDemo using System; namespace Wrox.ProCSharp.Delegates { class Program { private delegate string GetAString(); static void Main() { int x = 4 阅读全文

posted @ 2017-06-15 12:56 liuslayer 阅读(183) 评论(0) 推荐(0) 编辑

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 17 下一页

导航