最近在做mono 3.10针对socket性能方面的测试,在想对压力比较高的情况下发现了mono的一个bug会导致程序引发未知异常从而导致程序结束的严重问题. 错误信息 Unhandled Exception:
System.InvalidOpera...
分类:
其他好文 时间:
2014-10-07 00:36:32
阅读次数:
405
public static boolean includingNUM(String str)throws Exception{Pattern p = Pattern.compile("[\u4e00-\u9fa5]*[\\d|\\w]+[\u4e00-\u9fa5]*");//或者 Pattern ...
分类:
编程语言 时间:
2014-10-06 23:11:51
阅读次数:
262
缺少X11显示设置Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation.....
分类:
系统相关 时间:
2014-10-06 17:19:30
阅读次数:
528
Java包含两种异常:checked异常和unchecked异常。C#只有unchecked异常。checked和unchecked异常之间的区别是:Checked异常必须被显式地捕获或者传递,如Basic try-catch-finally Exception Handling一文中所说。而unc...
分类:
编程语言 时间:
2014-10-06 00:50:49
阅读次数:
384
1Paint() 1 package hello; 2 import java.awt.*; 3 public class helloworld 4 { 5 public static void main(String[] args)throws Exception 6 { 7 ...
分类:
其他好文 时间:
2014-10-05 22:47:39
阅读次数:
287
代码如下: 1 #ifndef QUEUE_H 2 #define QUEUE_H 3 #include "Exception.h" 4 #include 5 6 class EmptyQueueException : public Exception 7 { 8 public:...
分类:
其他好文 时间:
2014-10-05 22:31:59
阅读次数:
346
下面这段代码的执行结果是怎样的呢?
[java] view
plaincopyprint?
publc int test(){
int x;
try{
x = 1;
return x;
}catch(Exception e){
x = 2;...
分类:
编程语言 时间:
2014-10-05 21:16:49
阅读次数:
237
Exception.h 1 #ifndef EXCEPTION_H 2 #define EXCEPTION_H 3 #include 4 #include 5 6 7 class Exception : public std::exception 8 { 9 public:10 ex...
分类:
其他好文 时间:
2014-10-05 20:29:08
阅读次数:
172