窗口关闭时报错:System Error Code 1400. 无效的窗口句柄 [问题点数:50分,结帖人jshang]

Bbs2
本版专家分:194
结帖率 100%
Bbs6
本版专家分:9968
gpg
Bbs1
本版专家分:94
Bbs7
本版专家分:28613
Blank
红花 2010年6月 Delphi大版内专家分月排行榜第一
Blank
蓝花 2010年9月 Delphi大版内专家分月排行榜第三
2010年8月 Delphi大版内专家分月排行榜第三
2010年5月 Delphi大版内专家分月排行榜第三
Bbs5
本版专家分:3125
Bbs3
本版专家分:787
Bbs4
本版专家分:1243
Bbs1
本版专家分:54
Bbs5
本版专家分:3209
请教,C++ Builder 提示“system errorcode:1400,无效窗口句柄”如何解决??
各位高手,请教一下,现在程序中添加一个线程,用来采集数据和更新数据库,更新Image,线程结束后,点击Button3执行Form3->Show();就会弹出“<em>system</em> <em>error</em>,<em>code</em>:1400,<em>无效</em>的<em>窗口</em>句柄”,但如果在执行结束前,点击过Button3执行Form3->Show();就不会出错,请问各位是什么问题呀?谢谢!rnrn代码如下:rnvoid __fastcall TForm_Main::Button3(TObject *Sender)rnrn Form3->Show();rnrn__fastcall TRecordThread::TRecordThread(bool CreateSuspended)rn : TThread(CreateSuspended)rnrn //定义线程优先级rn Priority=tpHigher;rnrn FreeOnTerminate=false;rnrn//自定义线程函数——TRecordThreadrnvoid __fastcall TRecordThread::Execute()rnrn cs->Acquire();rnrn while(Terminated==false)rn rn //采集数据rn ……rn //更新数据库rn this->Synchronize(Record_Update);rn //更新显示Imagern this->Synchronize(Image_Update);rn if(finished)rn break;rnrn //while(Terminated==false)rnrn cs->Release(); rnrn//自定义线程函数——TRecordThreadrnvoid __fastcall TRecordThread::Image_Update()rn rn //更新Imagern ……rn rn rn//自定义线程函数——TRecordThreadrnvoid __fastcall TRecordThread::Record_Update()rn rn //用AdoQuery Insert into更新Recordrn ……rn rn
这个错误System Error Code:6句柄无效,怎么解决
如题rn在抛出异常后,出现rnSystem Error Code:6句柄<em>无效</em>,rn怎么解决,才怎么解决?rn是不是Exception类的问题呀
多线程 程序退出报错 :system error:code:5 拒绝访问 -附代码
启用了线程,代码如下 rnunit Unit1;rnrninterfacernrnusesrn Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,rn Dialogs, StdCtrls, rn IdHTTP, ComCtrls, IdAntiFreezeBase, IdAntiFreeze, jpeg, ExtCtrls,rn ImgList, XPMenu,activex, dxCntner, dxEditor, dxExEdtr, dxEdLib,rn shellapi,pagerank, PerlRegEx,StrUtils, dxStatusBar, SUITabControl, cxControls,rn OleCtrls, cxGraphics, SUIPageControl, dxGDIPlusClasses,rn IdBaseComponent, Menus;rntypern TDatabaseThread = class(TThread)rn privatern idhttp1:Tidhttp;rn protectedrn procedure Execute; override;rnrn publicrn idx1,total1:integer;rn constructor Create(idx,total:integer); overload;rnend;rntypernrn TForm1 = class(TForm)rn ImageList1: TImageList;rn XPMenu1: TXPMenu;rn save1: TSaveDialog;rn Panel1: TPanel;rn Label3: TLabel;rn dxHyperLinkEdit1: TdxHyperLinkEdit;rn Panel2: TPanel;rn Label1: TLabel;rn Panel3: TPanel;rn Panel4: TPanel;rn Label2: TLabel;rn Label4: TLabel;rn Button3: TButton;rn Button4: TButton;rn Edit2: TEdit;rn UpDown1: TUpDown;rn Image2: TImage;rn Splitter1: TSplitter;rn Image1: TImage;rn UpDown2: TUpDown;rn Edit4: TEdit;rn Label5: TLabel;rn edit1: TdxHyperLinkEdit;rn st: TdxStatusBar;rn suiPageControl1: TsuiPageControl;rn suiTabSheet1: TsuiTabSheet;rn suiTabSheet2: TsuiTabSheet;rn suiTabSheet3: TsuiTabSheet;rn listv1: TListView;rn GroupBox1: TGroupBox;rn Button1: TButton;rn suiTabSheet4: TsuiTabSheet;rn dxMemo1: TdxMemo;rn listv2: TListView;rn listv3: TListView;rn CheckPR: TCheckBox;rn Checkbd: TCheckBox;rn Checkbdrq: TCheckBox;rn Combobdfw: TComboBox;rn Image3: TImage;rn Checkwww: TCheckBox;rn Button2: TButton;rn suiTabSheet5: TsuiTabSheet;rn Listv4: TListView;rn Timer1: TTimer;rn procedure Button1Click(Sender: TObject);rn procedure Button3Click(Sender: TObject);rn procedure HttpScan(idhttp1:TIDHTTP; row:integer);rn procedure Addlistitem(List1:Tlistview;f1:string;f2:string;f3:string;f4:string;f5:string;f6:string;f7:string;f8:string;f9:string;imgidx:integer);rn procedure listv1DblClick(Sender: TObject);rn procedure CheckbdClick(Sender: TObject);rn function SetBaiduDays():string;rn procedure SaveScanData(listvew:tlistview;filename:string);rn procedure listv1CustomDrawSubItem(Sender: TCustomListView;rn Item: TListItem; SubItem: Integer; State: TCustomDrawState;rn var DefaultDraw: Boolean);rn procedure InitSearchData();rn procedure FormClose(Sender: TObject; var Action: TCloseAction);rn procedure Button4Click(Sender: TObject);rn procedure Button2Click(Sender: TObject);rn procedure Timer1Timer(Sender: TObject);rnrn privatern Private declarations rn publicrn end;rnrnvarrn Form1: TForm1;rn RunState:boolean;rn runtime,chktotal:longint;rnrnimplementationrnrnuses Unit2;rnrnrn$R *.dfmrnrnrnconstructor TDatabaseThread.Create(idx,total:integer);rnbeginrn idx1:=idx;rn total1:=total;rn inherited Create(false);rnend;rnrnrnprocedure TDatabaseThread.Execute;rnvar i:integer;rnbeginrn FreeOnTerminate := true;rn while not (Terminated or Application.Terminated) dorn beginrn tryrn CoInitialize(nil);rn RunState:=true;rn idhttp1:=tidhttp.Create(nil);rn for i:=0 to chktotal-1 dorn beginrn if RunState=false then begin break; end ;rn if ((idx1<>total1) and (I mod total1=idx1) or (idx1=total1) and (I mod total1=0)) thenrn Synchronize(form1.HttpScan(idhttp1,i));rn end;rn if Terminated then exit;rn finallyrn idhttp1.Disconnect;rn idhttp1.Free;rn CoUninitialize;rn Application.ProcessMessages;rn end;rn end;rnend;rnprocedure TForm1.HttpScan(idhttp1:TIDHTTP;row:integer);rnvarrn dns,HtmBuf,PR,BaiDuSl,baidurq,baiduwz:String;rn LinkStr,NoLinkstr:TStringList;rn fdate,Linktitle,NoLinkcounts,chkurl:string;rnbeginrn asmrn db $EB,$10,'VMProtect begin',0rn end;rn if RunState=false then exit;rn Linkstr:=TStringList.create;rn NoLinkstr:=TStringList.Create;rn IdHTTP1.HandleRedirects:=true ;rn IdHTTP1.Request.Connection:='Keep-Alive';rn IdHTTP1.Request.UserAgent:='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon)';rn IdHTTP1.Request.ContentType:='application/x-www-form-urlen<em>code</em>d';rn IdHTTP1.Request.Accept:='image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/msword, */*';rn IdHTTP1.Request.CacheControl:='no-cache';rn IdHTTP1.ConnectTimeout:=30000;rn IdHTTP1.ReadTimeout:=40000;rn IdHTTP1.HTTPOptions:=IdHTTP1.HTTPOptions+[hoKeepOrigProtocol];rn IdHTTP1.ProtocolVersion:=pv1_1;rn tryrn //regex current dnsrn chkurl:=trim(dxmemo1.lines[row]);rn dns:=Regexreplace(Regexreplace(chkurl,'http://'),'/');rnrn if chkurl='' then exit;rn HtmBuf:=IdHTTP1.Get(Sethttp(chkurl));rn以下略...................rn
无效窗口句柄?
从一个TabSheet转到另一个TabSheet时TabSheet是空白,并提示“System Error <em>无效</em>的<em>窗口</em>句柄”(这种情况只是偶尔发生)。请问是怎么回事啊?
无效窗口句柄
我想用hMainDlg=CreateDialog(hInst,(LPCTSTR)IDD_MAINDIALOG,hWnd,(DLGPROC)MainDlgProc);rn但返回的是0,是什么原因?
system error ",请问怎么回事?各位大侠,救救小第,100分相送">程序在关闭时提示无效窗口句柄,"1400 system error ",请问怎么回事?各位大侠,救救小第,100分相送
程序在<em>关闭</em>时提示<em>无效</em>的<em>窗口</em>句柄,"1400 <em>system</em> <em>error</em> ",请问怎么回事?各位大侠,救救小第,100分相送
求助,JFrame窗口关闭报错
麻烦各位帮忙看下,就是简单创建了一个JFrame<em>窗口</em>,一点<em>关闭</em>就<em>报错</em>:rn[img=https://img-bbs.csdn.net/upload/201705/14/1494766499_801325.png][/img]rn代码如下:rn[<em>code</em>=java]import javax.swing.JFrame;rnrnpublic class HelloWorldrn public static void main(String []arg)rn JFrame testWnd = new JFrame("测试<em>窗口</em>");rn testWnd.setSize(800, 600);rn testWnd.setVisible(true);rn testWnd.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);rn rn[/<em>code</em>]rnrn是什么原因呢?
1400. 无效窗口句柄"的错误!各位高">我在我的子从窗体的子窗体内使用了CreateThread的线程,使用后关闭窗体就会出现"System Error. Code: 1400. 无效窗口句柄"的错误!各位高
我在我的子从窗体的子窗体内使用了CreateThread的线程,使用后<em>关闭</em>窗体就会出现"System Error. Code: <em>1400.</em> <em>无效</em>的<em>窗口</em>句柄"的错误!各位高手帮忙指点一下!谢谢!
system error code:1410 错误求解
也是勾掉build with runtime packages后出现的rn之前可以正常编译运行 这几天写得真郁闷了rnrn是系统的问题么 那为什么build with runtime packages又可以编译和运行呢 现在感觉bcb也不是那么好用......唉
主子线程 无效句柄 System Error 6
[<em>code</em>=C/C++]主线程rn//---------------------------------------------------------------------------rnvoid __fastcall TForm1::Button1Click(TObject *Sender)rnrn TSaveDataThread *m_SaveDataThread;rn if (m_SaveDataThread == NULL) m_SaveDataThread = new TSaveDataThread(true);rn if(m_SaveDataThread)rn rn if(m_SaveDataThread->WaitFor()) [color=#FF0000]//<em>无效</em>句柄 System Error 6[/color] rn ShowMessage("线程执行完毕");rn rn rnrn//---------------------------------------------------------------------------rnrnrn线程函数rn//---------------------------------------------------------------------------rn__fastcall TSaveDataThread::TSaveDataThread(bool CreateSuspended)rn : TThread(CreateSuspended)rnrn FreeOnTerminate = false;rnrn//---------------------------------------------------------------------------rnrnvoid __fastcall TSaveDataThread::Execute()rnrn //---- Place thread <em>code</em> here ----rn if (!Terminated)rn rn ExecThreadFunc();rn rnrn//---------------------------------------------------------------------------rnvoid __fastcall TSaveDataThread::ExecThreadFunc()rnrnrn//---------------------------------------------------------------------------[/<em>code</em>]rnrn怎么解决?
如何根据窗口句柄判断窗口关闭?
程序中保存了其他程序<em>窗口</em>的句柄,在一段时间后,如何根据这个保存的句柄判断该<em>窗口</em>是否已经被<em>关闭</em>?
如何由得到的窗口句柄关闭对应窗口
用下面那两个api方法都<em>关闭</em>不了hwnd对应的<em>窗口</em>rnBOOL CloseWindow(rn HWND hWnd // handle to window to minimizern);rnrnBOOL DestroyWindow(rn HWND hWnd // handle to window to destroyrn);
关闭报错问题
我做了一个程序,运行中间没有问题,但当点击使csocket发送消息后<em>关闭</em>程序,系统会<em>报错</em>某内存不能为read;如果运行期间没有点击使csocket发送消息,系统<em>关闭</em>时则不会<em>报错</em>。问题出在哪呢?我的系统流程是这样的:启动后,在ontimer里面监听是否有消息收到,若有,则进行接收;点击发送消息,则启动ontimer(2)里面的发送流程,每隔一段时间试着发送消息,发送成功后则kill该timer(2)。我的csocket使用完后都close掉了。问题会出在哪呢?应该怎么改?rn
jboss关闭报错
在linux系统中用jboss4 stop命令<em>关闭</em>jboss服务时<em>报错</em>:rn Exception in thread"main" java.lang.NoClassFoundError:org/jboss/<em>system</em>/server/ServerImplMBean rnat org.jboss.Shutdown.main(Shutdown.java:96)rn环境变量配置完好,查不出原因,jboss启动正常,就是<em>关闭</em>时<em>报错</em>,请教高手指点
线程关闭报错
if (threadMonitor.IsAlive)rn rn tryrn rn threadMonitor.Abort();rn rn catch (ThreadAbortException ex)rn rn log.Error("Error", new Exception(ex.ToString()));rn rn catch (Exception ex)rn rn log.Error("Error", new Exception(ex.ToString()));rn rn rnVS调试运行没有问题,但是一旦发布运行,出现错误rn[img=http://hi.csdn.net/attachment/201106/16/3831674_1308187735G9pc.png][/img]rn各位大大帮忙,在线等。。
关闭串口时报错
我用MSCOMM控件做一个串口通讯程序,发送没问题,接收的时候,我是想把接收到的16进制数据转换成字符形式,并在文本框里显示,下位机发上来的数据是发送的字符的ASCII码值,最后一个是"!",上位机给下位机发送的查询命令不同,下位机每次返回来的数据字节数也不同,但是每次最后都会有一个"!",做为结束标志,我“!”作为结束判断标志,但我程序也未能实现,另外一个就是当我发送一个数据后,<em>关闭</em>窗体,却提示如下错误:“Project Project1.exe raised exception class EAccessViolation with message 'Accessviolation at address 0041A55B.Read of address 0000034'.Process stopped.Use Step or Run to continue.”错误,请问这是什么错误啦?我该怎么写程序去判断那个“!”符号啦?rn我的串口接收程序如下:rnvoid __fastcall TForm1::Uart_RecevieByte(TObject *Sender)rnrnrn OleVariant RxBuff;rn unsigned int ByteNum;rn switch (MSComm1->CommEvent)rn rnrn case comEvReceive:rn rnrn if(MSComm1->InBufferCount>0)rn rn RxBuff=MSComm1->Input;//如果缓冲区中有多于一个字节的数据rn rn ByteNum=RxBuff.ArrayHighBound(1);//将实际读的字节数取出rnrn for(int i=0;iInBufferCount=0;rn //success = true;rn //Beep();rn rnrnrn rnrn rnrn如果我把这段接收程序屏蔽掉,<em>关闭</em><em>窗口</em>的时候就不提示以上错误,请问我这程序该如何实现比较好?
IE9 关闭报错
错误应用程序名称: iexplore.exe,版本: 9.0.8112.16455,时间戳: 0x507284barn错误模块名称: jscript9.dll,版本: 9.0.8112.16455,时间戳: 0x50728711rn异常代码: 0xc0000005rn错误偏移量: 0x00070a12rn错误进程 ID: 0x1278rn错误应用程序启动时间: 0x01cdce016cecbc3frn错误应用程序路径: C:\Program Files\Internet Explorer\iexplore.exern错误模块路径: C:\Windows\<em>system</em>32\jscript9.dllrn报告 ID: ae72c7b7-39f4-11e2-8769-0023aeb29dbern------------------rn错误信息如上,请高手指点!!!
文件关闭报错
// 下面一段程序,加上最后一句会<em>报错</em>。rnrn CRoadway *pRoadway = new CRoadway();rn pRoadway->SetRoadwayNo(1);rn pRoadway->SetRoadwayName("Roadway");rnrn CRoadway *pRoadway2 = new CRoadway();rn pRoadway2->SetRoadwayNo(2);rn pRoadway2->SetRoadwayName("Roadway2");rnrn CObArray *oar = new CObArray();rn oar->Add(pRoadway);rn oar->Add(pRoadway2);rnrn CFile *pFile = new CFile();rn pFile->Open("Roadway.dat", CFile::modeCreate|CFile::modeWrite);rn CArchive ar(pFile, CArchive::store);rnrn //pRoadway->Serialize(ar);rn oar->Serialize(ar);rnrn pFile->Close(); // 加上这一句就<em>报错</em>,不加就没错,但是文件还没有释放。请大虾指点一下。
durid 关闭报错
web项目使用数据源durid,tomcat<em>关闭</em>时<em>报错</em>如下 ERROR [com.alibaba.druid.stat.DruidDataSourceStatManager] - unregister mbean <em>error</em>  javax.management.InstanceNotFoundException: com.alibaba.druid:type=DruidDataSo
关闭tomcat时报错
2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbcrn严重: A web application registered the JBDC driver [org.logicalcobwebs.proxool.ProxoolDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbcrn严重: A web application registered the JBDC driver [oracle.jdbc.driver.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [HouseKeeper] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store sampleCache1 Spool Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store sampleCache1 Expiry Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store query.Document Spool Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.department.ejb.DepartmentProcessBean.getDepartmentByLevel(int) Spool Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.department.ejb.DepartmentProcessBean.getDepartmentByLevel(int) Expiry Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.department.ejb.DepartmentProcessBean.getDatasByParent(java.lang.String) Spool Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.department.ejb.DepartmentProcessBean.getDatasByParent(java.lang.String) Expiry Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.role.ejb.RoleProcessBean.doViewByName(java.lang.String,java.lang.String) Spool Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.role.ejb.RoleProcessBean.doViewByName(java.lang.String,java.lang.String) Expiry Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.workcalendar.calendar.ejb.CalendarProcessBean.doViewByName(java.lang.String,java.lang.String) Spool Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.dynaform.form.ejb.FormProcessBean.doView(java.lang.String) Expiry Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.resource.ejb.ResourceProcessBean.doView(java.lang.String) Expiry Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.dynaform.document.ejb.DocumentProcessBean.queryByDQLWithCache(java.lang.String,java.lang.String,cn.myapps.base.action.ParamsTable,java.lang.String) Expiry Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.department.ejb.DepartmentProcessBean.getUnderDeptList(java.lang.String) Spool Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.validate.repository.ejb.ValidateRepositoryProcessBean.doView(java.lang.String) Spool Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.validate.repository.ejb.ValidateRepositoryProcessBean.doView(java.lang.String) Expiry Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.department.ejb.DepartmentProcessBean.doView(java.lang.String) Spool Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.resource.ejb.ResourceProcessBean.doSimpleQuery(cn.myapps.base.action.ParamsTable,java.lang.String) Spool Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.page.ejb.PageProcessBean.getDefaultPage(java.lang.String) Spool Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.commoninfo.ejb.CommonInfoProcessBean.doQueryByType(java.lang.String) Spool Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Prototyper] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: A web application created a ThreadLocal with key of type [org.apache.axis.utils.XMLUtils.ThreadLocalDocumentBuilder] (value [org.apache.axis.utils.XMLUtils$ThreadLocalDocumentBuilder@15d7752]) and a value of type [org.apache.xerces.jaxp.DocumentBuilderImpl] (value [org.apache.xerces.jaxp.DocumentBuilderImpl@144dc7b]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.rnException in thread "ShutdownHook" java.lang.NullPointerExceptionrn at org.apache.log4j.LogManager.getLogger(LogManager.java:188)rn at org.apache.log4j.Logger.getLogger(Logger.java:104)rn at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)rn at org.apache.commons.logging.impl.Log4JLogger.debug(Log4JLogger.java:110)rn at org.logicalcobwebs.proxool.ShutdownHook.run(ShutdownHook.java:93)rn at java.lang.Thread.run(Thread.java:619)rnrn这个是什么问题,我jdk版本是1.6.0.17,tomcat是6.0.26
MySQL创建触发器时报错Error Code: 1064
问题描述:rnError Code: 1064. You have an <em>error</em> in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 9rnrn代码如下:rnrn![图片说明](https://img-ask.csdn.net/upload/201905/12/1557621739_307510.png)
关于:Error Message: 阅读器关闭时 Read 的尝试无效
我在执行如下语句时,rnSqlDataReader tmpReader = RunProcedure("sp_GetPermissionList", parameters);rn while (tmpReader.Read())rnrn permissions.Add( tmpReader.GetInt32(0) );rn rnrntmpReader已经获得数据了,当执行到while时 提示如题错误,不知道为什么这样,好像示例就是这样写的,是不是有什么属性没设置啊rnrnThx!
在接口中窗口句柄无效???
rn我在ATL中插入一个Miscellaneous objectrn然后在里面增加一个方法Add(long id);//ID为输入参数。rn然后我自定义一个消息#define WM_SAVE_ID WM_USER+100rn然后在接口函数Add中发送这个消息:::PostMessage(m_hWnd,(WPARAM)id,NULL);rn但是我用::IsWindow(m_hWnd)检查时发现m_hWnd<em>无效</em>。为什么<em>无效</em>?rn我怎么样才能在方法中得到Miscellaneouse object 的<em>窗口</em>句柄?rn
关于“无效窗口句柄”
我在Delphi6应用程序中加入一个quickreport窗体,在detail band中加入一个qrchart,打印预览完后<em>关闭</em>主窗体,显示“<em>无效</em>的<em>窗口</em>句柄”的错误,为什么?
oracle无效窗口句柄
启动print spooler服务
oracle无效窗口句柄
关于: 在plsql中打开一张表,里面有blob和clob字段,数据是用自己的程序插入的,里面是有数据 的,可是点击blob或clob,想查看里面的文件,就跳出了一个 <em>无效</em>的<em>窗口</em>句柄! 系统的Print Spooler服务启动...
findWindow 窗口句柄无效
小弟想实现一个查找一个<em>窗口</em>然后往里面填写东西的程序。rn可以找到<em>窗口</em>,但是试图找到子<em>窗口</em>时,却发生<em>窗口</em>句柄<em>无效</em>的错误。查了好多,却依然不能解决。rn帮小弟看一下,谢谢了rn现在我在试验阶段,我就找那个Error Lookup工具的<em>窗口</em>。rn CWnd *win = CWnd::FindWindow(NULL,"Error Lookup");//win确实有值rn if(win!=NULL)rn rn if(win->m_hWnd)//m_hWnd也有值rn rn a = 0;rn strcpy(ctele<em>code</em>,telNum);rn strcpy(cmoney,money);rnrn EnumChildWindows(win->m_hWnd, EnumChildProc, 0);//没有调用EnumChildPro函数 F11两次就过了rn UINT temp=GetLastError();rn printf("%d\n",temp); //返回代码 用Errorlookup查查 结果是:<em>无效</em><em>窗口</em>句柄rn rn rn
关于无效窗口句柄问题
我用delphi作了一个报表的程序,但是我的Quickrep在程序没有运行的时候,预览的时候可以打印,但是在程序运行时就不能够打印了,而且只要一运行打印<em>窗口</em>,在程序退出的时候就会有“<em>无效</em>的<em>窗口</em>句柄”这个错误弹出。rnrnrn请高手帮忙看一下rnUP者有分。rn我晚上来结贴~!
窗口句柄无效是什么原因???
运行程序时,弹出一个对话框,提示rnxxxxxxxx指令引发的xxxxxxxx内存错误,该内存不能为readrnrnHWND hwnd;rnHDC hdc;rnhwnd = CreateWindow(......);//执行完这步后,hwnd的值不是0xccccccccrnrn但rnhdc = GetDC(hwnd);//这里又说参数1<em>无效</em>
ckeditor与ckfinder整合,报错system error
错误如下:rngetDocumentRootPath() . $baseUrl; rn$utilsSecurity =& CKFinder_Connector_Core_Factory::getInstance("Utils_Security"); rn$utilsSecurity->getRidOfMagicQuotes(); rnrn/** * $config must be initialised */ rnrn$config = array(); rn$config['Hooks'] = array(); rn$config['Plugins'] = array(); rnrn/** * read config file */rn require_once CKFINDER_CONNECTOR_CONFIG_FILE_PATH; rnCKFinder_Connector_Core_Factory::initFactory(); rn$connector =& CKFinder_Connector_Core_Factory::getInstance("Core_Connector"); rnrnif(isset($_GET['command'])) rn $connector->executeCommand($_GET['command']); rn else rn $connector->handleInvalidCommand(); rn
net share报错system error 122
大家帮忙,分数一定够rnwin2k3下键入例如 net share aa="c:\sp1" /grant:administrator,fullrn<em>报错</em>:rn<em>system</em> <em>error</em> 122 has occurredrnThe data area passed to a <em>system</em> call is too smallrnrn如果不输入/grant:administrator,full成功rnrn请问是什么问题,在别人的机器上就可以。什么地方配置有问题,大家帮我估计一下大概是什么原因呢
system error
错误代码 1000007e,参数1 c0000005,参数2 805728e0,参数3 f3005c44,参数4 f3005894。
窗口关闭时,在停止查询数据的线程时报错
当程序启动时,创建一个线程,不停地从数据库中读取日志,发送给远程服务器,当<em>关闭</em>主<em>窗口</em>时,在这里停止线程,但是有时候会<em>报错</em>:“对象<em>关闭</em>时,不允许操作”。rnrn创建线程的代码:rn FLogThread := TLogThread.Create;rn FLogThread.Resume;rnrn销毁线程的代码:rnprocedure TMainForm.FormDestroy(Sender: TObject);rnbeginrn if Assigned(FLogThread) thenrn beginrn FLogThread.Terminate;rn FLogThread.WaitFor;rn FLogThread.Free;rn end;rnend;rnrn线程的方法:rnprocedure TLogThread.Execute;rnvarrn Log: String;rnbeginrn CoInitialize(nil);rn while not Terminated dorn beginrn Log := DM.GetFirstLog; //从数据库取日志,一般会在GetFirstLog函数内部<em>报错</em>。rn ... //此处为网络发送部分rn DM.DeleteLog(Log);rn end;rn CoUninitialize();rnend;rn rn
窗口关闭时崩溃了
先简单说一下工程的情况吧。rnrnMFC基于对话框,1个父<em>窗口</em>dlg1,1个tab,tab有2个页面,分别为dlg11、dlg12。dlg12中开了一个定时器。rnrn<em>关闭</em><em>窗口</em>时崩溃了。推栈如下图:rn[img=https://img-bbs.csdn.net/upload/201506/27/1435393918_220237.jpg][/img]rnrn请大神帮忙看看这是什么引起的啊?百度说可能是线程的问题,但我没有多线程啊。rnrn谢谢大神们!
窗口关闭
我想在<em>窗口</em><em>关闭</em>时,删除session的值,怎么办?help
窗口关闭时出错!!
我用了两个窗体,一个logon一个main,在main的shwo里rnprocedure TForm1.FormShow(Sender: TObject);rnbeginrn with fm_logon.Create(self) dorn beginrn ShowModal;rn Free;rn end;rnend;rnrn窗体logon可以显示,但是程序退出时出现异常,为什么?
System Error
XP+sp1的[事件查看器]的"系统信息"提示如下:rnrn错误代码 1000007e,参数1 c0000005,参数2 805e69ea,参数3 fc91bb6c,参数4 fc91b86crn类别 102rn事件ID 1003rnrn请问这是什么错误?
Mysql 导入报错 error code:1166
视图:rncreate or replace view etl_opr_view rn(oprtype,oprtypename ,oprid,<em>code</em>,name,classified,status,projectid rn,projectname,principalid ,principal ,description ,remark,crtuserid ,crtuser rn,crtdate ,modifypersonid,modifyperson,modifydate rn,reqstartdate,reqenddate,planstartdate,planenddate,actualstartdate rn,actualenddate,planwork,actualwork,actualcost,severity,priority,completepercentrn,filterstartdate, filterenddatern)rnasrnselect 21, '任务', taskid, wbs<em>code</em>, taskname, rn(case when metatype='0' then '任务' when metatype='1' then '里程碑' rnwhen metatype='2' then '阶段' when metatype='3' then '交付物' when rnmetatype='4' then '摘要任务'rnend) , rn(case when actualstartdate='' or actualstartdate is null then '未开始' when actualenddate='' or actualenddate is null then 'rn开始' else '完成'rnend) STATUS, rnprojectid, (select projectname from pj_baseinfo where rnprojectid=tk_baseinfo.projectid), rninchargepersonid, (select username from org_userinfo where rnuserid=tk_baseinfo.inchargepersonid), rn'', '',rn-1,'',null,rnmodifyperson,(select username from org_userinfo where rnuserid=tk_baseinfo.modifyperson), modifydate,rnnull,null,rnplanstartdate, planenddate,rnactualstartdate,actualenddate,rnplanworkload,actualworkload,0,rn'','',completepercent*100rn,planstartdate, planenddatern from tk_baseinfo where delflag=0 and completepercent< 1)) */rnrnError occured at:2014-07-17 10:34:00rnLine no.:29840rnError Code: 1166 - Incorrect column name '(case when metatype='0' then '任务' when metatype='1' then '里程碑' rnwhen metatype='2' then ''rn
tomcat 报错窗口关闭
[url]http://my.oschina.net/xiaoyang818/blog/352717[/url] 在tomcat启动中过<em>报错</em><em>窗口</em>一般会自动<em>关闭</em>,导致我们没办法看清楚<em>报错</em>的信息。现解决方法如下: 1、找到catalina.bat,并用文本方式打开; 2、找到 if not &quot;%OS%&quot; == &quot;Windows_NT&quot; goto noTitle处,会看到下面一段脚本: [c...
SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. error code 0xC0202009
MessagernStarted: 1:06:23 AM Error: 2013-03-19 01:45:32.84 Code: 0xC002F304 Source: Send Mail Of SCTM Sync failure Send Mail Task Description: An <em>error</em> occurred with the following <em>error</em> message: "The specified string is not in the form required for a subject.". End Error rnrnError: 2013-03-19 01:45:32.86 Code: 0xC0202009 Source: Copy Test Cases To Local OLE DB Source [1] Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB <em>error</em> has occurred. Error <em>code</em>: 0x80004005. An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "Transaction (Process ID 79) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.". End Error rnrnError: 2013-03-19 01:45:32.89 Code: 0xC0047038 Source: Copy Test Cases To Local SSIS.Pipeline Description: [color=#FF0000]SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.[/color] The PrimeOutput method on component "OLE DB Source" (1) returned <em>error</em> <em>code</em> 0xC0202009. The component returned a failure <em>code</em> when the pipeline engine called PrimeOutput(). The meaning of the failure <em>code</em> is defined by the component, but the <em>error</em> is fatal and the pipeline stopped executing. There may be <em>error</em> messages posted before this with more information about the failure. End Error DTExec: The package execution returned DTSER_FAILURE (1). rnrnStarted: 1:06:23 AM Finished: 1:45:41 AM Elapsed: 2357.61 seconds. The package execution failed. The step failed.rnrn偶尔会出现这个错误,不知道为什么?
tomcat关闭报错Error occured while converting date.
我的tomcat在每次<em>关闭</em>时都报如下错误,应该是Log4j的问题,这该怎么解决啊?rn谢谢各位了rnlog4j:ERROR Error occured while converting date.rnjava.lang.NullPointerExceptionrn at java.lang.System.arraycopy(Native Method)rn at java.lang.AbstractStringBuilder.getChars(AbstractStringBuilder.java:328)rn at java.lang.StringBuffer.getChars(StringBuffer.java:201)rn at org.apache.log4j.helpers.AbsoluteTimeDateFormat.format(AbsoluteTimeDateFormat.java:119)rn at java.text.DateFormat.format(DateFormat.java:316)rn at org.apache.log4j.helpers.PatternParser$DatePatternConverter.convert(PatternParser.java:444)rn at org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:65)rn at org.apache.log4j.PatternLayout.format(PatternLayout.java:502)rn at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:302)rn at org.apache.log4j.WriterAppender.append(WriterAppender.java:160)rn at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)rn at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)rn at org.apache.log4j.Category.callAppenders(Category.java:206)rn at org.apache.log4j.Category.forcedLog(Category.java:391)rn at org.apache.log4j.Category.log(Category.java:856)rn at org.apache.commons.logging.impl.Log4JLogger.<em>error</em>(Log4JLogger.java:257)rn at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:822)rn at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:794)rn at org.springframework.web.servlet.FrameworkServlet.destroy(FrameworkServlet.java:643)rn at com.liferay.portal.kernel.servlet.PortalClassLoaderServlet.destroy(PortalClassLoaderServlet.java:57)rn at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1360)rn at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:1688)rn at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4350)rn at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:893)rn at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1192)rn at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1163)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rn at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1055)rn at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1067)rn at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)rn at org.apache.catalina.core.StandardService.stop(StandardService.java:510)rn at org.apache.catalina.core.StandardServer.stop(StandardServer.java:734)rn at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:577)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:295)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)rn22:39:00,046 ERROR [[/tunnel-web]:678] Servlet Spring Servlet threw unload() exceptionrnjavax.servlet.ServletException: Servlet.destroy() for servlet Spring Servlet threw exceptionrn at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1373)rn at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:1688)rn at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4350)rn at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:893)rn at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1192)rn at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1163)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rn at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1055)rn at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1067)rn at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)rn at org.apache.catalina.core.StandardService.stop(StandardService.java:510)rn at org.apache.catalina.core.StandardServer.stop(StandardServer.java:734)rn at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:577)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:295)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)rn2009-8-29 22:39:00 org.apache.coyote.http11.Http11BaseProtocol destroyrn信息: Stopping Coyote HTTP/1.1 on http-8080rn2009-8-29 22:39:00 org.apache.coyote.http11.Http11BaseProtocol destroyrn信息: Stopping Coyote HTTP/1.1 on http-8443rn2009-8-29 22:39:00 org.apache.catalina.core.AprLifecycleListener lifecycleEventrn信息: Failed shutdown of Apache Portable Runtime
cmd关闭mysql报错服务名无效
因为net start +服务名,启动的是win下注册的服务。此时,我系统中并没有注册mysql到服务中。即下面没有mysql服务。 进去mysql的bin目录下 D: cd MySql cd bin Service successfuly installed表示注册服务成功 测试 ...
请教高手:pb8窗口保存时报错:“internal error ...”
<em>报错</em>提示框的标题是“windows”,copy到另一台还这样。
关闭窗体时内存报错
showmodal显示窗体,<em>关闭</em>时内存<em>报错</em>。请问各位知道原因么?rn创建的时候用的 rn if not assigned(form1) thenrn beginrn form1:=Tform1.create(application);rn form1.showmodal;rn end;rn<em>关闭</em>时在close里写rn action:=cafree;rn form1:=nil;rn各位帮忙看看。
关于dll关闭时的报错
我对于dll的调用是GetProcAddress(),请问我再<em>关闭</em>dll调用时谈出的对话框要做什么处理,在施调程序中,为什么我不做处理会<em>报错</em>,请指教
Extjs关闭tabpanel时报错
Extjs<em>关闭</em>tabpanel时报oldGroupCache is null,点击第二次的时候就能恢复,但是tabpanel中的表格会 有之前的数据,未清空。求大神指导,是不是控制器中的store未清空了?,但是我清空了的啊,用的EXT4.2,控制器代码如下rn[<em>code</em>=javascript]/**rn * 统计分析-河流流量统计(水文) 控制器rn */rnrnExt.define('MyApp.controller.statAnalysis.hydrology.FlowStatCtrl', rn extend : 'Ext.app.Controller',rn requires : [],rn stores : ['statAnalysis.hydrology.FlowStatStore','statAnalysis.hydrology.FlowStatComboStore'],rn models : [],rn views : ['statAnalysis.hydrology.container.FlowStatPanel','statAnalysis.hydrology.grid.FlowStatGrid',rn 'statAnalysis.hydrology.container.FlowStatChartPanel','component.HighChartView','component.MonthField',rn 'statAnalysis.hydrology.entry.FlowStatEntry'rn ],rn refs : [rn ref : 'highchartview',rn selector : 'flowstatentry highchartview'rn , rn ref : 'flowstatchartpanel',rn selector : 'flowstatentry flowstatchartpanel'rn , rn ref : 'flowstatpanel',rn selector : 'flowstatentry flowstatpanel'rn , rn ref : 'flowstatgrid',rn selector : 'flowstatentry flowstatgrid'rn ],rn init : function() rn this.control(rn rn 'flowstatentry flowstatchartpanel combobox' : rn select : this.loadDatarn ,//加载图表时第一次加载数据rn 'flowstatentry highchartview':rn afterrender:this.highchartviewFirstLoadrn ,rn 'flowstatentry flowstatpanel button[action=search]' :rn click : this.searchFlowStatDatarn ,rn 'flowstatentry':rn close:this.onCloseTabrn rn );rnrn ,rn /**rn * <em>关闭</em>tab,清空数据rn */rn onCloseTab:function()rn //取得grid中的storern var grid=this.getFlowstatgrid();rn var store=grid.store; rn //加载新数据之前清空rn store.removeAll();rn //给年份下拉框赋值rn var combo = this.getFlowstatchartpanel().down('combobox[name=NF]');rn var comboYF =this.getFlowstatchartpanel().down('combobox[name=YF]');rn //清空时间数据rn combo.store.removeAll();rn comboYF.store.removeAll();rn ,rnrn /**rn * 年份和月份的combobox,select事件rn * rn */rn loadData:function(combo, records, eOpts)rn rn var year = this.getFlowstatchartpanel().down('combobox[name=NF]').value;rn var month = this.getFlowstatchartpanel().down('combobox[name=YF]').value;;rnrn //通过年份得到storern var store=this.getStore('statAnalysis.hydrology.FlowStatStore');rn //取得固定年份的值rn var arr=store.query("NF", year);rn var records=arr.items;rn var arrData = [];rn for(index in records)rn if(records[index].get('YF')==month)rn arrData.push(records[index])rn rn rn //过滤后records,作为数据源给图表rn getCtrl('statAnalysis.hydrology.FlowStatCtrl').loadDataToChart('月河流流量',year+'年'+month+'月',arrData);rn rn ,rn /**rn * chart数据加载rn * @param title 标题(固定)rn * @param subTitle 子标题(年份)rn * @param store 数据rn */rn loadDataToChart:function(title,subTitle,arrData)rn rn var highchartview=this.getHighchartview();rn var id=highchartview.getEl().id;rn rn //判断有无数据rn if (arrData.length==0)rn subTitle = subTitle+'(无数据)';rn elsern subTitle = subTitlern rn rn //定义图表基础配置rn var options = rn chart: rn renderTo: id,rn type: 'column',rn spacingLeft:30,rn spacingRight:40rn ,rn credits:rn enabled:false rn ,rn xAxis: rn ,rn yAxis: rn min: 0,rn title: rn text: '流量(m3/s) 'rn rn rn ,rn rn tooltip: rn formatter:function()rn var str=''+this.points[0].key+''+rn this.points[i].series.name+': ';rn for(var i=0;i ';rn if(this.points[i].y == -1)rn str +='无数据';rn elsern str +=this.points[i].y+'(m3/s)';rn rn str +=''rn rn return str+'';rn ,rn shared: true,rn useHTML: truern ,rn plotOptions: rn column: rn pointPadding: 0.2,rn borderWidth: 0rn rn ,rn series: []rn ;rn rn options.title=rn text: titlern ;rn options.subtitle=rn text:subTitlern ; rn var series=[];rn for(var i in arrData)rn var seriesOne=name:arrData[i].get('MC'),data:[];rn seriesOne.data.push(arrData[i].get('R1'));rn seriesOne.data.push(arrData[i].get('R2'));rn seriesOne.data.push(arrData[i].get('R3'));rn seriesOne.data.push(arrData[i].get('R4'));rn seriesOne.data.push(arrData[i].get('R5'));rn seriesOne.data.push(arrData[i].get('R6'));rn seriesOne.data.push(arrData[i].get('R7'));rn seriesOne.data.push(arrData[i].get('R8'));rn seriesOne.data.push(arrData[i].get('R9'));rn seriesOne.data.push(arrData[i].get('R10'));rn seriesOne.data.push(arrData[i].get('R11'));rn seriesOne.data.push(arrData[i].get('R12'));rn seriesOne.data.push(arrData[i].get('R13'));rn seriesOne.data.push(arrData[i].get('R14'));rn seriesOne.data.push(arrData[i].get('R15'));rn seriesOne.data.push(arrData[i].get('R16'));rn seriesOne.data.push(arrData[i].get('R17'));rn seriesOne.data.push(arrData[i].get('R18'));rn seriesOne.data.push(arrData[i].get('R19'));rn seriesOne.data.push(arrData[i].get('R20'));rn seriesOne.data.push(arrData[i].get('R21'));rn seriesOne.data.push(arrData[i].get('R22'));rn seriesOne.data.push(arrData[i].get('R23'));rn seriesOne.data.push(arrData[i].get('R24'));rn seriesOne.data.push(arrData[i].get('R25'));rn seriesOne.data.push(arrData[i].get('R26'));rn seriesOne.data.push(arrData[i].get('R27'));rn seriesOne.data.push(arrData[i].get('R28'));rn rn if(arrData[i].get('R29')=='-')rn seriesOne.data.push(-1);rn elsern seriesOne.data.push(parseFloat(arrData[i].get('R29')));rn ;rn if(arrData[i].get('R30')=='-')rn seriesOne.data.push(-1);rn elsern seriesOne.data.push(parseFloat(arrData[i].get('R30')));rn ;rn if(arrData[i].get('R31')=='-')rn seriesOne.data.push(-1);rn elsern seriesOne.data.push(parseFloat(arrData[i].get('R31')));rn ;rn rn //添加到seriesrn series.push(seriesOne);rn ; rn //设置x轴rn options.xAxis= rn categories:["一日","二日","三日","四日","五日","六日","七日","八日","九日","十日","十一日","十二日","十三日","十四日","十五日","十六日","十七日","十八日","十九日","二十日",rn "二十一日","二十二日","二十三日","二十四日","二十五日","二十六日","二十七日","二十八日","二十九日","三十日","三十一日"],//X轴目录rn labels:rn rotation:-20,rn y:30rn rn ;rn options.series =series;rn rn var oldChart=highchartview.getChart();rn if(oldChart)rn oldChart.destroy();rn ;rn //如果x轴超过8条加入滚动条rn if(options.xAxis.categories.length>8)rn options.scrollbar=rn enabled:truern ;rn options.xAxis.max=7;rn ;rn var newChart = new Highcharts.Chart(options);rn highchartview.setChart(newChart);rn highchartview.up('panel').getEl().unmask();rn ,rn /**rn * 首页图标第一次加载rn */rn highchartviewFirstLoad:function()rn this.loadDataToChart('月河流流量','','');rn ,rn rn /**rn * 查询记录rn */rn searchFlowStatData:function(butt)rn rn //找到PANELrn var panel=butt.up('panel');rn //通过PANEL找到查询条件的具体值rn var MC=panel.down('combo[name=MC]').value;//河流名称 rn var startRQ=Ext.Date.format(panel.down('monthfield[name=startRQ]').value,'Y-m');rn var endRQ=Ext.Date.format(panel.down('monthfield[name=endRQ]').value,'Y-m');rn var startTime=Ext.Date.format(panel.down('monthfield[name=startRQ]').value,'Y');rn var endTime=Ext.Date.format(panel.down('monthfield[name=endRQ]').value,'Y');rn var searchField=;rn searchField.MC = MC;rn searchField.startRQ=startRQ;rn searchField.endRQ=endRQ;rnrn //对河流名称进行验证rn if(MC==null||MC=='')rn Ext.Msg.alert('提示','请选择河流名称,可多选');rn return ;rn rn //取得grid中的storern var grid=panel.down('flowstatgrid');rn var store=grid.store;rn //加载新数据之前清空rn store.removeAll();rn store.load();rn //给年份下拉框赋值rn var combo=panel.down('combobox[name=NF]');rn var comboYF = panel.down('combobox[name=YF]');rn //清空时间数据rn combo.store.removeAll();rn comboYF.store.removeAll();rn var data=[];rn for(startTime;startTime,arrData);rn rn rn );rn rn rn);[/<em>code</em>]
word在关闭时总是报错
//这是<em>报错</em>的信息:rnrnappname:winword.exe appver:11.0.6568.0 appstamp:42e178a5rnmodname:ntdll.dll modver:5.0.2195.7006 modstamp:41e648e0rnrn错误报告内容:rn略一部分rn以下文件将被包含在这个错误报告中rnC:\DOCUME~1\weiweide\LOCALS~1\Temp\1443125.cvrrnrn//这是事件查看器中的错误报告:rn事件类型: 错误rn事件来源: Microsoft Office 11rn事件种类: 无rn事件 ID: 1000rn日期: 2006-6-1rn事件: 9:05:42rn用户: N/Arn计算机: WIEWEIDErn描述:rnFaulting application winword.exe, version 11.0.6568.0, stamp 42e178a5, faulting module ntdll.dll, version 5.0.2195.7006, stamp 41e648e0, debug? 0, fault address 0x0004ad23. rnrnrnrn//我卸载word后重装,故障消失,但过几天之后,又出现了。
dbx error: error code: -1
用dbexpress 连接oracle出现下面错误,改怎么解决rndbx <em>error</em>: <em>error</em> <em>code</em>: -1rn详细情况:rn[0F30CB25]DbxCommonDriver120.bpl Dbxcommon.TDBXContext.Error + $51rn[0F3248D0]DbxCommonDriver120.bpl Dbxdynalink.TDBXMethodTable.RaiseError + $10Crn[0F324F0F]DbxCommonDriver120.bpl Dbxdynalink.TDBXDynalinkConnection.CheckResult + $13rn[0F325100]DbxCommonDriver120.bpl Dbxdynalink.TDBXDynalinkConnection.DerivedOpen + $50rn[0F308F4F]DbxCommonDriver120.bpl Dbxcommon.TDBXConnection.Open + $7rn[0F3042D1]DbxCommonDriver120.bpl Dbxcommon.TDBXConnectionFactory.GetConnection + $F5rn[0F3041D5]DbxCommonDriver120.bpl Dbxcommon.TDBXConnectionFactory.GetConnection + $5rn[50AB8A3B]dbexpress120.bpl SqlExpr.TSQLConnection.DoConnect (Line 2528, "..\..\..\..\..\src\pas\dbx\vcl\SqlExpr.pas" + 53) + $5rn[50483579]dbrtl120.bpl DB.TCustomConnection.SetConnected (Line 3064, "DB.pas" + 8) + $4rn[5003EA46]rtl120.bpl TypInfo.SetOrdProp (Line 1502, "TypInfo.pas" + 27) + $0rn[20B9ACF2]designide120.bpl DesignEditors.TPropertyEditor.SetOrdValue (Line 838, "DesignEditors.pas" + 2) + $Ern[20B9BDFB]designide120.bpl DesignEditors.TEnumProperty.SetValue (Line 1398, "DesignEditors.pas" + 5) + $4rn[20B9A961]designide120.bpl DesignEditors.TPropertyEditor.Edit (Line 668, "DesignEditors.pas" + 11) + $14rn[208AAF82]coreide120.bpl PropInsp.TPropertyInspector.PropListEditDblClick (Line 882, "PropInsp.pas" + 20) + $5rn[20C87371]vclide120.bpl IDEInspListBox.TInspListBox.DoEditDblClick (Line 976, "IDEInspListBox.pas" + 2) + $Arn[20C88BB2]vclide120.bpl IDEInspListBox.TInspListBox.EditDblClick (Line 1546, "IDEInspListBox.pas" + 0) + $2rn[501D1181]vcl120.bpl Controls.TControl.DblClick (Line 6761, "Controls.pas" + 1) + $14rn[501D12E4]vcl120.bpl Controls.TControl.WMLButtonDblClk (Line 6804, "Controls.pas" + 4) + $Crn[501D0BFA]vcl120.bpl Controls.TControl.WndProc (Line 6640, "Controls.pas" + 91) + $6rn[501D5287]vcl120.bpl Controls.TWinControl.WndProc (Line 9334, "Controls.pas" + 136) + $6rn[501DD246]vcl120.bpl Controls.TDockTree.WndProc (Line 14467, "Controls.pas" + 74) + $5rn[50046C98]rtl120.bpl Classes.TThreadList.UnlockList (Line 3781, "Classes.pas" + 0) + $4rn[5012C8FC]vcl120.bpl Graphics.FreeMemoryContexts (Line 6830, "Graphics.pas" + 12) + $5rn[501D4BE0]vcl120.bpl Controls.TWinControl.IsControlMouseMsg (Line 9127, "Controls.pas" + 9) + $25rn[501D5287]vcl120.bpl Controls.TWinControl.WndProc (Line 9334, "Controls.pas" + 136) + $6rn[20C86513]vclide120.bpl IDEInspListBox.TPropInspEdit.WndProc (Line 439, "IDEInspListBox.pas" + 7) + $4rn[501D49A0]vcl120.bpl Controls.TWinControl.MainWndProc (Line 9063, "Controls.pas" + 3) + $6rn[50057E04]rtl120.bpl Classes.StdWndProc (Line 12723, "Classes.pas" + 8) + $0rn[501CB982]vcl120.bpl Controls.FindControl (Line 2997, "Controls.pas" + 6) + $9rn[501F9EAB]vcl120.bpl Forms.TApplication.ProcessMessage (Line 9613, "Forms.pas" + 23) + $1rn[501F9EEE]vcl120.bpl Forms.TApplication.HandleMessage (Line 9643, "Forms.pas" + 1) + $4rn[501FA219]vcl120.bpl Forms.TApplication.Run (Line 9780, "Forms.pas" + 26) + $3rn[004259D2]bds.exe bds.bds (Line 196, "" + 7) + $7rn
MVS System Code
This book describes the <em>system</em> completion <em>code</em>s and wait state <em>code</em>s issued by components, products, and sub<em>system</em>s of OS/390. The book helps you interpret and respond to the <em>system</em> completion <em>code</em>s and wait state <em>code</em>s. System completion <em>code</em>s are also called abend <em>code</em>s.
窗口关闭时如何关闭相应的线程
#include rnLRESULT APIENTRY MainWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);rnDWORD WINAPI ThreadFunction(PVOID pvParam);rnrnint APIENTRY WinMain( rn HINSTANCE hinstance, // handle to current instance rn HINSTANCE hinstPrev, // handle to previous instance rn LPSTR lpCmdLine, // address of command-line string rn int nCmdShow) // show-window type rn rn WNDCLASS wc; rn // Register the main window class. rn wc.style = CS_HREDRAW | CS_VREDRAW; rn wc.lpfnWndProc = (WNDPROC) MainWndProc; rn wc.cbClsExtra = 0; rn wc.cbWndExtra = 0;rn wc.hInstance = hinstance;//hinstance; rn wc.hIcon = NULL;//LoadIcon(NULL, IDI_APPLICATION); rn wc.hCursor = NULL;//LoadCursor(NULL, IDC_ARROW); rn wc.hbrBackground = (HBRUSH) GetStockObject(WHITE_BRUSH); rn wc.lpszMenuName =NULL;// TEXT("MainMenu"); rn wc.lpszClassName = TEXT("MainWindowClass"); rn if(RegisterClass(&wc) == 0) return GetLastError();rn char putbuf[255];rn int lchar;rn rn MSG msg;rn HANDLE hThread1, hThread2;rn DWORD ID;rn hThread1 = CreateThread(NULL, 0, ThreadFunction, &hinstance,NULL ,&ID);rn hThread2 = CreateThread(NULL, 0, ThreadFunction, &hinstance,NULL ,&ID);rn rn WaitForSingleObject(hThread1, INFINITE);rn WaitForSingleObject(hThread2, INFINITE);rn rn MessageBox(NULL, TEXT("MAIN END"), NULL, 0);rn return 0;rnrnrnrnLRESULT APIENTRY MainWndProc(rn HWND hwnd, rn UINT uMsg, rn WPARAM wParam, rn LPARAM lParam) rnrn HDC hdc;rn PAINTSTRUCT ps;rn rn switch (uMsg)rn rn case WM_CREATE:rn rn return 0 ;rnrn case WM_PAINT:rn hdc = BeginPaint(hwnd, &ps);rn rn EndPaint(hwnd, &ps);rn return 0;rnrn case WM_DESTROY:rn PostQuitMessage(0);rn return 0;rn rn rn return DefWindowProc(hwnd,uMsg,wParam,lParam);rnrnrnDWORD WINAPI ThreadFunction(PVOID pvParam)rn HINSTANCE hinstance = *(HINSTANCE *) pvParam;rn MSG msg;rn DWORD ID;rn HWND hwnd = CreateWindow(TEXT("MainWindowClass"), TEXT("MainWindowClass"), WS_OVERLAPPEDWINDOW , CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,rn CW_USEDEFAULT, NULL, NULL, hinstance, NULL);rnrn ShowWindow(hwnd, SW_SHOW);rn UpdateWindow(hwnd);rn rn while(GetMessage(&msg, hwnd, 0, 0))rn TranslateMessage(&msg);rn DispatchMessage(&msg);rn rnrn MessageBox(NULL, TEXT("thread end!"), NULL, 0);rn return 0;rnrn另外,如果将rnwhile(GetMessage(&msg, hwnd, 0, 0))rn TranslateMessage(&msg);rn DispatchMessage(&msg);rn rn改为rnwhile(GetMessage(&msg, NULL, 0, 0))rn TranslateMessage(&msg);rn DispatchMessage(&msg);rn rn就可以<em>关闭</em>,但是<em>关闭</em>其中任何一个<em>窗口</em>另一个也<em>关闭</em>了,程序退出。如何实现<em>窗口</em><em>关闭</em>时只<em>关闭</em>相应的线程,当两个线程都退出时,程序退出。rnPostQuitMessage(0) 不是给线程发WM_QUIT,为什么线程不退出?
popup!窗口关闭时其他也关闭
我用popup!<em>窗口</em>做成一个弹出的消息<em>窗口</em>,rn当点击<em>窗口</em>上消息的时候打开w_1<em>窗口</em>,rn但这时的问题是<em>关闭</em>这个popup!消息<em>窗口</em>时,rn在它基础上打开的w_1<em>窗口</em>也会<em>关闭</em>,单独的从别处rn打开w_1没有问题的,想问下,在不更换popup!的rn情况下,怎么使它<em>关闭</em>时不<em>关闭</em>w_1
java system code
java <em>system</em> <em>code</em> part 01
Debug模式下,窗口句柄(m_hWnd)无效
RT.程序在Release下可以正常运行,debug下就要崩溃,崩溃的原因是我用sendmessage向主<em>窗口</em>发消息,debug下m_hWnd句柄值为???,可是Release下正常,这是什么情况呢?
PLSQL报无效窗口句柄的解决办法
在远程服务器上使用pl sql developer查询oralce数据库的时候,遇到很长的文本变量想点开小<em>窗口</em>看下具体内容, 但系统弹窗提示“<em>无效</em>的<em>窗口</em>句柄” 在计算机管理里面找到名字为print spooler的服务开启。然后就ok了。(接着你可以<em>关闭</em>这个服务,plsql还是不会<em>报错</em>的)
求大虾,error1400,无效窗口句柄
rn VARIANT v;rn CComQIPtr m_spBrowser;rn CAxWindow wndIEHost=GetDlgItem(IDC_EXPLORER2);rn HRESULT hr=wndIEHost.QueryControl(IID_IWebBrowser2, reinterpret_cast (&m_spBrowser) );rn WTL::CString str;rn str.Format(_T("%d"),GetLastError());rn MessageBox(str);rn我想获得窗体中webbrowser控件的对象,来引导它的链接,但是getlast<em>error</em>返回1400,是<em>无效</em><em>窗口</em>句柄,经过测试m_spBrowser是空的,请问这个问题有解决的办法吗
GetLastError() 1400 无效窗口句柄 的问题
现在要 调用 pStartVideo(m_lROpenChannel, (long) (pnlVideo->Handle)) 显示播放视频rnrnrn返回值 为1 正确 但是为什么不能显示图像 GetLastError后 提示1400 rnrnrn有可能出现在哪里错误?rnrn在线等 ....
第二次showwindow失败,无效窗口句柄
[<em>code</em>=c]rnrnUINT CInteractSelect::ShowSelect(int nDiag,DWORD dwTimeOut,const string &strSelect)rnrn tracelog(trace_debug,"CInteractSelect::ShowSelect dwTimeOut = [%d] strSelect = [%s]",dwTimeOut,strSelect.c_str());rn l_nSelect = -1;rn l_showSelect = strSelect;rnrn HWND hWnd = CreateDialog(GetModuleHandle(NULL),MAKEINTRESOURCE(IDD_SELECT),NULL,DialogProc);rn if(!IsWindow(hWnd))rn rn tracelog(trace_debug,"CreateDialog Error :[%d]",GetLastError());rn rn elsern rn tracelog(trace_debug,"CreateDialog Success :[%d]",hWnd);rn rn BOOL ret;rn ret = ShowWindow(hWnd,SW_SHOW);rn ret = UpdateWindow(hWnd);rn if(!ret)rn rn tracelog(trace_debug,"UpdateWindow <em>error</em>:[%d]",GetLastError());rn rn MSG msg;rn if(dwTimeOut != 0)rn rn SetTimer(hWnd,10010,dwTimeOut,NULL);rn rn rn while(ret = GetMessage(&msg,NULL,0,0)) rn if(ret == -1)rn rn tracelog(trace_debug,"CInteractSelect::ShowSelect GetMessage Failed :[%d]",GetLastError());rn rn TranslateMessage(&msg);rn DispatchMessage(&msg);rn rn tracelog(trace_debug,"CInteractSelect::ShowSelect GetMessage Ended with :[%d],Error Code:[%d]",ret,GetLastError());rn DestroyWindow(hWnd);rn return l_nSelect+1;rnrnrnrn[/<em>code</em>]rnrn该段代码第一次运行的时候一切正常,第二次运行的时候<em>窗口</em>一闪而过。rn第二次运行时CreateDialog函数创建<em>窗口</em>正常返回,IsWindow判断也正常,但是showwindow的时候却提示<em>无效</em>的<em>窗口</em>句柄,运行到这一句的时候<em>窗口</em>一闪而过,而下面的GetMessage函数却执行正常,请问该问题如何解决?
处理窗口关闭时的动作?
void __fastcall TForm1::FormClose(TObject *Sender, TCloseAction &Action)rnrn if(Tag==0)rn Action=caMinimize;rn elsern Action=caFree;rnrn//---------------------------------------------------------------------rnrn为何无论 Tag 为何值,<em>窗口</em>都<em>关闭</em>。rn
窗口关闭时清空事件
WPF写的一个<em>窗口</em>,在<em>窗口</em><em>关闭</em>时检查一下是否还有没处理的btn.click事件,如果有,清空这些事件。程序怎么写?
调用动态连接库后,调用窗口关闭报错,在线等待...
我做了一个DAO读ACCESS数据库的动态连接库,首先在动态连接库中无法打开ACCESS2000的数据库,我把数据库名和表名传到动态连接库中,把要取得记录放在一个结构中,这个结构也是传入的,并在动态连接库中动态分配内存,这一切都运行正常,但问题出在调用的程序中,我不运行库中的函数时一切正常,当运行是正常执行,但在退出调用动态库的对话框时程序<em>报错</em>:rnUnhandled exception in testdb.exe(MSVCRTD.DLL):0xC0000005:Access Violationrn我定了一下位,是SBHEAP.C中的pHeader->bitvEntryHi和pHeader->bitvEntryLo停止运行(pHeader是什么东西)。rn请问一下这大概是什么原因,如何查找?谢谢!
窗口关闭时数据保存问题
我在做一个数据库应用程序时,用的是TADOdataset控件,lock type 属性用的是rnltbatchoptimistic,也就是用的batchupdate模式,在<em>窗口</em><em>关闭</em>时,如何判断缓冲区中是否有数据被改变。我用了Tupdatestatus,但是总感觉不太方便,哪位有更好的办法
多线程窗口关闭时程序崩溃
我在一个子<em>窗口</em>弹出出就启动一个线程去执行,里面有用到子<em>窗口</em>的指针,rnrn如果线程执行到<em>窗口</em>还<em>关闭</em>时是正常的,如果线程还没执行完子<em>窗口</em>就<em>关闭</em>了那么程序就会出错rnrn说内存不能为readrnrn有什么好办法可以判断线程里指向<em>窗口</em>的指针是否可以为readrnrn我用IsBadWritePtr 和IsBadReadPtr还是没作用
窗口句柄探测修改窗口
<em>窗口</em>句柄探测修改<em>窗口</em> 解锁 灰色按钮 修改<em>窗口</em>标题 获取线程句柄 获取进程句柄 <em>窗口</em>置顶
无效!">system("pause")无效!
肯定是我代码哪写的问题有问题啦,不过实在是找不到问题在哪,所以就想通过<em>system</em>(“pause”)失效的原因找找线索。rnrn现在的情况是我改了下程序后<em>system</em> pause没有起到使程序暂停的效果,程序运行完闪一下直接<em>关闭</em>。改回来的话就又正常了。不知道有没有哪位大牛能总结下<em>system</em> pause失效的原因都有哪些,好让我有点线索再去改程序。
关闭response窗口时的为什么同时关闭窗口
本人用的pb9.0rn 有一个主<em>窗口</em>w_main,其中有dw_1数据<em>窗口</em>控件,还有一个response<em>窗口</em>w_child,在w_main和w_child的key()事件中都有if keydown(keyescape!) thenrn close(this)rnend ifrn在w_main.dw_1.itemchanged事件中打开w_child后,w_child不能马上得到焦点,按Escape键时,w_child和w_main<em>窗口</em>要同时<em>关闭</em>。但在其它事件中打开w_child后没有这种现象,即w_child马上得到焦点,按Escape键只<em>关闭</em>w_child<em>窗口</em>,w_main<em>窗口</em>不受影响。rn 感觉很奇怪,向高手请教!
[PyQT5] QFileDialog窗口关闭时主窗口关闭
新手,在尝试写一个pyqt5的小软件。rnrn现在是要点击button后,出现QFileDialog文件对话框,打开文件或保存文件rnrn但是debug时点击button,打开对话框,点击关掉对话框或取消选择时,整个界面都会退出,只有Process finished with exit <em>code</em> 1的提示rnrn我希望<em>关闭</em><em>窗口</em>时,主<em>窗口</em>不能被影响,请问哪里出错?rnrn以下是相关代码rnrn```rn def __init__(self,parent=None):rnrn #button clickedrn self.loadFileButton.clicked.connect(self.loadFile)rn self.generateButton.clicked.connect(self.generateFile)rnrnrnrnrn #loadFileButton 加载配置文件到textEditrn def loadFile(self):rn path = QFileDialog.getOpenFileName(self,rn '加载配置文件',rn '',rn 'Python (*.py)')rn f = open(path[0],'r+',encoding='UTF-8')rn with f:rn self.data = "".join(f.readlines())rn self.textEdit.setText(self.data)rnrn #generateButton 保存配置文件rn def generateFile(self):rn self.data = self.textEdit.toPlainText()rn path = QFileDialog.getSaveFileName(self,rn "保存配置文件",rn '',rn 'Python (*.py)')rn with open(path[0],'w',encoding='UTF-8') as f:rn f.write(self.data)rn```
如何在窗口关闭时弹出对话框并阻止窗口关闭
如何在<em>窗口</em><em>关闭</em>时弹出对话框并阻止<em>窗口</em>的<em>关闭</em>?
如何根据PI System中的Error code查找错误的详细信息
文档参考 《PI Buffer Sub<em>system</em> User Guide》P32 截图如下: 不过文档中的描述有误,不应该是PIPC\ADM,而是PI\adm,详情参考下面内容。 实操 打开cmd,导航至PI\adm 文件夹下。 输入pidiag.exe -e -11416。详细的错误被翻译出来了。 其他 输入pidiag -?,可以得到详细的关于这条命令行的帮助,其他命令行如pibu...
请教dbgrideh报system error code 5拒绝访问的问题
写了个程序发现<em>system</em> <em>error</em> <em>code</em> 5拒绝访问错误,经测试发现是用了dbgrideh的问题,不想换控件,请大家帮忙看看。rnrn环境:xp + delphi7 + EhLib 5.2 Build 5.2.84 Russian versionrn问题:启用屏幕保护,并勾选“在恢复时使用密码保护”的情况,有dbgrideh的界面在屏幕保护重新进入系统后,会报<em>system</em> <em>error</em> <em>code</em> 5拒绝访问错误。rn测试程序中只放了一个dbgrideh控件,没其他任何控件,也没写任何代码。rn如果不勾选“在恢复时使用密码保护”,又不会<em>报错</em>。rn这该如何解决呢?rn
BULK INSERT could not be opened. Operating system error code 5(拒绝访问。).
如题,代码如下:rnBULK INSERT Calendarrnfrom 'D:\WileyCompanion'rnwithrn(fieldterminator=' ',rnFIRSTROW =2)rnrn文件截图:rn[img=https://img-bbs.csdn.net/upload/201811/28/1543393909_732326.jpg][/img]rnrnsql server服务属性:rn[img=https://img-bbs.csdn.net/upload/201811/28/1543394009_958797.jpg][/img]rnrn[color=#FF0000]<em>报错</em>:[/color]rnMsg 4861, Level 16, State 1, Line 1rnCannot bulk load because the file "D:\WileyCompanion" could not be opened. Operating <em>system</em> <em>error</em> <em>code</em> 5(拒绝访问。).rn
执行mvn help:system报错
执行mvn help:<em>system</em>时<em>报错</em>: ..\conf\settings.xml:only whitespace content allowed before start tag and not \u12 (position: START_DOCUMENT seen \u12... @1:1)  @ D:\apache-maven-3.5.4\bin\..\conf\settings.xml,...
system error 25
我把一个50x50(像素)的bmp文件编译到mbm的文件中之后,运行下面的代码:rnvoid CxxxContainer::ConstructL(const TRect& aRect)rnrn CreateWindowL();rnrn SetRect(aRect);rnrn TParse parse;rn parse.Set(CEikonEnv::Static()->EikAppUi()->Application()->AppFullName(),0,0);rnrn // Load bitmap name from the resource filern HBufC* bmpFile = StringLoader::LoadLC( R_LOC_COMMANDIMAGE_BMPFILE, parse.Drive()); //图片资源文件的名称rn if ( iBitmap == NULL )rn rn iBitmap = new (ELeave) CFbsBitmap();rn User::LeaveIfError(iBitmap->Load(*bmpFile,EMbmBigbonusHaidian));rn rnrn CleanupStack::PopAndDestroy( bmpFile );rnrn ActivateL();rnrnrn在执行 User::LeaveIfError(iBitmap->Load(*bmpFile,EMbmBigbonusHaidian)); 这个代码的时候产生了“<em>system</em> <em>error</em> 25” 的系统错误, 请高手帮忙分析以下原因!rn
system error 急救
开机后系统出现对话框"系统已从严重错误中恢复过来~~~~~~"rn可是我上次关机并没有错误关机和什么错误操作呀rn我查看了事件ID:1003rn错误代码 100000be,参数1 bf87c325,参数2 06944021,参数3 f5e8a0f8,参数4 0000000c。 rn而且我机器有时经常无故重启,死机什么的.rn各位帮帮忙
SQL system error 的问题
本人目前所用的操作系统AS/400,在db2中执行sql语句的时候<em>报错</em>:rn[SQL0901] SQL <em>system</em> <em>error</em>. Cause . . . . . : An SQL <em>system</em> <em>error</em> has occurred. The current SQL statement cannot be completed successfully. The <em>error</em> will not prevent other SQL statements from being processed. Previous messages may indicate that there is a problem with the SQL statement and SQL did not correctly diagnose the <em>error</em>. If precompiling, processing will not continue beyond this statement. Recovery . . . : See the previous messages to determine if there is a problem with the SQL statement. To view the messages, use the DSPJOBLOG command if running interactively, or the WRKJOB command to view the output of a precompile. An application program receiving this return <em>code</em> may attempt further SQL statements. Correct any <em>error</em>s and try the request again.rnrn很简单的一条语句,不知道导致错误的真正原因,有人碰到过这样的问题吗
a system error
用VS2008向导自动创建了一个Hello Word project。编译以及build都没有问题,但是在运行的时候出现 cutil64D.dll is missing的<em>error</em> 求指教,只是怎么回事儿?
stop:c000021aFATE System Error
[img=https://img-bbs.csdn.net/upload/201707/10/1499698759_795677.jpg][/img]rnstop:c000021aFATE System ErrorrnrnThe Verification of a knownDLL failed.<em>system</em> process terminated unexpactedly with a status of 0×c000012f(0×9a4f1e60 0×00000000).rnThe <em>system</em> has been shut downrnrnrn强制关机后一直蓝屏<em>报错</em>进不了系统,安全模式都进不了,电脑有重要软件不能重装系统,大神们还有什么方法可以挽回吗。
Error Loading opearting System
以前硬盘上装的是双系统(RedHat + Window2003),系统一直是用grub引导的,昨天在Windows下将Linux的系统所在的分区给格式化了,机器重启之后,总是进入rngrub>rn这样的提示状态,不能引导,今天我用Windows的安装盘在故障恢复台下面使用了fixmbr的命令,结果就出现了系统重启之后就出现了Error Loading opearting System的错误提示,连grub>也没有了, 现在不知道该怎样进入Windows,请帮忙解决一下,非常感谢......
sos !! system error
最近郁闷死了rn模拟器一运行,系统界面都还进去就报 <em>system</em> <em>error</em> rnrn都说可以 创建一个 c\<em>system</em>\bootdata\ErrRd 来记录错误。。rn但是我试了,不管用,不会记录错误。。rnrn我的电脑中是在 :rnC:\Symbian\8.0a\S60_2nd_FP2_CW\Epoc32\winscw\c\<em>system</em>\bootdata\ErrRd rn莫非是因为还没进入系统,程序没运行就不记录了。rnrn小弟 用的是carbide 1.3 symbian 2rd SDK: S60_2nd_FP2_CWrn哪位大侠知道原因,请拉小弟一把。rn
求教 system error:53
#ifndef UNICODE rn#define UNICODE rn#endif rn rn#include rn#include rn#include rn#pragma comment(lib , "Netapi32.lib") rnint wmain(int argc, wchar_t *argv[]) rn rn DWORD dwLevel = 10; rn LPUSER_INFO_10 pBuf = NULL; rn NET_API_STATUS nStatus; rn rn if (argc != 3) rn rn fwprintf(stderr, L"Usage: %s \\\\ServerName UserName\n", argv[0]); rn exit(1); rn rn // rn // Call the NetUserGetInfo function; specify level 10. rn // rn nStatus = NetUserGetInfo(argv[1], rn argv[2], rn dwLevel, rn (LPBYTE *)&pBuf); rn // rn // If the call succeeds, print the user information. rn // rn if (nStatus == NERR_Success) rn rn if (pBuf != NULL) rn rn wprintf(L"\n\tAccount: %s\n", pBuf->usri10_name); rn wprintf(L"\tComment: %s\n", pBuf->usri10_comment); rn wprintf(L"\tUser comment: %s\n", pBuf->usri10_usr_comment); rn wprintf(L"\tFull name: %s\n", pBuf->usri10_full_name); rn rn rn // Otherwise, print the <em>system</em> <em>error</em>. rn // rn else rn fprintf(stderr, "A <em>system</em> <em>error</em> has occurred: %d\n", nStatus); rn // rn // Free the allocated memory. rn // rn if (pBuf != NULL) rn NetApiBufferFree(pBuf); rn rn return 0; rn rn在vs下编译生成test.exe文件 在dos提示符进入test.exe文件所在文件夹,输入test.exe null administrator 回车后<em>报错</em> a <em>system</em> <em>error</em> has occurred:53 rn这是怎么回事呀,源文件时msdn里复制过来的 rn
阅读器关闭时 MetaData 的尝试无效
public List GetAllRoom()rn rn List rooms = new List();rn DBHelper.con.Open();rn string sql = string.Format("select RoomId,BedNum,Typename,description,roomstatename,guestnum from Room,RoomState,RoomType where Room.RoomStateID=RoomState.RoomStateID and Room.RoomTypeID=RoomType.TypeID");rn SqlCommand com = new SqlCommand(sql, DBHelper.con);rn SqlDataReader read = com.ExecuteReader();rn while (read.Read())rn rn Room room = new Room();rn room.RoomId = Convert.ToInt32(read[0]);rn room.BedNum = Convert.ToInt32(read[1]);rn room.Description =read[3].ToString();rn room.GuestNum = Convert.ToInt32(read[5]);rn room.RoomTypeId = GetRoomTypeIdByName(read[2].ToString()); //查出来的是typename 所以要写方法得到typeidrn rn //room.RoomStateId = GetRoomStateIdByName(read[4].ToString()); //同上rn rn rooms.Add(room);rn DBHelper.con.Close();rn read.Close();rn rn return rooms;rn rnrnrnrnrnrnrnrnrn private int GetRoomTypeIdByName(string typename) //通过房间类型名称或者房间类型IDrn rn int typeid = 0;rn tryrn rn DBHelper.con.Open();rn rn string sql = string.Format("select Typeid from RoomType where TypeName='0'", typename);rn SqlCommand com = new SqlCommand(sql, DBHelper.con);rn typeid = Convert.ToInt32(com.ExecuteScalar().ToString());rn rn catch (Exception ex)rn rn Console.WriteLine(ex.Message);rn rn finallyrn rn DBHelper.con.Close();rn rn return typeid;rnrnrn rnrnrnrnrnrnrn还有个DHHelper类中我放了一个连接字符串。。 但是走到这个位置的时候,就会<em>报错</em>room.RoomTypeId = GetRoomTypeIdByName(read[2].ToString()); rn说是阅读器<em>关闭</em>时 MetaData 的尝试<em>无效</em> 我查了一些资料,应该就是datareader的<em>关闭</em>的问题,就是想不出来怎么去修改,有清楚的可以麻烦告诉我一下被
阅读器关闭时 MetaData 的尝试无效
[<em>code</em>=C#] public static List GetAllBook()rn rn List books = new List();rn string sql = "select * from books";rn using (SqlDataReader reader = DBHelper.GetDataReader(sql))rn rn while (reader.Read())rn rn Book book = new Book();rn book.Id = Convert.ToInt32(reader["id"]);rn book.Title = reader["Title"].ToString();rn book.Author = reader["Author"].ToString();rn book.PublishDate = reader["PublishDate"].ToString();rn book.ISBN = reader["ISBN"].ToString();rn book.WordsCount = Convert.ToInt32(reader["WordsCount"]);rn book.UnitPrice = Convert.ToDouble(reader["UnitPrice"]);rn book.ContentDescription = reader["ContentDescription"].ToString();rn book.AurhorDescription = reader["AurhorDescription"].ToString();rn book.EditorComment = reader["EditorComment"].ToString();rn book.TOC = reader["toc"].ToString();rn book.Clicks = Convert.ToInt32(reader["Clicks"]); rn rn book.Publisher = BookPublisherServer.GetPublisherById(Convert.ToInt32(reader["publisherId"]));rn int test = Convert.ToInt32(reader["publisherId"]);rn Console.WriteLine(test);rn book.Category = BookCategoryService.CetCategorById(test);rn books.Add(book);rn rn reader.Close();rn return books;rn rn [/<em>code</em>]rnGetPublisherById的方法:rn[<em>code</em>=C#]public static Publisher GetPublisherById(int publisherId)rn rn string sql = "select * from publishers where id = @id";rn using (SqlDataReader reader = DBHelper.GetDataReader(sql, new SqlParameter("@id", publisherId)))rn rn if (reader.Read())rn rn Publisher publisher = new Publisher();rn publisher.Id = Convert.ToInt32(reader["id"]);rn publisher.Name = reader["name"].ToString();rn reader.Close();rn return publisher;rn rn elsern rn reader.Close();rn return null;rn rn rn [/<em>code</em>]rnGetDataReader的方法:rn[<em>code</em>=C#] public static SqlDataReader GetDataReader(string sql)rn rn SqlCommand cmd = new SqlCommand(sql, Conn);rn SqlDataReader dr = cmd.ExecuteReader();rn return dr;rn rnrn public static SqlDataReader GetDataReader(string sql, params SqlParameter[] pras)rn rn SqlCommand cmd = new SqlCommand(sql, Conn);rn cmd.Parameters.AddRange(pras);rn SqlDataReader dr = cmd.ExecuteReader();rn return dr;rn [/<em>code</em>]rnSqlConnection我封装了的:rn[<em>code</em>=C#] static string str = ConfigurationManager.ConnectionStrings["connstr"].ToString();rn static SqlConnection conn;rn public static SqlConnection Connrn rn get rn if (conn == null)rn rn conn= new SqlConnection(str);rn conn.Open();rn rn else if (conn.State == System.Data.ConnectionState.Broken)rn rn conn.Close();rn conn.Open();rn rn else if (conn.State == System.Data.ConnectionState.Closed)rn rn conn.Open();rn rn else if (conn.State == System.Data.ConnectionState.Open)rn rn conn.Close();rn conn.Open();rn rn return DBHelper.conn;rn rn rn [/<em>code</em>]rnrn代码运行到:GetAllBook里面的 int test = Convert.ToInt32(reader["publisherId"]);这里就抛出异常了!!rn请问怎么解!!rn
阅读器关闭时尝试调用 Read 无效
现在提示我这段的我并没有<em>关闭</em>rs1啊,为什么?rnrn而且是在触发第二次:rn if (e.KeyCode == Keys.Space)rn rn if(lst.Count>1)rn rn timer1.Enabled = true;rn rn elsern rn MessageBox.Show("奖品数量不足", "抽奖信息出错");rn rn //开始抽奖rn rn才出现错误rnrn[<em>code</em>=C#]rn SqlConnection con = new SqlConnection(conn_str);rn SqlCommand command1 = new SqlCommand(sql_str, con);rn con.Open();rn SqlDataReader rs1 = command1.ExecuteReader();rn while (rs1.Read())rn rn tryrn rn if (File.Exists(rs1[1].ToString()))rn rn cj_names = rs1[1].ToString();rn cj_pic_path = rs1[3].ToString();rn cj_id = rs1[0].ToString();rn names.Add(cj_names);rn id.Add(cj_id);rn lst.Add(Image.FromFile(cj_pic_path));rn //重新从数据库装载LIST图片信息rn rn rnrn catch (FileNotFoundException)rn rn //忽略错误地址图片继续装入下一条图片记录rn rn con.Close();rn rnrn[/<em>code</em>]rnwhile (rs1.Read()),阅读器<em>关闭</em>时尝试调用 Read <em>无效</em>。rnrnrn[<em>code</em>=C#]rnnamespace cj_sysrnrn public partial class Form1 : Formrn rn public Form1()rn rn InitializeComponent();rn rn int i = 0;rn List lst = new List();rn List names = new List();rn List id = new List();rn string conn_str = "Server=*;Database=*;uid=sa;pwd=*";rn string sql_str = "select * from cj_main where cj_show_counts>0";rn string sql_update;rn string cj_pic_path;rn string cj_names;rn string cj_id;rnrn private void Form1_KeyDown(object sender, KeyEventArgs e)rn rn if (e.KeyCode == Keys.Space)rn rn if(lst.Count>0)rn rn timer1.Enabled = true;rn rn elsern rn MessageBox.Show("奖品数量不足", "抽奖信息出错");rn rn //开始抽奖rn rn if (e.KeyCode == Keys.Enter)rn rn timer1.Enabled = false;rn if (lst.Count > 1)rn rn string ids = label3.Text;rn //确定抽奖结果rnrn sql_update = "update cj_main set cj_show_counts = rn cj_show_counts-1 where cj_id='" + Convert.ToInt32(ids) + "'";rn SqlConnection conn = new SqlConnection(conn_str);rn SqlCommand update = new SqlCommand(sql_update, conn);rn conn.Open();rn update.ExecuteNonQuery();rn conn.Close();rn lst.Clear();rn names.Clear();rn id.Clear();rn //更新抽中图片记录的次数rnrn SqlConnection con = new SqlConnection(conn_str);rn SqlCommand command1 = new SqlCommand(sql_str, con);rn con.Open();rn SqlDataReader rs1 = command1.ExecuteReader();rn while (rs1.Read())rn rn tryrn rn if (File.Exists(rs1[1].ToString()))rn rn cj_names = rs1[1].ToString();rn cj_pic_path = rs1[3].ToString();rn cj_id = rs1[0].ToString();rn names.Add(cj_names);rn id.Add(cj_id);rn lst.Add(Image.FromFile(cj_pic_path));rn //重新从数据库装载LIST图片信息rn rn rnrn catch (FileNotFoundException)rn rn //忽略错误地址图片继续装入下一条图片记录rn rn con.Close();rn rn rn elsern rn timer1.Enabled = false;rn lst.Clear();rn names.Clear();rn id.Clear();rn MessageBox.Show("奖品数量不足","抽奖信息出错");rn //处理剩余奖品数量不足以继续抽奖,终止。rn rn rn if (e.KeyData == Keys.Escape) rn rn rn Application.Exit();rn //退出程序rn rn rnrn private void Form1_Load(object sender, EventArgs e)rn rn this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;rn this.WindowState = FormWindowState.Maximized;rnrn SqlConnection conn = new SqlConnection(conn_str);rn SqlCommand command = new SqlCommand(sql_str, conn);rn conn.Open();rn SqlDataReader rs = command.ExecuteReader();rn tryrn rn while (rs.Read())rn rn if (File.Exists(rs[3].ToString()))rn rn cj_names = rs[1].ToString();rn cj_pic_path = rs[3].ToString();rn cj_id = rs[0].ToString();rn names.Add(cj_names);rn id.Add(cj_id);rn lst.Add(Image.FromFile(cj_pic_path));rn //从数据库中取得图片信息rn rn rn rn catch (FileNotFoundException)rn rn //如果找不到图片继续寻找下一条记录rn rn conn.Close(); rn rnrn private void timer1_Tick(object sender, EventArgs e)rn rn if (lst.Count > 1)rn rn pictureBox1.Image = lst[i];rn label1.Text = names[i];rn label3.Text = id[i];rn i++;rn if (i >= lst.Count)rn rn i = 0;rn rn //窗体初始装载LIST图片rn rn elsern rn rn lst.Clear();rn names.Clear();rn id.Clear(); rn timer1.Enabled = false;rn MessageBox.Show("奖品数量不足", "抽奖信息出错");rn //数据库中已没有符合条件的记录rn rnrn rnrn rnrnrn[/<em>code</em>]
求助! 阅读器关闭时 Read 的尝试无效
问题提示:1.阅读器<em>关闭</em>时 Read 的尝试<em>无效</em>。2.未将对象引用设置到对象的实例。3.内部连接致命错误。4.不允许更改“ConnectionString”属性。连接的当前状态为正在连接。rn以上错误都会出现。rnrn一般运行程序时都没问题就是偶尔来一下。(程序是C#)rnrnrn错误源码:rnrn行 166: catch (Exception e)rn行 167: rn行 168: throw new Exception(e.Message); //提示这行有问题rn行 169: rn行 170: finallyrnrn完整源码:rnrn /// rn /// 执行Sql查询语句并返回第一行的第一条记录,返回值为object 使用时需要拆箱操作 -> Unbox rn /// rn /// 传入的Sql语句 rn /// object 返回值 rn public static object ExecuteScalar(string sqlstr)rn rn object obj = new object();rn SqlCommand comm = new SqlCommand();rn tryrn rn openConnection();rn comm.Connection = conn;rn comm.CommandType = CommandType.Text;rn comm.CommandText = sqlstr;rn obj = comm.ExecuteScalar();rn rn catch (Exception e)rn rn throw new Exception(e.Message);rn rn finallyrn rn comm.Dispose(); rn closeConnection();rn rn return obj;rn rnrnrn调用的源码:rnrn public string Get_SQL_OnlyRecord(string sql)rn rn return PS_Conn.ExecuteScalar(sql).ToString();rn rn rn public string Get_Focus_Img() rn rn rn string dataSet = Get_SQL_OnlyRecord("select FocusImg from PS_WebSet where ID = 1"); rn rn string FocusList = "\r\n";rn int Order = 0;rn string[] sArray = Regex.Split(dataSet, ",", RegexOptions.IgnoreCase);rn foreach (string i in sArray)rn rn Order++;rn if (Order ); rn这句读取数据库时有时正确,有时错误。rnrn一直找不到原因,请大家帮帮忙![<em>code</em>=C#][/<em>code</em>][<em>code</em>=C#][/<em>code</em>][<em>code</em>=C#][/<em>code</em>]
阅读器关闭时尝试调用 xxxx 无效
访问work/tlist.aspx 时,无规律的出现以下错误,但是访问 work/list.aspx就没有发现这样的情况。不知是什么原因。rnrn阅读器<em>关闭</em>时尝试调用 MetaData <em>无效</em>。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.InvalidOperationException: 阅读器<em>关闭</em>时尝试调用 MetaData <em>无效</em>。rnrn源错误: rnrnrn行 69: if (Conn.Connection.State != ConnectionState.Closed)rn行 70: rn行 71: sda.Fill(dsDataSet, startRecord, maxRecord, dsName);rn行 72: rn行 73: rn rnrn阅读器<em>关闭</em>时尝试调用 Read <em>无效</em>。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.InvalidOperationException: 阅读器<em>关闭</em>时尝试调用 Read <em>无效</em>。rnrn源错误: rnrnrn行 69: if (Conn.Connection.State != ConnectionState.Closed)rn行 70: rn行 71: sda.Fill(dsDataSet, startRecord, maxRecord, dsName);rn行 72: rn行 73: rn rnrn源文件: D:\XNGIS.OA\XNGIS.OA.C.sharp\DAL\Execute.cs 行: 71 rnrnrn我已经把代码打包传到附件里面去了,希望大家能帮我看看,谢谢。
优盘修复工具下载
优盘修复工具 快速修复U盘:不用拆机即可查询U盘的芯片型号,快速找到对应的量产工具 相关下载链接:[url=//download.csdn.net/download/ainizaitianyahai/4769564?utm_source=bbsseo]//download.csdn.net/download/ainizaitianyahai/4769564?utm_source=bbsseo[/url]
SecureCRT脚本编写心得下载
SecureCRT脚本编写心得: 作为维护CE设备的一个普通工程师,可能会有同样的问题困惑着我们——如何对众多的CE设备进行有效的巡检和维护管理?SecureCRT给我们提供了很好的平台——脚本工具制作和运行。 相关下载链接:[url=//download.csdn.net/download/u010076140/5193568?utm_source=bbsseo]//download.csdn.net/download/u010076140/5193568?utm_source=bbsseo[/url]
正则表达式计数代码行数下载
利用正则表达式计数代码中普通代码的行数,注释的行数,空白行的行数 相关下载链接:[url=//download.csdn.net/download/u011756346/7002509?utm_source=bbsseo]//download.csdn.net/download/u011756346/7002509?utm_source=bbsseo[/url]
相关热词 c# 去空格去转义符 c#用户登录窗体代码 c# 流 c# linux 可视化 c# mvc 返回图片 c# 像素空间 c# 日期 最后一天 c#字典序排序 c# 截屏取色 c#中的哪些属于托管机制
我们是很有底线的