04 2014 档案

MarketServer 日志
摘要:2014.04.29 1. 发现有时候会跳出 Exception Infomations: 用户异常信息:Socket未连接 跟踪后发现的一次情况是: 服务器根据客户端请求从后台读取数据后,写数据到客户端时,客户端已经关闭连接,所以在_Write时,直接返回了ErrorO... 阅读全文

posted @ 2014-04-29 14:40 norsd 阅读(127) 评论(0) 推荐(0) 编辑

WPF 设置 Label.MouseDoubleClickEvent
摘要:facLabel.AddHandler(Label.MouseDoubleClickEvent, new MouseButtonEventHandler((o, a) => { facLabel.SetValue(Label.Visibili... 阅读全文

posted @ 2014-04-24 19:32 norsd 阅读(508) 评论(0) 推荐(0) 编辑

WPF 中如何使得DataGrid的Column有鼠标点击相应
摘要:http://stackoverflow.com/questions/5895803/how-do-i-capture-click-events-on-a-datagrid-column-headers The headers are just buttons. Like an... 阅读全文

posted @ 2014-04-24 19:16 norsd 阅读(840) 评论(0) 推荐(0) 编辑

VC++11 编译中的一些问题的解决办法
摘要:1. vc++ 的编译器的错误往往定位在错误的那一处,但是那一处可能在库的底层,而我们知道库,一般都不会错。 这时候应该好好看看我们自己的头文件是否正确,有可能头文件中的一些错误引发了连锁反应。 2. 头文件不要忘了写 std::vector 而写成了 vector 阅读全文

posted @ 2014-04-20 17:40 norsd 阅读(148) 评论(0) 推荐(0) 编辑

MongoDb Samus 驱动的改进
摘要:一直使用 MongoDb 的 Samus C#驱动。 其有一个缺陷,就是无法支持struct的读写。 但是一般数据都用Class包装,所以也没有太在意。 随着这些天尝试写入 KLineData 时,遇到了非常龌龊的问题。 KLineData这个Class内部有一个TICK[4] 这样一个数组,T... 阅读全文

posted @ 2014-04-18 17:53 norsd 阅读(225) 评论(0) 推荐(0) 编辑

mongodb c# 序列化时 , Id引起的问题
摘要:1. c# 序列化时,如果没有指名_id , 如果class,struct有MemberName为 Id ,_id , 则自动识别为Id . 如果此时,这个"Id"是只读属性,就会引发异常。 2. 同样的,如果指名一个Member,此Member如果也是只读,则同样引发异... 阅读全文

posted @ 2014-04-15 21:58 norsd 阅读(492) 评论(0) 推荐(0) 编辑

NDAP 日志
摘要:2014.04.29 1.理论债券价格CalculateExpetedBondPrice计算有误差 CalculateLibrary中的计算理论债券价格(计算理论期货价格的反函数)和正确结果有误差(可以通过反函数演算) , 经过查验,发现最后算出理论债券全价后,减去的利息错误, 当时... 阅读全文

posted @ 2014-04-15 13:58 norsd 阅读(251) 评论(0) 推荐(0) 编辑

C# interface 的特性 无法被implement class继承
摘要:最近做interface添加特性后,implement class 无法继承。 微软要求class是实现Interface而不是继承,所以我们必须手动添加特性,而不能自动继承。 对于abstract class中的特性,derived class 自动继承父类的特性 阅读全文

posted @ 2014-04-15 00:21 norsd 阅读(293) 评论(0) 推荐(0) 编辑

mongodb 由于计算机死机造成的无法启动故障
摘要:一次计算机死机,重启后,mongodb无法启动,log显示: exception in initAndListen: 12596 old lock file, terminatingSun Mar 30 20:16:14.619 dbexit: Sun Mar 30 20:16:14.619 [... 阅读全文

posted @ 2014-04-15 00:19 norsd 阅读(297) 评论(0) 推荐(0) 编辑

WindApi2 , WindOriginalApiLibrary 突然不兼容问题
摘要:1. 在新的电脑上从tfs拉下代码后编译, windoriginalapilibrary 这个工程弹出对话框,要求转为vs2013编译,选择同意,编译成功 2.WindApi2 的Reference列表中 WindOriginalApiLibrary 这个工程突然显示 黄色感叹号,同时无法编... 阅读全文

posted @ 2014-04-06 00:39 norsd 阅读(175) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示