windows窗体Load()方法执行完都会dispose吗? 窗体闪退,求大神分析分析啊!!! [问题点数:50分]

Bbs1
本版专家分:0
结帖率 53.85%
Bbs1
本版专家分:0
Bbs5
本版专家分:3058
Blank
GitHub 绑定GitHub第三方账户获取
Bbs7
本版专家分:12269
Blank
黄花 2006年6月 PowerBuilder大版内专家分月排行榜第二
2006年5月 PowerBuilder大版内专家分月排行榜第二
Blank
蓝花 2006年7月 PowerBuilder大版内专家分月排行榜第三
Bbs1
本版专家分:88
5Qt主窗体分析
尹成老师带你步入C++语言基础的殿堂,讲课生动风趣、深入浅出,全套视频内容充实,整个教程以C++语言为核心,完整精彩的演练了C++语言操作流程以及各种精彩的小项目等,提高竞赛能力,非常适合同学们学习!
dispose();关闭窗体问题;
我有个<em>窗体</em>A,有按钮打开<em>窗体</em>B.在A里增加了 rnchild.addWindowListener(new WindowAdapter() rn public void windowClosing (WindowEvent e) rn System.out.println("_______________");rn rn ); rn用来监听B<em>窗体</em>关闭!rnrn现在我在B<em>窗体</em>里通过 <em>dispose</em>();来关闭的时候,A<em>窗体</em>便无法捕捉到B关闭的事件了!rn如下是可以的!rn this.addWindowListener(new WindowAdapter()rn public void windowClosing(WindowEvent e)rn setDefaultCloseOperation(DISPOSE_ON_CLOSE);rn rn System.out.println("***********");rn rn );rn
大神,动态创建窗体
在点击了网页中的链接之后会触发NewWindow2Explorer函数,rn我要在void __stdcall ie_browser_dlg::NewWindow2Explorer(LPDISPATCH* ppDisp, BOOL* Cancel)函数中动态创建一个<em>窗体</em>,把网页嵌入到新建的<em>窗体</em>中,要怎么做
大神们,求分析
2012-3-27 8:40:45 org.apache.catalina.core.AprLifecycleListener initrn信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: G:\Program Files\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;G:\Program Files\Genuitec\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_8.5.0.me201003121946\tomcat\binrn2012-3-27 8:40:45 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2012-3-27 8:40:45 org.apache.catalina.startup.Catalina <em>load</em>rn信息: Initialization processed in 389 msrn2012-3-27 8:40:45 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2012-3-27 8:40:45 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.13rn2012-3-27 8:40:46 org.apache.catalina.core.ApplicationContext logrn信息: Initializing Spring root WebApplicationContextrnlog4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).rnlog4j:WARN Please initialize the log4j system properly.rn2012-3-27 8:40:47 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: java.sql.Integer, at table: U_groupMessage, for columns: [org.hibernate.mapping.Column(groupFenzId)]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1403)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:545)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:272)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:196)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: org.hibernate.MappingException: Could not determine type for: java.sql.Integer, at table: U_groupMessage, for columns: [org.hibernate.mapping.Column(groupFenzId)]rn at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:292)rn at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:276)rn at org.hibernate.mapping.Property.isValid(Property.java:207)rn at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:458)rn at org.hibernate.mapping.RootClass.validate(RootClass.java:215)rn at org.hibernate.cfg.Configuration.validate(Configuration.java:1149)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1334)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:855)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:774)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1400)rn ... 36 morern2012-3-27 8:40:47 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2012-3-27 8:40:47 org.apache.catalina.core.StandardContext startrn严重: Context [/Webschool] startup failed due to previous errorsrn2012-3-27 8:40:47 org.apache.catalina.core.ApplicationContext logrn信息: Closing Spring root WebApplicationContextrn2012-3-27 8:40:47 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2012-3-27 8:40:47 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2012-3-27 8:40:47 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/78 config=nullrn2012-3-27 8:40:47 org.apache.catalina.startup.Catalina startrn信息: Server startup in 2240 msrn 这个是什么错误啊
大神帮忙分析
数据库中有很多账单,想知道这些账单中哪两种商品的组合谁最高的应该怎么<em>分析</em>。其中这些商品都是零散的卖的
分析大神调教
//寻找半素数rnrn#pragma warning(disable :4786)rn#include rn#include rn#include rn#include rn#include rnusing namespace std; rnvector primer;rn void pr(int lower,int upper)rn rn for(int i=lower;i seprimer;rn pr(2,500000); rn for(int i=0;i>n)rnrn if( seprimer.find(n)!=seprimer.end())rn cout<<
大神帮忙分析。。
题目 ;利用正则和鼠标事件,写一个过滤HTML标签的文本域控件,如果在文本域中输入html标签,当光标一旦离开文本域,则其中所有html会自动消失。
在关闭窗体时调用Dispose方法的问题
我在一个弹出的模式窗口的OnClosing事件中调用的Dispose<em>方法</em>,因为这个子<em>窗体</em>中使用的资源比较多,还有线程调用之类的,想手动释放,我试了一下,如果不手动释放,不断的打开、关闭子<em>窗体</em>,程序的进程占用的内存只增不减,但是这个子<em>窗体</em>关闭回到母<em>窗体</em>后,母<em>窗体</em>总有一次闪烁,估计是母<em>窗体</em>重画了,不知道有什么<em>方法</em>解决,即能释放子窗口的资源,又能使母<em>窗体</em>不闪烁。rn
哪位大神帮俺分析分析啊。。。
#includernint main()rnrn int x=1,y=2,z=3;rn x+=y+=z;rn printf("%d\n",x
JVM执行方法分析
重载和重写         在java中,如果同一个类出现了多个名称相同,参数也相同的<em>方法</em>,是无法通过编译的。就是说,在同一个类中定义相同名字的<em>方法</em>,该<em>方法</em>的参数必须不同,这就叫做重载。重载<em>方法</em>在编译过程中就可以被识别。java编译器会根据所传入的参数的声明类型来选取重载<em>方法</em>。共有三个阶段 不考虑基本类型的自动装拆箱和可变长参数的情况下选;         在(1)没找到的话,允许装拆箱但不允许...
Windows窗体-方法和事件
主要包含内容:rn第一讲 课程简介rn第二讲 Windows<em>窗体</em>-创建和介绍rn第三讲 Windows<em>窗体</em>-属性rn第四讲 Windows<em>窗体</em>-<em>方法</em>和事件rn第五讲 Windows<em>窗体</em>-MDI<em>窗体</em>和子<em>窗体</em>rn第六讲 控件的相关操作rn第七讲 Label控件显示世界你好rn第八讲Button控件rn第九讲TextBox控件rn第十讲RichTextBox控件rn第十一讲ComboBox控件rn等
跳转出错啊,求大神分析一下
if (e.Row.RowType == DataControlRowType.DataRow)rn rn HyperLink hy = e.Row.Cells[7].FindControl("hyQuery") as HyperLink;rn Label Performer = e.Row.Cells[1].FindControl("Performer") as Label;rn Label SpecifiedDate = e.Row.Cells[3].FindControl("SpecifiedDate") as Label;rn Label TaskDescribe = e.Row.Cells[4].FindControl("TaskDescribe") as Label;rn Label Taskflag = e.Row.Cells[5].FindControl("Taskflag") as Label;rn if (hy != null)rn rn hy.NavigateUrl = "Taskupdate.aspx?performer=" + Performer.Text + "&specifiedDate=" + SpecifiedDate.Text + "&taskDescribe=" + TaskDescribe.Text + "&taskflag=" + Taskflag.Text;rn rn报错信息:未将对象引用设置到对象的实例。为什么啊?
数据统计 分析 求个方法大神赐教
有如下的 日志记录rn共3列数据rn 时间 设备ID IP和端口rnrn设备每分钟上报一次数据,现在想以“设备ID”为关键字,统计每天(一天一个日志,txt格式)每个设备上报数据包的情况rnrn主要目的是看看 每个设备上报数据的成功率,比如是,是否连贯(每分钟都上报),当有间隔时,把间隔时段打印出来rnrnrn现在都是用EXCEL 来统计,用肉眼看时间段,看的比较累,rnrn没做过类似的数据<em>分析</em>,大侠有啥好的想法也不吝赐教rn谢谢rnrnrnrnrnrn[code=csharp]rn2013-12-15 00:00:04,998 [1] - DevicedID: 67 IP & Port: 180.99.35.161:38845 rn2013-12-15 00:00:05,529 [1] - DevicedID: e IP & Port: 180.98.9.76:5400 rn2013-12-15 00:00:10,780 [1] - DevicedID: 3 IP & Port: 180.98.2.110:61798 rn2013-12-15 00:00:10,842 [1] - DevicedID: 66 IP & Port: 180.99.35.213:30524 rn2013-12-15 00:00:16,077 [1] - DevicedID: 2 IP & Port: 180.99.51.33:37906 rn2013-12-15 00:00:16,889 [1] - DevicedID: 1 IP & Port: 180.99.46.53:55292 rn2013-12-15 00:00:19,296 [1] - DevicedID: d IP & Port: 180.98.1.151:41236 rn2013-12-15 00:00:32,875 [1] - DevicedID: f IP & Port: 122.194.2.22:63560 rn2013-12-15 00:00:33,734 [1] - DevicedID: 4 IP & Port: 180.98.10.231:63847 rn2013-12-15 00:00:54,234 [1] - DevicedID: b IP & Port: 180.98.7.57:21278 rn2013-12-15 00:00:57,750 [1] - DevicedID: c IP & Port: 180.99.57.32:43003 rn2013-12-15 00:00:58,578 [1] - DevicedID: 5 IP & Port: 180.98.3.165:38471 rn2013-12-15 00:00:59,218 [1] - DevicedID: 67 IP & Port: 180.99.35.161:38845 rn2013-12-15 00:01:05,624 [1] - DevicedID: e IP & Port: 180.98.9.76:5400 rn2013-12-15 00:01:10,030 [1] - DevicedID: 3 IP & Port: 180.98.2.110:61798 rn2013-12-15 00:01:11,624 [1] - DevicedID: 66 IP & Port: 180.99.35.213:30524 rn2013-12-15 00:01:16,030 [1] - DevicedID: 2 IP & Port: 180.99.51.33:37906 rn2013-12-15 00:01:17,483 [1] - DevicedID: 1 IP & Port: 180.99.46.53:55292 rn2013-12-15 00:01:19,061 [1] - DevicedID: d IP & Port: 180.98.1.151:41236 rn2013-12-15 00:01:33,201 [1] - DevicedID: 4 IP & Port: 180.98.10.231:63847 rn2013-12-15 00:01:34,701 [1] - DevicedID: f IP & Port: 122.194.2.22:63560 rn2013-12-15 00:01:53,575 [1] - DevicedID: b IP & Port: 180.98.7.57:21278 rn2013-12-15 00:01:57,637 [1] - DevicedID: c IP & Port: 180.99.57.32:43003 rn2013-12-15 00:01:58,825 [1] - DevicedID: 5 IP & Port: 180.98.3.165:38471 rn2013-12-15 00:02:04,918 [1] - DevicedID: e IP & Port: 180.98.9.76:5400 rn2013-12-15 00:02:07,746 [1] - DevicedID: 67 IP & Port: 180.99.35.161:38845 rn2013-12-15 00:02:09,543 [1] - DevicedID: 3 IP & Port: 180.98.2.110:61798 rn2013-12-15 00:02:10,387 [1] - DevicedID: 66 IP & Port: 180.99.35.213:30524 rn2013-12-15 00:02:15,778 [1] - DevicedID: 2 IP & Port: 180.99.51.33:37906 rn2013-12-15 00:02:16,793 [1] - DevicedID: 1 IP & Port: 180.99.46.53:55292 rn2013-12-15 00:02:20,449 [1] - DevicedID: d IP & Port: 180.98.1.151:41236 rn2013-12-15 00:02:33,793 [1] - DevicedID: 4 IP & Port: 180.98.10.231:63847 rn2013-12-15 00:02:34,652 [1] - DevicedID: f IP & Port: 122.194.2.22:63560 rn2013-12-15 00:02:54,496 [1] - DevicedID: b IP & Port: 180.98.7.57:21278 rn2013-12-15 00:02:57,777 [1] - DevicedID: c IP & Port: 180.99.57.32:43003 rn2013-12-15 00:02:59,012 [1] - DevicedID: 5 IP & Port: 180.98.3.165:38471 rn2013-12-15 00:03:04,887 [1] - DevicedID: e IP & Port: 180.98.9.76:5400 rn2013-12-15 00:03:10,559 [1] - DevicedID: 3 IP & Port: 180.98.2.110:61798 rn2013-12-15 00:03:10,809 [1] - DevicedID: 66 IP & Port: 180.99.35.213:30524 rn2013-12-15 00:03:12,981 [1] - DevicedID: 67 IP & Port: 180.99.35.161:38845 rn2013-12-15 00:03:16,059 [1] - DevicedID: 2 IP & Port: 180.99.51.33:37906 rn[/code]
dispose()---form窗体的的释放的问题
<em>窗体</em>A类属性Xrn<em>窗体</em>B类rnrn在B类定义了一个A的对像objrn为什么我使用了obj.<em>dispose</em>()后,还可以使用obj.X?没有出现错误,数据也正确!
窗体的LOAD函数的问题
我在我的程序中发现一个奇怪的问题,我的主<em>窗体</em>当使用UNLOAD ME进行释放的时候,<em>窗体</em>并不释放,而是紧接着<em>执行</em>了一遍FORMLOAD,但是不显示出来,然后使用SHOW的时候,<em>窗体</em>并不<em>执行</em>FORMLOAD,而是直接显示,这是为什么?rn是不是跟我<em>窗体</em>载入的时候,使用了先LOAD FORM 再SHOW有关,应该怎么把这个问题调节一下,让<em>窗体</em><em>执行</em>顺序还是变成原来的,我点了LOAD FORM再载入,释放的时候不再<em>执行</em>FORMLOAD
关于窗体Load问题
我的<em>窗体</em>上有三个Chart及相对庆的三个grid,而这些都是通过复杂的运算得到的数据,用Chart 和Grid显示出来,于是在该<em>窗体</em>Load时,会很慢,且会出现花屏样的效果,请问怎么解决这样的事情,就像DX中的缓存技术有没有这样的解决办法?rnrn 谢谢各位了先,相关的资料也成:P
C#窗体的Load事件
C#<em>窗体</em>包含一个Load事件,该事件在窗口加载完毕后<em>执行</em>响应。 订阅事件 通过在设计器中双击<em>窗体</em>空白部分可以为之添加。 private void NorthChoose_Load(object sender, EventArgs e) { } 特点 该事件订阅的函数在窗口创建完成后<em>执行</em>一次。 用途 可以在与此事件定阅的函数中添加控件初...
窗体的Load事件
请问如何理解<em>窗体</em>的Load事件??什么时候触发Load事件?
如何在窗体load的时候关闭窗体
如何在<em>窗体</em><em>load</em>的时候关闭<em>窗体</em>?
窗体类的构造函数和窗体的Load事件
在<em>窗体</em>应用程序中,当我要对<em>窗体</em>类中的字段进行赋值,用上面两种<em>方法</em>有什么区别?
怎样在Load窗体中关闭窗体
初用vb,有2个<em>窗体</em>Form1 和Form2,Form1的按钮单击调用Form2rnrn按钮事件代码rnrnrnPrivate Sub cmb1_Click()rn Load Form2rn For2.show vbModalrnEnd Subrnrn下面是Form2的Load事件rnPrivate Sub Form_Load()rnrn ...此处<em>执行</em>很多代码初始化界面,想实现如果出错,就不显示这个<em>窗体</em>,现在的问题时使用 Exit sub 退出还是会显示<em>窗体</em>,使用end 会结束整个程序,使用un<em>load</em> me 报错rn rnEnd Sub
窗体的Load事件中如何关闭窗体
在<em>窗体</em>的Load事件中如何关闭<em>窗体</em>?
窗体的Load时怎么退出窗体
现在需要在<em>窗体</em>A的OnLoad事件中检查一个条件,如果条件不成立,则退出此<em>窗体</em>,但我在用rnthis.Close() 或 this.Dispose()时 <em>都会</em>出错:rn"<em>执行</em> CreateHandle() 时无法调用值 Dispose()"rn"<em>执行</em> CreateHandle() 时无法调用值 Close()"rnrnrn请问这个怎么解决,代码如下rnrn private void A_Load(object sender, EventArgs e)rn rn if(条件不成立)rn rn this.Close();rn rnrn
Strust2的配置,求大神分析
public void getFunction() throws Exceptionn String roleId=getParam("roleId");n SessionData sessionData = (SessionData) getSessionAttr(SessionData.SESSIONDATAID);n sessionData.setRoleId(roleId);n sessionData.setProjectIrb(null);n sessionData.setProjectInfo(null);n sessionData.setMeeting(null);n SysUser su=getCurrUser();n Privilege.setUserPowerList(su,roleId, session);n writeString("B.jsp");n n public String getProject() throws Exception n return SUCCESS;n n /**n * 退出系统n * @throws Exceptionn */n public void logOut() throws Exceptionn SessionData oldSessionData =getSessionData();n if(oldSessionData!=null)n session.remove(SessionData.SESSIONDATAID);n session.remove(Const.OPERATE_INFO);n request.getSession().invalidate();n n writeString(SUCCESS);n n![图片说明](https://img-ask.csdn.net/up<em>load</em>/201807/23/1532349821_777406.png)求解释里面代码<em>分析</em>
窗体如何重新加载调用load方法
在主<em>窗体</em>上打开另一个<em>窗体</em>,当另一个<em>窗体</em>关闭时,需要重新调用主<em>窗体</em>的<em>load</em>事件, 怎么做?
大神分析一下错误信息
最近在做一个安卓调用(本地websevice)!!的例子rn用的4.0的模拟器,然后出现了错误,希望<em>大神</em>帮忙解决,还有就是,如果哪位<em>大神</em>有调用本地websevice成功的例子,帮忙私信一份,谢谢(*^__^*) 嘻嘻rnrn08-03 01:22:24.809: E/DefaultVoicemailNotifier(271): No voicemails to notify about: clear the notification.rn A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.rn java.lang.Throwable: Explicit termination method 'end' not calledrn at dalvik.system.CloseGuard.open(CloseGuard.java:184)rn at java.util.zip.Inflater.(Inflater.java:82)rn at java.util.zip.ZipFile.getInputStream(ZipFile.java:270)rn at java.util.jar.JarFile.getInputStream(JarFile.java:388)rn at libcore.net.url.JarURLConnectionImpl.getInputStream(JarURLConnectionImpl.java:226)rn at java.net.URL.openStream(URL.java:462)rn at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:436)rn at java.lang.Class.getResourceAsStream(Class.java:1114)rn at com.android.i18n.phonenumbers.PhoneNumberUtil.<em>load</em>MetadataForRegionFromFile(PhoneNumberUtil.java:608)rn at com.android.i18n.phonenumbers.PhoneNumberUtil.getMetadataForRegion(PhoneNumberUtil.java:1661)rn at com.android.i18n.phonenumbers.PhoneNumberUtil.parseHelper(PhoneNumberUtil.java:2432)rn at com.android.i18n.phonenumbers.PhoneNumberUtil.parse(PhoneNumberUtil.java:2316)rn at com.android.i18n.phonenumbers.PhoneNumberUtil.parse(PhoneNumberUtil.java:2306)rn at android.telephony.PhoneNumberUtils.formatNumberToE164(PhoneNumberUtils.java:1387)rn at com.android.mms.data.Contact$ContactsCache.getContactInfoForPhoneNumber(Contact.java:809)rn at com.android.mms.data.Contact$ContactsCache.getContactInfo(Contact.java:755)rn at com.android.mms.data.Contact$ContactsCache.updateContact(Contact.java:697)rn at com.android.mms.data.Contact$ContactsCache.access$500(Contact.java:370)rn at com.android.mms.data.Contact$ContactsCache$1.run(Contact.java:570)rn at com.android.mms.data.Contact$ContactsCache.get(Contact.java:585)rn at com.android.mms.data.Contact$ContactsCache.get(Contact.java:528)rn at com.android.mms.data.Contact.get(Contact.java:161)rn at com.android.mms.data.ContactList.getByIds(ContactList.java:77)rn at com.android.mms.data.Conversation.fillFromCursor(Conversation.java:739)rn at com.android.mms.data.Conversation.(Conversation.java:116)rn at com.android.mms.data.Conversation.cacheAllThreads(Conversation.java:1042)rn at com.android.mms.data.Conversation.access$800(Conversation.java:37)rn at com.android.mms.data.Conversation$2.run(Conversation.java:908)rn at java.lang.Thread.run(Thread.java:856)rn A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.rn java.lang.Throwable: Explicit termination method 'end' not calledrn at dalvik.system.CloseGuard.open(CloseGuard.java:184)rn at java.util.zip.Inflater.(Inflater.java:82)rn at java.util.zip.ZipFile.getInputStream(ZipFile.java:270)rn at java.util.jar.JarFile.getInputStream(JarFile.java:388)rn at libcore.net.url.JarURLConnectionImpl.getInputStream(JarURLConnectionImpl.java:226)rn at java.net.URL.openStream(URL.java:462)rn at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:436)rn at java.lang.Class.getResourceAsStream(Class.java:1114)rn at com.android.i18n.phonenumbers.PhoneNumberUtil.<em>load</em>MetadataForRegionFromFile(PhoneNumberUtil.java:608)rn at com.android.i18n.phonenumbers.PhoneNumberUtil.getMetadataForRegion(PhoneNumberUtil.java:1661)rn at com.android.i18n.phonenumbers.PhoneNumberUtil.getRegionCodeForNumberFromRegionList(PhoneNumberUtil.java:1745)rn at com.android.i18n.phonenumbers.PhoneNumberUtil.getRegionCodeForNumber(PhoneNumberUtil.java:1736)rn at com.android.i18n.phonenumbers.PhoneNumberUtil.isValidNumber(PhoneNumberUtil.java:1685)rn at android.telephony.PhoneNumberUtils.formatNumberToE164(PhoneNumberUtils.java:1388)rn at com.android.mms.data.Contact$ContactsCache.getContactInfoForPhoneNumber(Contact.java:809)rn at com.android.mms.data.Contact$ContactsCache.getContactInfo(Contact.java:755)rn at com.android.mms.data.Contact$ContactsCache.updateContact(Contact.java:697)rn at com.android.mms.data.Contact$ContactsCache.access$500(Contact.java:370)rn at com.android.mms.data.Contact$ContactsCache$1.run(Contact.java:570)rn at com.android.mms.data.Contact$ContactsCache.get(Contact.java:585)rn at com.android.mms.data.Contact$ContactsCache.get(Contact.java:528)rn at com.android.mms.data.Contact.get(Contact.java:161)rn at com.android.mms.data.ContactList.getByIds(ContactList.java:77)rn at com.android.mms.data.Conversation.fillFromCursor(Conversation.java:739)rn at com.android.mms.data.Conversation.(Conversation.java:116)rn at com.android.mms.data.Conversation.cacheAllThreads(Conversation.java:1042)rn at com.android.mms.data.Conversation.access$800(Conversation.java:37)rn at com.android.mms.data.Conversation$2.run(Conversation.java:908)rn at java.lang.Thread.run(Thread.java:856)rn A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.rn java.lang.Throwable: Explicit termination method 'end' not calledrn at dalvik.system.CloseGuard.open(CloseGuard.java:184)rn at java.util.zip.Inflater.(Inflater.java:82)rn at java.util.zip.ZipFile.getInputStream(ZipFile.java:270)rn at java.util.jar.JarFile.getInputStream(JarFile.java:388)rn at libcore.net.url.JarURLConnectionImpl.getInputStream(JarURLConnectionImpl.java:226)rn at java.net.URL.openStream(URL.java:462)rn at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:436)rn at java.lang.Class.getResourceAsStream(Class.java:1114)rn at com.android.i18n.phonenumbers.PhoneNumberUtil.<em>load</em>MetadataForRegionFromFile(PhoneNumberUtil.java:608)rn at com.android.i18n.phonenumbers.PhoneNumberUtil.getMetadataForRegion(PhoneNumberUtil.java:1661)rn at com.android.i18n.phonenumbers.PhoneNumberUtil.getRegionCodeForNumberFromRegionList(PhoneNumberUtil.java:1745)rn at com.android.i18n.phonenumbers.PhoneNumberUtil.getRegionCodeForNumber(PhoneNumberUtil.java:1736)rn at com.android.i18n.phonenumbers.PhoneNumberUtil.isValidNumber(PhoneNumberUtil.java:1685)rn at android.telephony.PhoneNumberUtils.formatNumberToE164(PhoneNumberUtils.java:1388)rn at com.android.mms.data.Contact$ContactsCache.getContactInfoForPhoneNumber(Contact.java:809)rn at com.android.mms.data.Contact$ContactsCache.getContactInfo(Contact.java:755)rn at com.android.mms.data.Contact$ContactsCache.updateContact(Contact.java:697)rn at com.android.mms.data.Contact$ContactsCache.access$500(Contact.java:370)rn at com.android.mms.data.Contact$ContactsCache$1.run(Contact.java:570)rn at com.android.mms.data.Contact$ContactsCache.get(Contact.java:585)rn at com.android.mms.data.Contact$ContactsCache.get(Contact.java:528)rn at com.android.mms.data.Contact.get(Contact.java:161)rn at com.android.mms.data.ContactList.getByIds(ContactList.java:77)rn at com.android.mms.data.Conversation.fillFromCursor(Conversation.java:739)rn at com.android.mms.data.Conversation.(Conversation.java:116)rn at com.android.mms.data.Conversation.cacheAllThreads(Conversation.java:1042)rn at com.android.mms.data.Conversation.access$800(Conversation.java:37)rn at com.android.mms.data.Conversation$2.run(Conversation.java:908)rn at java.lang.Thread.run(Thread.java:856)rn problem reading network statsrn java.lang.IllegalStateException: problem parsing line: nullrn at com.android.internal.net.NetworkStatsFactory.readNetworkStatsDetail(NetworkStatsFactory.java:313)rn at com.android.server.NetworkManagementService.getNetworkStatsUidDetail(NetworkManagementService.java:1271)rn at com.android.server.net.NetworkStatsService.performPollLocked(NetworkStatsService.java:810)rn at com.android.server.net.NetworkStatsService.updateIfacesLocked(NetworkStatsService.java:721)rn at com.android.server.net.NetworkStatsService.updateIfaces(NetworkStatsService.java:699)rn at com.android.server.net.NetworkStatsService.access$000(NetworkStatsService.java:128)rn at com.android.server.net.NetworkStatsService$1.onReceive(NetworkStatsService.java:589)rn at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:728)rn at android.os.Handler.handleCallback(Handler.java:605)rn at android.os.Handler.dispatchMessage(Handler.java:92)rn at android.os.Looper.loop(Looper.java:137)rn at android.os.HandlerThread.run(HandlerThread.java:60)rn Caused by: java.io.FileNotFoundException: /proc/net/xt_qtaguid/stats: open failed: ENOENT (No such file or directory)rn at libcore.io.IoBridge.open(IoBridge.java:406)rn at java.io.FileInputStream.(FileInputStream.java:78)rn at java.io.FileReader.(FileReader.java:42)rn at com.android.internal.net.NetworkStatsFactory.readNetworkStatsDetail(NetworkStatsFactory.java:272)rn ... 11 morern Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)rn at libcore.io.Posix.open(Native Method)rn at libcore.io.BlockGuardOs.open(BlockGuardOs.java:98)rn at libcore.io.IoBridge.open(IoBridge.java:390)rn ... 14 more
EvtOpenSession函数求大神分析
原型:rn[code=c]rnEVT_HANDLE WINAPI EvtOpenSession(rn _In_ EVT_LOGIN_CLASS LoginClass,rn _In_ PVOID Login,rn _In_ DWORD Timeout,rn _In_ DWORD Flagsrn);rn[/code]rn第二个参数官方是这样说的:rnLogin [in]rnA EVT_RPC_LOGIN structure that identifies the remote computer that you want to connect to, the user's credentials, and the type of authentication to use when connecting.rnrn关于这个LOGIN结构体是:rn[code=c]rntypedef struct _EVT_RPC_LOGIN rn LPWSTR Server;rn LPWSTR User;rn LPWSTR Domain;rn LPWSTR Password;rn DWORD Flags;rn EVT_RPC_LOGIN;rn[/code]rnrn很奇怪,为什么第二个参数不直接_EVT_RPC_LOGIN Login,而用了PVOID类型?小弟尝试在C#中用了多种<em>方法</em>想实现这个函数均得不到正确的句柄,我可以确定就是第二个结构体没彻底搞正确 ,有无高手帮我猜测下在C#中怎么解决这个问题呢?谢谢rnrn小弟C#是这样定义的:rn[code=csharp]rn [DllImport("Wevtapi.dll", CharSet = CharSet.Unicode)]rn public static extern IntPtr EvtOpenSession(rn int LoginClass_EvtRpcLogin_1, //EvtRpcLogin 1rn IntPtr Login, //改成 _EVT_RPC_LOGIN 也不行rn int Timeout, //Reserved. Must be zero.rn int Flags //Reserved. Must be zero.rn );rn public struct _EVT_RPC_LOGIN //改成class也不行rn public string Server;rn public string User;rn public string Domain;rn public string Password;rn public int Flags; // _EVT_RPC_LOGIN_FLAGSrn rn[/code]rn问题原因找到了还可以多给分,非常感谢。rn
大神分析一下代码
下面小代码 linux 火狐浏览器观测代码rnpost 时产生表单数据rnx:...rny:....rnsid:..rnpwd:...rnmsk ...rnrnsid pwd msk 可以理解,但是 x,y怎样得来的,而且x y 的数据每次都不一样,求<em>大神</em><em>分析</em>下rnrn下面是主要代码rnrnfunction sid_KeyPress()rnrn if(event.keyCode=97)rn event.keyCode=event.keyCode-32rnrnfunction iform_onkeydown()rnrn if(event.keyCode==13)rn return Checkid();rnrnfunction fGetCode()rnrn document.getElementById("chkCode").src="/logon/rndnum.asp";rnrnfunction closewin()rnrn this.window.opener=null;rn window.close();rnrnrnrnrnrn rn rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrn
大神分析下C#的hook
麻烦帮忙<em>分析</em>下每一步都是做什么的,本人新手,不太懂,求详细[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/3.gif][/img]rnrnSet a mouse hookrnrnTo set a hook, call the SetWindowsHookEx function from the User32.dll file. This function installs an application-defined hook procedure in the hook chain that is associated with the hook.rnrnTo set a mouse hook and to monitor the mouse events, follow these steps:rnStart Microsoft Visual Studio .NET.rnOn the File menu, point to New, and then click Project.rnIn the New Project dialog box, click Visual C# Projects under Project Types, and then click Windows Application under Templates. In the Name box, type ThreadSpecificMouseHook. By default, a form that is named Form1 is created.rnAdd the following line of code in the Form1.cs file after the other using statements.rnusing System.Runtime.InteropServices;rnAdd following code in the Form1 class.rnpublic delegate int HookProc(int nCode, IntPtr wParam, IntPtr lParam);rnrn//Declare the hook handle as an int.rnstatic int hHook = 0;rnrn//Declare the mouse hook constant.rn//For other hook types, you can obtain these values from Winuser.h in the Microsoft SDK.rnpublic const int WH_MOUSE = 7;rnprivate System.Windows.Forms.Button button1;rnrn//Declare MouseHookProcedure as a HookProc type.rnHookProc MouseHookProcedure; rnrn//Declare the wrapper managed POINT class.rn[StructLayout(LayoutKind.Sequential)]rnpublic class POINT rnrn public int x;rn public int y;rnrnrn//Declare the wrapper managed MouseHookStruct class.rn[StructLayout(LayoutKind.Sequential)]rnpublic class MouseHookStruct rnrn public POINT pt;rn public int hwnd;rn public int wHitTestCode;rn public int dwExtraInfo;rnrnrn//This is the Import for the SetWindowsHookEx function.rn//Use this function to install a thread-specific hook.rn[DllImport("user32.dll",CharSet=CharSet.Auto,rn CallingConvention=CallingConvention.StdCall)]rnpublic static extern int SetWindowsHookEx(int idHook, HookProc lpfn, rnIntPtr hInstance, int threadId);rnrn//This is the Import for the UnhookWindowsHookEx function.rn//Call this function to uninstall the hook.rn[DllImport("user32.dll",CharSet=CharSet.Auto,rn CallingConvention=CallingConvention.StdCall)]rnpublic static extern bool UnhookWindowsHookEx(int idHook);rn rn//This is the Import for the CallNextHookEx function.rn//Use this function to pass the hook information to the next hook procedure in chain.rn[DllImport("user32.dll",CharSet=CharSet.Auto,rn CallingConvention=CallingConvention.StdCall)]rnpublic static extern int CallNextHookEx(int idHook, int nCode, rnIntPtr wParam, IntPtr lParam);rnAdd a Button control to the form, and then add the following code in the Button1_click procedure.rnprivate void button1_Click(object sender, System.EventArgs e)rnrn if(hHook == 0)rn rn // Create an instance of HookProc.rn MouseHookProcedure = new HookProc(Form1.MouseHookProc);rn rn hHook = SetWindowsHookEx(WH_MOUSE, rn MouseHookProcedure, rn (IntPtr)0,rn AppDomain.GetCurrentThreadId());rn //If the SetWindowsHookEx function fails.rn if(hHook == 0 )rn rn MessageBox.Show("SetWindowsHookEx Failed");rn return;rn rn button1.Text = "UnHook Windows Hook";rn rn elsern rn bool ret = UnhookWindowsHookEx(hHook);rn //If the UnhookWindowsHookEx function fails.rn if(ret == false )rn rn MessageBox.Show("UnhookWindowsHookEx Failed");rn return;rn rn hHook = 0;rn button1.Text = "Set Windows Hook";rn this.Text = "Mouse Hook";rn rnrnAdd the following code for the MouseHookProc function in the Form1 class.rnpublic static int MouseHookProc(int nCode, IntPtr wParam, IntPtr lParam)rnrn //Marshall the data from the callback.rn MouseHookStruct MyMouseHookStruct = (MouseHookStruct) Marshal.PtrToStructure(lParam, typeof(MouseHookStruct));rnrn if (nCode < 0)rn rn return CallNextHookEx(hHook, nCode, wParam, lParam);rn rn elsern rn //Create a string variable that shows the current mouse coordinates.rn String strCaption = "x = " + rn MyMouseHookStruct.pt.x.ToString("d") + rn " y = " + rn MyMouseHookStruct.pt.y.ToString("d");rn //You must get the active form because it is a static function.rn Form tempForm = Form.ActiveForm;rn rn //Set the caption of the form.rn tempForm.Text = strCaption;rn return CallNextHookEx(hHook, nCode, wParam, lParam); rn rnrnPress F5 to run the project. Click the button on the form to set the hook. The mouse coordinates appear on the form caption bar when the pointer moves on the form. Click the button again to remove the hook.
新人小白求大神分析
#define BUF_SIZE 0x64rn#define TRUE 1rn#define FALSE 0rnrnstruct PARMS rn int Beta;rn int EchoPower;rn int ErrorPower;rn int Ratio;rn struct PARMS *Link;rn;
分析
procedure FormShow(Sender: TObject);rn procedure IdTCPServer1Execute(AThread: TIdPeerThread);rn procedure btn_activeClick(Sender: TObject);rn procedure btn_savefilesClick(Sender: TObject);rn procedure LogInfo(const LogText: string);rn procedure DisplayData(flag:integer);rn procedure IdTCPServer1Connect(AThread: TIdPeerThread);rn procedure btn_clearClick(Sender: TObject);rn procedure FormClose(Sender: TObject; var Action: TCloseAction);rnrnrn本人以前是搞C 的现在公司叫学什么Delphi老是郁闷,大部程序还是看的懂,这种过程不清不楚的rn不知道要怎么理解,有人可以<em>分析</em>及个吗?
windows层,窗体windows层,窗体windows层,窗体
<em>windows</em>层,<em>窗体</em><em>windows</em>层,<em>窗体</em><em>windows</em>层,<em>窗体</em><em>windows</em>层,<em>窗体</em><em>windows</em>层,<em>窗体</em><em>windows</em>层,<em>窗体</em><em>windows</em>层,<em>窗体</em><em>windows</em>层,<em>窗体</em><em>windows</em>层,<em>窗体</em><em>windows</em>层,<em>窗体</em>
关于load分析
//文档状态的变化 //document是文档 //document.documentElement 是DOM树文档 document.onreadystatechange = function () { console.log(document.readyState); } /** * on<em>load</em> 属性在文档对象加载完成后触发。 * on<em>load</em> 通...
jython load 高的分析
登录到s4发现<em>load</em>很高,cpu完全是被jython占用,发现启jstack主要被三种线程占用: 1. memcached 2. perf/models.py:30,next_blog_id(),prev_blog_id()这个地方绝对有性能问题导致mysql被lock。 {code} at com.mysql.jdbc.util.ReadAheadInputStream.read(R...
JQuery中$.load()方法的用法和分析【转】
本文是介绍jquery中ajax封装的<em>load</em><em>方法</em>。
Windows窗体之间的数据交互方法
如何在两个Form间传递数据,访问修改对方<em>窗体</em>里面的值。对于有经验的程序员来说不是什么高深的东西,而对于初学者来说这些基础的东西往往是一个问题,并且存在这种现象,往往比较复杂的东西他们会,要用什么了就去学什么,实际上并没有真正的去理解掌握它,基础不扎实,所以就有了想通过自己对<em>窗体</em>编程积累的经验来写一些这方面的文章,以供学.NET的朋友参考,也借此机会同各位朋友进行交流,写得不合理的地方请各位朋友提宝贵意见,下面我分了三个部分来讲。
Windows窗体编程 MDI窗体和继承窗体
Windows<em>窗体</em>编程 MDI<em>窗体</em>和继承<em>窗体</em>
InitializeComponent()未执行完,执行load
UserControl控件中InitializeComponent()<em>执行</em> this.Load += new System.EventHandler(this.UCControl_Load);后,马上调用UCControl_Load<em>方法</em>什么原因rn
Windows窗体-MDI窗体和子窗体
主要包含内容:rn第一讲 课程简介rn第二讲 Windows<em>窗体</em>-创建和介绍rn第三讲 Windows<em>窗体</em>-属性rn第四讲 Windows<em>窗体</em>-<em>方法</em>和事件rn第五讲 Windows<em>窗体</em>-MDI<em>窗体</em>和子<em>窗体</em>rn第六讲 控件的相关操作rn第七讲 Label控件显示世界你好rn第八讲Button控件rn第九讲TextBox控件rn第十讲RichTextBox控件rn第十一讲ComboBox控件rn等
Windows窗体与WPF窗体相互调用
一.WPF<em>窗体</em>调用<em>windows</em><em>窗体</em> (一)在wpf<em>窗体</em>中,若想调用<em>windows</em><em>窗体</em>,有两种<em>方法</em>: 1.直接调用         private void btnOpenWindows2_Click(object sender, RoutedEventArgs e) { //直接调用 Form1 form1=new Form
分析管理执行理论分析
<em>分析</em>人员、管理人员或<em>执行</em>人员能够针对同一个主题,从多个角度对数据进行<em>分析</em>,从而快速、交互地得出决策支持的<em>分析</em>结论。
windows 窗体
加载子<em>窗体</em>的源码,<em>windows</em> <em>窗体</em>。
windows窗体
小弟刚刚在学<em>windows</em><em>窗体</em>这块,遇到了一个难题,当我把程序和控件等做好好,ctrl+F5运行,正常,可将界面关闭后再次运行时就会报错,说有另外一个进程在运行此程序,不知道怎么回事,将visual studio关闭后再打开,再运行,还是一样,我在任务管理器中看到有一个<em>窗体</em>名.32.exe的进程在运行,我把它结束了后再运行又正常,请问是怎么回事?
Collections.sort报错,大神分析、求答案
```rn Collections.sort(lcd1, new Comparator()rn @Overridern public int compare(CouponDto o1, CouponDto o2) rn if(o1.getCoupon().getListOrder2() > o2.getCoupon().getListOrder2())rn return -1;rn rn if(o1.getCoupon().getListOrder2() == o2.getCoupon().getListOrder2())rn return 0;rn rn return 1;rn ;rn rn );rn```rnrnrn 报Comparison method violates its general contract异常rn 改成rnrnrn```rn Collections.sort(lcd1, new Comparator()rn @Overridern public int compare(CouponDto o1, CouponDto o2) rn return -(o1.getCoupon().getListOrder2() - o2.getCoupon().getListOrder2());rn ;rn rn );rn```rnrnrn 就不再报错;rn 各位<em>大神</em>,这个是怎么回事
在Windows下的屏幕录像方法分析
1、GDI<em>方法</em>。设置与屏幕兼容的内存DC,然后截取屏幕转换为DIB。(但是Bitblt和DDBtoDIB两个函数所用的时间就是100MS左右,估计录像不到每秒30帧)rn2、API Hook,用系统全局钩子函数捕获屏幕刷新的消息,截取API参数即可知道屏幕刷新的内容(但是听说设置全局的钩子效率低,估计也达不到每秒30帧,这个我不清楚,还请高手指教)rn3、利用驱动<em>方法</em>,这个我更不清楚了,听说是在内核中完成,十分高效。rn据我了解的就这些了,想请教各位大虾 用什么<em>方法</em>录像比较好,能达到每秒30帧,而且计算量也小的,
执行eclipse.exe报错如图,请大神分析
[img=https://img-bbs.csdn.net/up<em>load</em>/201803/19/1521447550_627278.png][/img]
急求:窗体卸载方法
在vb.net中 怎么彻底的卸载一个<em>窗体</em>(子<em>窗体</em>)?rn因为没有卸载干净的话,我下一次的<em>load</em>事件不起作用。rn我用了<em>dispose</em> 也不能实现。
求做不规则窗体方法?
那种简单的设置<em>方法</em>我已经知道了,但它在监视器的颜色深度设置大于 24 位式就不行了,但现在的都是32位了,那种<em>方法</em>就行不通了,有更好的办法吗??rn调用<em>windows</em> api的<em>方法</em>也可以,请给出完整的例子!rn邮箱:zhuliiq@126.com
求透明窗体实现方法
想没想过一个拥有WS_EX_LAYERED|WS_EX_TOPMOST属性的窗口挡在了一个使用了DirectX的游戏前面的情况。屏幕会闪的厉害……什么原因?我知道一点,但不肯定。。。你们自己猜吧rnrnQQ登陆对话框四个角是透明的。但是很明显,它没有WS_EX_LAYERED属性。应该是腾讯考虑到了我说的这种情况。rn[img=http://img.my.csdn.net/up<em>load</em>s/201208/06/1344231733_9733.png][/img][img=http://img.my.csdn.net/up<em>load</em>s/201208/06/1344231733_3803.png][/img]rnrn[img=http://img.my.csdn.net/up<em>load</em>s/201208/06/1344231732_4000.png][/img]rn[img=http://img.my.csdn.net/up<em>load</em>s/201208/06/1344231732_8500.png][/img]rnrn对于桌面歌词我就更迷茫了,这两个“窗口”spy++都看不到。。这真的是窗口么?是不是直接画到屏幕上的?(不过不太可能,我经常遇到qq歌词被挡在任务栏之后的情况,如果直接画到屏幕上不应该有这种情况)rnrn
Vivado 运行RTL分析闪退
不要先打开Vivado然后在软件里面打开工程文件 应该直接在文件夹中找到工程文件双击点开运行 亲测有效
窗体load事件,请帮助
[code=csharp]rn private void RiLSettings_Load(object sender, EventArgs e)rn rn worker = new BackgroundWorker();rn worker.DoWork += worker_DoWork;rn worker.RunWorkerAsync();rn [/code]rn[code=csharp]rn void worker_DoWork(object sender, DoWorkEventArgs e)rn rn object[] obj = new object[10];rn for (int i = 0; i < 10; i++)rn rn obj[i] = yearRL ;rn rn this.Invoke(new Action(() =>rn rn comboBox1.Items.AddRange(obj);rn ));rn rn[/code]rnrnthis.Invoke这里提示 无法访问已经释放的对象,怎么解决啊?rn[img=https://img-bbs.csdn.net/up<em>load</em>/201310/23/1382540958_536578.png][/img]rn
Onpaint函数和窗体Load事件
protected override void OnPaint(PaintEventArgs e)//重载重画函数rn这里的override 是什么意思?重载函数?什么函数可以重载?rn用Onpaint在<em>窗体</em>里画图和用Load在<em>窗体</em>里画图有什么区别?rn如果都可以画图,那为什么还要有Onpaint函数?
窗体运行的时候,LOAD控件
想实现,在<em>窗体</em>运行的时候,增添控件,如何实现。rn rn Button newbutton=new Button();rn int localy=0;rn int localx=0 ;rn newbutton.Location=new Point (localy,localx); rn newbutton.Name ="wq";rn this.Controls.Add(newbutton);rn想把这段代码,先写进一个类里,之后,在<em>窗体</em>的构造函数里调用这个类,可是不行。
VSPrinter的窗体load非常慢
要4分钟以上。rn用过VSPrinter的高手,有没有碰到这样的问题?如何解决?rn我的系统可能是和别的软件有冲突,原因肯定是这个控件,但不知如何解决。查询到componentone网站上类似情况,用win doctor修复系统解决,但是我的情况修复后还不能解决。
关于窗体的LOAD与VISIBLE的疑问~~
比如说我想在程序进行到某一段时显示某个<em>窗体</em>,我把这个<em>窗体</em>的visible置为true,例如:Form1.visilbe=true,这个时候会调用到Form1.<em>load</em>函数,然后我再把他置为visible=false。rn后来我又想把他置为可见时,就不会去调用Form1.<em>load</em>函数了,为什么呢?有什么<em>方法</em>可以在我每次对Form1设置可见的时候都去调用<em>load</em>函数呢???
我想做个LOAD窗体 ?????????
一个MIS 因为程序比较大 载入时间长rnrn所以要个LOAD<em>窗体</em> 但是怎样才能知道她的进度rnrn用PROGRESSBAR表现出来呢 rn[↑]
求助:如何在一个窗体执行另一个窗体方法
请问大家,如何在一个模式<em>窗体</em>(frm2)关闭时,<em>执行</em>另一个已打开的<em>窗体</em>(frm1)的<em>方法</em>(fun1),谢谢啦。
C#递归下降分析窗体应用程序
如,输入25.6 * 14.5 + 2(即 i * i + i),则输出 E→TE’ T→FT’ F→i T’→*FT’ F→i T’→ε E’→+TE’ T→FT’ F→i T’→ε E’→ε 该程序应该为每个非终结符( E、E’、T、T’、F)分别写一个函数,写函数时,考虑first集和follow集
UCGUI窗体管理及消息处理机制分析.pdf
本文档是对UCGUI<em>窗体</em>管理及消息处理机制的详细<em>分析</em>
Android视图加载到窗体的流程分析
Android视图加载到<em>窗体</em>的流程<em>分析</em> ONE Goal ,ONE Passion ! 每天与界面打交道,也没有真正去整理过activity的界面时如何加载到<em>窗体</em>上的.扒扒代码看看系统是如何帮我们做的吧.想知道布局视图加载到手机屏幕上的流程,我们首先要从acticity中的setContentView<em>方法</em>开始<em>分析</em>.第一:<em>执行</em>activity中的setContentView().我们看一下它到底
窗体啊?????????
一个父<em>窗体</em>我用rnrnthis.enable=false;rn有一个子<em>窗体</em>是活动<em>窗体</em>。怎么通过子<em>窗体</em>把父<em>窗体</em>激活??rnrn
【恐怖】窗体的Dispose事件出错,极其诡异
<em>窗体</em>退出后出错小几率情况:这个Dispose事件的最后一句和处偶尔出错:rnprotected override void Dispose( bool disposing )rnrn...rnbase.Dispose( disposing );rnrnrn其中rnbase.Dispose( disposing );rn这行出的错误是:rn未处理的“System.ArgumentOutOfRangeException”类型的异常出现在 mscorlib.dll 中。rnrn其他信息: 索引超出范围。必须为非负值并小于集合大小。rnrn最后的大括号<em>执行</em>后出现的错误是:rn有关调用实时(JIT)调试而不是此对话框的详细信息,rn请参阅此消息的结尾。rnrn************** 异常文本 **************rnSystem.InvalidOperationException: DragDrop 注册失败。 - System.Threading.ThreadStateException: 要进行 OLE 调用,必须将当前线程设置为单线程单元(STA)模式。请确保您的 Main 函数在其上已标有 STAThreadAttribute。rn at System.Windows.Forms.Control.SetAcceptDrops(Boolean accept)rn --- 内部异常堆栈跟踪的结尾 ---rn at System.Windows.Forms.Control.SetAcceptDrops(Boolean accept)rn at System.Windows.Forms.Control.OnHandleCreated(EventArgs e)rn at System.Windows.Forms.ListView.OnHandleCreated(EventArgs e)rn at System.Windows.Forms.Control.WmCreate(Message& m)rn at System.Windows.Forms.Control.WndProc(Message& m)rn at System.Windows.Forms.ListView.WndProc(Message& m)rn at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)rn at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)rn at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)rnrn顺便:rn我的Main如下:rn[STAThread]rnstatic void Main() rnrn...rn启动Logo<em>窗体</em>等操作rn...rnApplication.Run(new frmMain());//主<em>窗体</em>的Load中会关闭Logo<em>窗体</em>rnrnrn声名:上面发生的错误并不是每次运行都出,而是偶尔出现,而且大括号的错误更少出现,但是确实有这个错误存在。rnrn我的<em>窗体</em>启动后有添加控件的操作、有启动线程,但是线程在Closing事件中已经正常结束。调试了一周了也不知道为什么(但总算找到出错的位置了),现在我实在是不知道为什么会有这个错误了。rnrn等待高手出现。
帮帮我啊:(------窗体重写 dispose 以清理组件列表的执行过程?????
'<em>窗体</em>重写 <em>dispose</em> 以清理组件列表。rnProtected Over<em>load</em>s Overrides Sub Dispose(ByVal disposing As Boolean)rn If disposing Thenrn If Not (components Is Nothing) Thenrn components.Dispose()rn End Ifrn End Ifrn MyBase.Dispose(disposing)rnEnd Subrnrn那个高手指点一下啊!它的<em>执行</em>过程是什么啊 !??????????????
求各位大神给我分析分析我现在的状况
我是搞java方面的 , 做东西的时候都是直接从网上去COPY , 然后根据需求改成自己想要的 , 工作了一年多了 , 感觉自己有些东西会了 , 但是仔细想想又觉得自己不会 , 面试问的一些基础性的东西都有点回答不上来 , 感觉自己会的东西多了 , 但都涉猎不深 ; 我想请教各位前辈我该从哪方面着手提高自己的能力?
实在是不行了,300分求正解(数据窗体分析
现在我有一个数据<em>窗体</em>,现在需要实现以下功能:rn1、将鼠标所移动(不是单击或者双击)到的数据<em>窗体</em>上的行高亮显示。rn2、同时将所选的数据<em>窗体</em>的第一个单元格内容,浮现出来rnrn其余200分,另开贴放分
怎么样控制一个方法执行完在执行另一个方法啊?
Public void A()rn B();rn C();rn D();rn rnPublic void B()rn ...rn rnrn这段代码应该怎么改rn改成<em>方法</em>A全部<em>执行</em>完后在<em>执行</em>B
windows应用程序窗体和web应用程序窗体可以链接吗?
<em>windows</em>应用程序<em>窗体</em>和web应用程序<em>窗体</em>可以链接吗?rn可以的话,怎么弄?
求 TOPK 的三种方法分析
从八大排序来说,适合求 topk 的排序有:冒泡、堆排、快排(有部分人觉得用快排左比较好,但是我不这么认为,利用快排思想求第K大是最好的,但是不太适合求前K大)冒泡(n*k):对于冒泡来说,求前k个数,只需要遍历k次即可,因此算法上有性能的提升堆排(nlogk):构造一个大小为 k 的堆,求前 k 大就构造最小堆(构造完之后,最小值如果小于当前值,则覆盖然后再调整一次堆),最前 k 小就构造最大堆(
flush闪退,求大神指点
//===========================================================================================rn //======================================= socket线程 ======================================rn //===========================================================================================rn //===========================================================================================rn //内部类 socket线程rn class SocketThread extends Threadrn rn Socket socket = null;rn private Message Msg;rn InetAddress serverAddress;rnrn BufferedReader inString;//socket输入流rn PrintWriter outString; //socket输出流rnrn String str;rn String strHead;rn String strContent;rn Integer strLen;rnrn //连接到服务器rn boolean ConnectToServer()rn rn tryrn rn socket=((AppSocket)getApplication()).getSocket();rnrn //在socket线程中 调用 主线程(UI线程)的Handler已完成至子线程向主线程发送消息rnrn inString =new BufferedReader(new InputStreamReader(socket.getInputStream(),"GBK"));rn outString=new PrintWriter(socket.getOutputStream());rnrn //向服务器发送 DL请求(请求发回大类字符串)rn outString.println("DL");rn [color=#FF6600]outString.flush();//这里不会<em>闪退</em>[/color]rn return(true);rnrnrn catch(IOException e)rn e.printStackTrace();rn return(false);rn finallyrnrn rn rn void sendMsg()rn rn outString.println("DL");rn //outString.flush();rnrn rnrn //监听服务器送来的消息rn void ListenInformationFormServer()rn rn while(true)rn rn tryrn rn str="";rn strHead="";rn strContent="";rn strLen=0;rnrn str=inString.readLine();rn //监听到消息,则发送到主线程进行消息处理rn strHead = str.substring(0,2);//从0开始,到2结束(即读取0、1两个字符)rn strLen = str.length();rn strContent=str.substring(2,strLen);//消息正本rnrn switch(strHead)rn rn case "DL":rn rn StockHandler.sendMessage(StockHandler.obtainMessage(0,strContent) );rn break;rn rn case "MC":rn rn StockHandler.sendMessage(StockHandler.obtainMessage(1,strContent) );rn break;rn rn case "DG":rn rn StockHandler.sendMessage(StockHandler.obtainMessage(2,strContent) );rn break;rn rn case "KC":rn rn //strContent = strContent.replace("@","\n");rn StockHandler.sendMessage(StockHandler.obtainMessage(3,strContent) );rn break;rn rn default:rn rnrn rn rnrn catch(IOException e)rn e.printStackTrace();rn //try rn //socket.close();rn //inString.close();rn //outString.close();rn //catch(IOException f)rn // f.printStackTrace();rn //rnrn finallyrn rn rn rnrn //子线程入口rn public void run()rn rn if (ConnectToServer())//连接到服务器rn rn ListenInformationFormServer(); //监听服务器消息rn rn elsern rnrn rn rnrn //子线程Handler消息处理 UI线程调用该Handler以完成UI线程向子线程发送消息rn public Handler socketHandler = new Handler()rn rn public void handleMessage(Message Msg)rn rn switch (Msg.what)rn rn case 0://Activity onDestroyrn rn tryrn rn socket.close();rn inString.close();rn outString.close();rn catch(IOException e)rn e.printStackTrace();rn rn break;rn rn case 1://socket.outrn rn outString.println(Msg.obj.toString());rn [color=#FF6600]outString.flush();//这里<em>闪退</em>[/color]rn break;rn rn default:rn rnrn rn rn rnrn ;rnrnrn[color=#FF6600]<em>闪退</em>的地方是在主线程里面这么引用的rnsocketThread.socketHandler.sendMessage(message);[/color]rnrn弱弱的再问下主线程中往子线程handler里面送消息,这种写法对不对,rn还是直接在子线程中写一个socket输出流发送消息的函数,然后在主线程中调用就可以rn(这种写法我试了到flush那一步还是<em>闪退</em>)?rnrnVB业余程序员初学java做安卓开发,跪求<em>大神</em>指点。rn这个代码在安卓4.0还是5.0的一台手机上是没问题的,现在这部7.0就不行了
windows下常见的提权方法分析(求给方法名字就行了)
我最近有个网络攻防的大作业,名字是《<em>windows</em>下常见的提权<em>方法</em><em>分析</em>》,别的条件什么的都没说,就只有个题目,因为我并不是学网络安全方面的东西的,怕自己的思路错了,提交上去要重做,所以来问下。rn我的思路是:自己搭一个服务器,然后在iis弄个网站,利用上传漏洞传个webshell,之后对webshell提权,我想的就是这样。但在我做实验的时候我老是觉得是不是我想错了。。(可能是我不会做胡思乱想吧)rn另外,求一下<em>windows</em>下常见的提权<em>方法</em>有哪些,老师只是讲了两节网络安全的科普课而已,或者推荐一下什么书也行,谢谢大家了rn
web窗体怎样跳转到windows窗体啊?
web<em>窗体</em>怎样跳转到<em>windows</em><em>窗体</em>啊?
大神帮忙解答C#窗体设计问题。
using System;rnusing System.Collections.Generic;rnusing System.ComponentModel;rnusing System.Data;rnusing System.Drawing;rnusing System.Linq;rnusing System.Text;rnusing System.Windows.Forms;rnrnnamespace c井调试rnrn public partial class Form1 : Formrn rn public Form1()rn rn InitializeComponent();rn rnrn private void button1_Click(object sender, EventArgs e)rn rn float i = 1, a = 2, b = 1, an, sn = 2;rn float n = Convert.ToInt32(textBox1.Text);rn rn while (i <= n)rn rn a = a + b;rn b = a - b;rn an = a / b;rn sn = an + sn;rn i = i++;rn rn textBox2.Text = sn.ToString();rn rn rn rnrnrnrn代码如上,运行之后点击button立马卡死,不知道什么原因,求解啊,谢谢了。
问题窗体与用户控件传值的问题,求大神
假设有一个用户控件,在主<em>窗体</em>中已经循环实例化多个,用户控件内有一个textbox,点击父<em>窗体</em>的BUTTON时,改变任意一个想要的用户控件内textbox的值。。。rnrn想说用委托的,控件传值给主<em>窗体</em>没问题,但用户控件内没法controls.add,所以完成不了事件的注册。。。rnrn求指点。。。。。。
大神指教,拖动无边框窗体
我按照网上查找的代码写进去后,为什么还是不能实现拖动?
窗体的事件和窗体的消息谁先执行
RT,比如在我的Form1.cs中写了一个<em>窗体</em>的click事件,但是还有一个验证点击[X]时退出的消息函数,请问当<em>执行</em>的时候是先<em>执行</em>那个一函数?
Dispose()方法,求高手解释
我在自定义控件里面用Dispose()<em>方法</em>的时候,可以用override作修饰符,但是看这个ListView类里面并没有Dispose的虚<em>方法</em>,实在不解,求高手解释下机制是怎么搞的。rnrn[code=csharp]rn [ToolboxBitmap(typeof(ListView)), ToolboxItem(true)]rn public class CListView : ListViewrn rn protected override void Dispose(bool disposing)rn rn if (disposing && (this.components != null))rn rn this.components.Dispose();rn rn base.Dispose(disposing);rn rn[/code]
tomcat启动报错,大神们帮忙分析分析
严重: Error configuring application listener of class org.springframework.web.context.request.RequestContextListenernjava.lang.ClassNotFoundException: org.springframework.web.context.request.RequestContextListenern at org.apache.catalina.<em>load</em>er.WebappClassLoaderBase.<em>load</em>Class(WebappClassLoaderBase.java:1892)n at org.apache.catalina.<em>load</em>er.WebappClassLoaderBase.<em>load</em>Class(WebappClassLoaderBase.java:1735)n at org.apache.catalina.core.DefaultInstanceManager.<em>load</em>Class(DefaultInstanceManager.java:495)n at org.apache.catalina.core.DefaultInstanceManager.<em>load</em>ClassMaybePrivileged(DefaultInstanceManager.java:477)n at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:113)n at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5034)n at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634)n at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)n at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)n at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)n at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)n at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1260)n at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2002)n at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)n at java.util.concurrent.FutureTask.run(FutureTask.java:262)n at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)n at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)n at java.lang.Thread.run(Thread.java:745)
大神指点啊,报文分析,制作pccap文件的问题
请问一下,现在知道一个报文的十六进制文件,如下图,只知道红色括号内的报文(也就是从以太头一直到pay<em>load</em>),要自己制作pcap文件,请问怎么设置pcap文件格式中的,数据头(pcap_pkthdr)中的长度呢?caplen,lennn![图片说明](https://img-ask.csdn.net/up<em>load</em>/201508/12/1439354773_827978.png)nn
哪位大神帮忙分析
select AKB020,AKC190,AKC220,AAE072,AKC515,AKA135,AAC001,AKC516,AKC221,AAE040,AKC222,AKC223,AKA063,AKA065,AKC224,AKA113,AKC225,AKC226,AKC227,AKC228,AKC334,AKA068,AKC253,AKA069,AAE073,AKA064,AKA070,AKA097,AKC229,AKA071,AKA072,AKC202,AKA073,AKA076,AKC201,AKC325,AKC125,AAE100,AKC301,AKC127,AKC347,AKC384,AKC378,AKC379,AKC380,AKC381,AKC382,AKC383,AAE011,AAE036,OAE001,OAE300,OAE301,AKA609,AKC319,AKC163,AKA231,BKC228,AKA163 from kc22 where akb020 = :"SYS_B_0"and akc190 = :"SYS_B_1" and aae100 = :"SYS_B_2"rnrnrn在pl/sql中秒出结果,在程序中死活通不过。
【Java分析】String.split()方法分析,与trim()方法
String.split()<em>方法</em>,返回的是一个数组 测试代码: public class Split { public static void main(String[] args) { String str = new String("111 22 33"); //空格后面的空格会成为一个空集合 System.out.printl...
求助大神帮忙分析
本人刚入行php。最近公司要求做一个后台页面,也就增删改查的任务。所有功能在本地电脑上都可以实现使用。发布到外网上后发现删除和修改功能有问题。本地差不出错在哪里。有<em>大神</em>能帮我<em>分析</em>下原因吗。数据库看过了,字段名都相同。
继承窗体怎么取消执行继承的方法
delphi里面有一个inherited,只要将这个代码删除就能做到不继承<em>窗体</em>的继承下来<em>方法</em>!rnrn但是C++ B里面并没有这类型的代码!rnrn请问在CB里面怎么取消<em>执行</em>继承下来的<em>方法</em>?
求帮助,帮忙分析分析
1、系统功能的基本要求:rn(1) 员工各种信息的输入,包括员工的基本信息、学历信息、婚姻状况信息、职称等。rn(2) 员工各种信息的修改;rn(3) 对于转出、辞职、辞退、退休员工信息的删除;rn(4) 按照一定的条件,查询、统计符合条件的员工信息;至少应该包括每个员工详细信息的查询、按婚姻状况查询、按学历查询、按工作岗位查询等,至少应该包括按学历、婚姻状况、岗位、参加工作时间等统计各自的员工信息;rn(5) 对查询、统计的结果打印输出。rn2、数据库要求:在数据库中至少应该包含下列数据表:rn(1) 员工基本信息表;rn(2) 员工婚姻情况表,反映员工的配偶信息;rn(3) 员工学历信息表,反映员工的学历、专业、毕业时间、学校、外语情况等;rn(4) 企业工作岗位表;rn(5) 企业部门信息表。rnrn我是一名学生,以上是作业要求,求各位<em>大神</em>帮忙<em>分析</em><em>分析</em>,一点头绪都,没有啊,老师要求做成Android客户端访问服务器来实现。
大神帮忙分析实体关系图
一道美国的ER图题 求<em>大神</em>帮忙<em>分析</em>各个实体关系rnSA flies between 75 airports in the US. Each airport is known by a unique 3-letter code, and the city and state where it is located. All SA flights are direct, i.e. from one airport to another with no stops. For each departure date SA assigns a unique flight number for every flight. The flight schedule is updated monthly for the next 6 months. Each flight has a scheduled departure date and time, and an arrival date and time. (Assume that departure and arrival dates and times are based on the time zone of the departure and arrival location.) A specific SA airplane is assigned to each flight for each departure date.rnEach SA airplane is assigned a unique ID number, in addition to the manufacturer, model number and the number of seats. For the airplanes owned by SA, they know the date it was put into service and whether it was new or used when purchased. For the airplanes that are leased by SA, they know the date the lease began and the length of the lease, e.g. 24 months. SA currently leases planes from 8 different companies, each known by a unique ID number and name.rnSA compiles a list of available routes for each departure date. Each route, known by a unique route number, is from one airport to another and involves one or more flights, e.g. to fly from PDX (Portland, OR) to DAL (Dallas, TX) on Wednesday, November 12, 2014: Route 1 is Flight 123 from PDX to DAL, Route 2 is Flight 456 from PDX to SFO and Flight 789 from SFO to DAL, with all flights departing on the same date.rnSA offers two fare classes – Class 1 is refundable and Class 2 is non-refundable. Each fare class on each route/departure date has a fare (cost for flying the route) and the number of Frequent Flyer points earned by each passenger who belongs to SA’s Frequent Flyer program. To join the Frequent Flyer program, passengers must provide their name and address (street, city, state, ZIP).rnAnyone can make a reservation using SA’s web site. Each reservation is assigned a unique ID number, the date it was made and the total cost for the reservation. Each reservation is for one or more legs, with each leg for a specific route, departure date and fare class. The SA web site only shows the routes for each leg that have the required number of seats available. The number of seats available for each flight is updated once a reservation is made. It is possible for one reservation to include 2 or more legs on the same date e.g. PDX to DAL in the morning and DAL to PDX in the evening. Each reservation is for one or more passengers provided that the itinerary is identical for each passenger, i.e. each passenger has the same route/departure date and fare class for each leg of their trip.rnEach passenger has a name, gender and birthdate, and a Frequent Flyer ID # if they belong to SA’s Frequent Flyer program. The cost for each leg is based on the route/date and the fare class times the number of passengers. The cost for the reservation is the sum of the cost for each leg. A passenger’s number of available Frequent Flyer points is updated when all of the legs of the reservation have been completed.rn求<em>大神</em>帮忙 在下感激不尽
大神分析一段Linux进程的小代码
[size=14px]看第一次输入rn[img=https://img-bbs.csdn.net/up<em>load</em>/201311/19/1384849023_371985.png][/img] ,感觉定时器已经打破了pause函数造成的挂起状态,然而为啥一下子输出rn“Would you want to quit? alarm!alarm! //①rn Would you want to quit?”rn然后五秒后又出现定时信号的处理信息:alarm!alarm!rn①处的,那个getchar(),根本没有接受字符啊!! 而且为何那三句是同时出现!!![/size]rnrn#includern#includern#includern#includern#includernvoid handle(int signal)rnrnswitch(signal)rnrn case SIGALRM:rn printf("alarm! alarm! \a\a\a\a\a\a\a\n");break;rn case SIGABRT:rn printf("inabnormally quit!\n");break;rn case SIGINT:rn printf("Catch Signal : %d\n",signal);break;rnrnrnrnint main()rnrnprintf("Current process ID is: %d\n",getpid());rnsignal(SIGINT,handle);rnsignal(SIGALRM,handle);rnsignal(SIGABRT,handle);rnint time=5;rnwhile(1)rnrnalarm(time);rnprintf("would want to quit ?");rnif(getchar()=='y') abort();rnelse pause();rn;rnreturn 0;rn
大神分析kernel中的parse_cmdline函数
求<em>大神</em><em>分析</em>kernel中的parse_cmdline函数,rnfrom 指向了string "root=/dev/hda1 ro init=/bin/bash console=ttySAC0".rn在内核中early_params结构有这么一些:rnMmu.c (arch\arm\mm):__early_param("cachepolicy=", early_cachepolicy);rnMmu.c (arch\arm\mm):__early_param("nocache", early_nocache);rnMmu.c (arch\arm\mm):__early_param("nowb", early_nowrite);rnMmu.c (arch\arm\mm):__early_param("ecc=", early_ecc);rnSetup.c (arch\arm\kernel):__early_param("initrd=", early_initrd);rnSetup.c (arch\arm\kernel):__early_param("mem=", early_mem);rn问题:rn1. (memcmp(from, p->arg, len) == 0)这一部分,现在在所有的__early_param结构中不能匹配from 指向的string "root=/dev/hda1 ro init=/bin/bash console=ttySAC0"中的一个,这个是为什么?rn2. 如果在内核中定义了某一个能匹配"root=/dev/hda1 ro init=/bin/bash console=ttySAC0"中的一个,比如匹配console=,貌似也不能比较出来,因为from始终是指向那个字符串的开始,这是为什么?rn3. extern struct early_params __early_begin, __early_end; 这个 __early_begin, __early_end只是上面那些结构的所在区域的开始和结束地址,在内核中没有看到这两个被定义为early_params类型的结构,这是为什么?rn倾家荡产来提问,求精通kernel高手解答,谢谢!rn[code=c]static void __init parse_cmdline(char **cmdline_p, char *from)rnrn char c = ' ', *to = command_line;rn int len = 0;rnrn for (;;) rn if (c == ' ') rn extern struct early_params __early_begin, __early_end;rn struct early_params *p;rn//,from points to string "root=/dev/hda1 ro init=/bin/bash console=ttySAC0".rn for (p = &__early_begin; p < &__early_end; p++) rn int len = strlen(p->arg);rn //,memcmp() returns 0 if the contents of two memory blocks are the same completely.rn if (memcmp(from, p->arg, len) == 0) rn if (to != command_line)rn to -= 1;rn from += len;rn p->fn(&from);rnrn while (*from != ' ' && *from != '\0')rn from++;rn break;rn rn rn rn c = *from++;rn if (!c)rn break;rn if (COMMAND_LINE_SIZE ;rn *cmdline_p = command_line;rnrn[/code]
真心求助,求大神帮我分析
我是一个C#初学者,没有什么基础,可以说是完全没有,现在正在学习C#编程,想主要做后台系统以及处理逻辑方面,以及<em>windows</em>from,但是我现在遇到很大的问题,完全不知道从哪里下手,往往写了一句代码后就不知道后面一句代码是什么,就好比Console.ReadLine()一样,往往我就知道前面是Console 而不知道后面到底是什么,这是对代码不熟悉吗?是因为写的太少了吗?网上很多人说,学习编程最重要的是编程的思想,到目前为止,我能理解的编程思想就是,无论是用什么不管是C#还是JAVA,C#中怎么写的JAVA里面就怎么写不同的只是个别的代码不一样,逻辑思维什么都是一个道理,这个是指什么?是指在做一个项目或者什么的时候,都先给自己将要做的定一个框架吗?就是想好到底怎么开始写,第一步做什么,第二步做什么,是这样的吧?对于面向对象?这个问题我理解着就更纠结,面向对象是什么?面向对象过程又是什么?真心想学好,但是就是找不到方向,学习的时候也不知道从什么开始,不知道看哪一本书或者什么样的视频来引导自己,我师傅说,我思想奇葩,早晚会走火入魔,自己把自己逼疯。希望这里的各位哥哥姐姐能帮帮我,到底该怎么做,多看书?还是多练习?找网上的实例来照着做?看书的话看哪样的书才好?入门经典?《C#入门经典 第三版》 这个书适合我现在看吗?谢谢各位能帮帮我吗?
大神帮助分析逻辑循环问题
我用winform实现一个ping IP地址的问题,假设ping10次有超过5次错误 就发送邮件 rnrn但是 我写的程序的是错误超过5次(包括第5次)就发送邮件 第6次,第7次也会发送 rnrn超过10次 要重新记为0 这段写的老报错 求<em>大神</em>指点rnrn Ping ping = new Ping();rn PingReply pingReply = ping.Send(IP);rn if (pingReply.Status == IPStatus.Success)rn rn listBox1.Items.Add("成功");rn rn elsern rn listBox1.Items.Add("错误");rn i++;rn if (i > 5)rn rn //发送邮件rn rn
大神帮忙分析以下代码的效率
代码1:rn[code=c]#includern#includernusing namespace std;rnint main()rnrn string A,B;rn getline(cin,A);rn getline(cin,B); rn for(int i=0;irn#includernusing namespace std;rnint main()rnrn string A,B;rn int t,index=0;rn getline(cin,A);rn getline(cin,B); rn for(int i=0;i
疑惑,求大神分析下这个程序的运行结果!
源代码:rnrn#include rnvoid up_and_down(int);rnrnint main(void)rnrn up_and_down(1);rn return 0;rnrnrnvoid up_and_down(int n)rnrn printf("Level %d: n location %p\n", n, &n); /* 1 */rn if (n < 4)rn up_and_down(n+1);rn printf("LEVEL %d: n location %p\n", n, &n); /* 2 */rnrnrn我认为运行结果因该是:rnLevel 1: n location 0xbfed0f30rnLevel 2: n location 0xbfed0f10rnLevel 3: n location 0xbfed0ef0rnLevel 4: n location 0xbfed0ed0rnLEVEL 4: n location 0xbfed0ed0rn而正确的运行结果偏偏是:rnLevel 1: n location 0xbfed0f30rnLevel 2: n location 0xbfed0f10rnLevel 3: n location 0xbfed0ef0rnLevel 4: n location 0xbfed0ed0rnLEVEL 4: n location 0xbfed0ed0rnLEVEL 3: n location 0xbfed0ef0 rnLEVEL 2: n location 0xbfed0f10rnLEVEL 1: n location 0xbfed0f30rnrn求解!rnrn
一个C语言需求,求大神分析
读文件,一行一行的读,都读到一行有error这个关键字,就把这行的上下2行都pintf打印出来rnwhile(读一行)rn if(error)rn printf(这一行和这行的上下2行)rn rnrnrn如:内容rnrn1aaaaaaaaaaaaaaaaaaaaarn2bbbbbbbbbbbbbbbbbbbbbrn3cccccccccccccccccccccrn4ddddddddddddddddddddd errorrn5eeeeeeeeeeeeeeeeeeeeern6ffffffffffffffffffffff rn7ggggggggggggggggggggggrn8hhhhhhhhhhhhhhhhhhhhhhhrn9iiiiiiiiiiiiiiiiiiiiiiiirnrn要求打印结果:rn2bbbbbbbbbbbbbbbbbbbbbrn3cccccccccccccccccccccrn4ddddddddddddddddddddd errorrn5eeeeeeeeeeeeeeeeeeeeern6ffffffffffffffffffffff rnrn
全局变量m_pMainWnd引起内存泄露,求大神分析!!!!!
用MFC做个东西, 但是在 DialogApp中InitInstance()中定义了一个指针pMainFrame 并把它赋给了全局变量m_pMainWnd 但是在ExitInstance()中销毁的时候出现了内存泄露rn跟着发现, this->m_pMainWnd = pMainFrame; 这句确实把pMainFrame 赋值给了m_pMainWnd了rn查到这两个指针所指向的地址都是 0x0005e3brn然后用完之后我想在ExitInstance()中通过判断m_pMainFrame来销毁pMainFrame这个指针, 但是判断时rnm_pMainWnd 指针就已经为空了,所以程序没有进入if程序体 直接跳走了, 导致pMainFrame这个指针没有销毁 从而造成内存泄露, 提示泄露地址就是PMainFrame的地址:0x0005e3brn关键代码如下:rnrnBOOL CDialogApp::InitInstance()rnrn [color=#FF0000] CMainFrame* pMainFrame = new CMainFrame();[/color] rn ………………rn [color=#FF0000] this->m_pMainWnd = pMainFrame;[/color] CWnd* nptr = AfxGetApp()->m_pMainWnd;rnrn ………… rn rn return TRUE;rnrnrnint CDialogApp::ExitInstance()rnrn // TODO: 在此添加专用代码和/或调用基类rn [color=#FF0000]if(m_pMainWnd)[/color] rn delete(CMainFrame*)m_pMainWnd;rn rn return CWinApp::ExitInstance();rnrnrnrn不是把pMainWnd 赋值给了m_pMainWnd 了, 但是在ExitInstance中判断时, 怎么m_pMainWnd 就为NULL 了呢? 那pMainWnd指针还没有销毁啊rnrn这个到底是怎么回事呢? rn窗口关闭后,m_pMainWnd 这个指针的销毁过程是怎么样的呢?
大神分析这一小段代码作用
commonDictionarySplit = function(b, h, c) rn "undefined" == typeof h && (h = "&");rn "undefined" == typeof c && (c = "");rn var d = RegExp("^" + c + "|" + c + "$", "g");rn if ("string" == typeof b) rn for (var b = b.split(c + h), c = ,rn m = 0, q = b.length; m < q; m++) h = b[m].split("="),rn 1 < h.length ? c[h[0]] = h.slice(1).join("=").replace(d, "") : c[b[m]] = !0;rn return crn rn return rn ;rn splitHttpParamString = function(b) rn return commonDictionarySplit(b, "&")rn ;
Linux 常用字体下载
simhei.ttf simyou.ttf tahoma.ttf verdana.ttf simsun.ttc tahomabd.ttf verdanab.ttf等7款字体 相关下载链接:[url=//download.csdn.net/download/ghost528/2672325?utm_source=bbsseo]//download.csdn.net/download/ghost528/2672325?utm_source=bbsseo[/url]
CAD图表转EXCEL下载
CAD表格转成EXCEL表格。很实用很强大。 说明:如果CAD表格是块的话,需要分解2次,如果不是需要分解1次才可以正常转换 转换后需核对个人觉得99%的识别率 相关下载链接:[url=//download.csdn.net/download/zlg201000/3219578?utm_source=bbsseo]//download.csdn.net/download/zlg201000/3219578?utm_source=bbsseo[/url]
RealVNC4.2.9+注册机+汉化补丁下载
VNC Enterprise Edition for Windows 是工业标准 VNC 的一个增强版本, 提供了核心的 Enterprise Edition 安全增强,包括 2048 位 RSA 服务器验证 和 128 位 AES 会话加密术,加上为 Windows 网络量身定做的许多其他的特性。 . Windows 验证 —— 允许访问 VNC 服务器以便控制基于标准的 Windows 用户证书, 无论其是本地的、NT 域或者基于 Active Directory。 . 单一登录 —— 允许在一个域内部访问 VNC 服务器而不需要重新输入用户的名称和口令。 相关下载链接:[url=//download.csdn.net/download/weizhong1121/3807966?utm_source=bbsseo]//download.csdn.net/download/weizhong1121/3807966?utm_source=bbsseo[/url]
我们是很有底线的