GDI?????

hyboss 2003-07-08 10:07:38
我用前段时间大家介绍的新工具GEL写了个很小的“浏览器”,运行后,可以下载网页,但是运行一端时间后跳出对话框"您的GDI资源已用尽,请关闭一些程序后继续"是怎么回事?是程序的问题还是GEL的问题?
GDI是什么?

代码如下:

package NetIO;
import java.io.*;
import java.net.*;
public class NetBrowser{
String urlString;
public NetBrowser(String str)throws Exception{
urlString=str;
}
public void runIt()throws Exception{
InputStream in=(new URL(urlString)).openStream();
FileOutputStream out=new FileOutputStream("haha.txt");
int c;
while((c=in.read())!=-1){
out.write(c);
}
}

public static void main(String[]args)throws Exception{
if (args.length!=1){
System.out.print("Usage: ******");
System.exit(1);
}
NetBrowser n=new NetBrowser(args[0]);
n.runIt();
}
}
...全文
68 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
hyboss 2003-07-13
  • 打赏
  • 举报
回复
up!!!!!!!!!!!!!!!!!!!!!!
hyboss 2003-07-10
  • 打赏
  • 举报
回复
怎么这么基础的帖子没有人回啊???有回的50分全部送他!!
hyboss 2003-07-09
  • 打赏
  • 举报
回复
up!

51,407

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧