Unhandled exception: java.io.UnsupportedEncodingException Android项目字符集问题

paramBuffer.toString().getBytes("UTF-8")
paramBuffer是一个StringBuffer,在Android项目中引用直接报下面的错误,但是在Javaweb项目里面就可以正常运行,这是怎么回事,求各位大神解答
图片说明

1个回答

这只是抛出一个异常,try...catch...一下就好了,因为charset参数是String,所以要做一个异常抓取很正常的

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
unhandled exception
[img=https://img-bbs.csdn.net/upload/201404/23/1398243579_456032.jpg][/img]rn调试到这,出了这个错unhandled exception [img=https://img-bbs.csdn.net/upload/201404/23/1398243869_767145.jpg][/img],我跟踪了下,貌似strDBText返回为0[img=https://img-bbs.csdn.net/upload/201404/23/1398243667_649393.jpg][/img]。rn我数据库连接成功了哈。rn[img=https://img-bbs.csdn.net/upload/201404/23/1398243757_585741.jpg][/img]rnrn
Unhandled exception in ......
我做了一个基于对话框的小程序,用于处理实验数据,在没有输入数据并处理的情况下,点击最小化会出现Unhandled exception in ......,但是完成一次处理后,点击最小化又没问题。任何时候点击关闭和最大化均没问题。
Unhandled exception……
在做数据库连接的时候,成功连上了数据库,但是程序出不来,调试了下在这里出现了错误:rntryrnrn m_pRecordset->Open(_variant_t("SELECT * FROM UserInfo"),rn theApp.m_pConn.GetInterfacePtr(),rn adOpenDynamic,rn adLockOptimistic,rn adCmdText);rnrn单步调试的时候在这个地方: rninline _variant_t::_variant_t(IDispatch* pSrc, bool fAddRef) throw()rnrn V_VT(this) = VT_DISPATCH;rn V_DISPATCH(this) = pSrc;rnrn // Need the AddRef() as VariantClear() calls Release(), unless fAddRefrn // false indicates we're taking ownershiprn //rn if (fAddRef) rn V_DISPATCH(this)->AddRef();rn rnrn提示:Unhandled exception in try4.exe:0xC000000h:Access Violationrn==========================================rn这个是什么错误,看了msdn好像是什么bug,英文不好不知道理解错没。以前做数据库连接的时候还没有发现这个问题。
unhandled exception ?
See the end of this message for details on invoking rnjust-in-time (JIT) debugging instead of this dialog box.rnrn************** Exception Text **************rnSystem.Data.SqlClient.SqlException: 列名 'P0902050010' 无效。rn at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)rn at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)rn at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)rn at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)rn at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()rn at System.Data.SqlClient.SqlDataReader.get_MetaData()rn at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)rn at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)rn at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)rn at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)rn at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)rn at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)rn at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)rn at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)rn at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)rn at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)rn at XiaoMain.GetSql.GetDs(SqlConnection conn, String sqlstr) in D:\C#\XiaoMain\XiaoMain\XiaoMain\GetSql.cs:line 109rn at App.FrmHwOrderFinish.LoadData()rn at App.FrmHwOrderFinish.Filter_Click(Object sender, EventArgs e)rn at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)rn at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)rn at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)rn at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)rn at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)rn at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)rn at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)rn at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)rn at System.Windows.Forms.Control.WndProc(Message& m)rn at System.Windows.Forms.ScrollableControl.WndProc(Message& m)rn at System.Windows.Forms.ToolStrip.WndProc(Message& m)rn at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)rn at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)rn at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)rnrnrn************** Loaded Assemblies **************rnmscorlibrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework2.0.50727/mscorlib.dllrn----------------------------------------rnXiaoMainrn Assembly Version: 1.0.0.0rn Win32 Version: 1.0.0.0rn CodeBase: file:///D:/Debug/凭证接口.exern----------------------------------------rnSystem.Windows.Formsrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dllrn----------------------------------------rnSystemrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dllrn----------------------------------------rnSystem.Drawingrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dllrn----------------------------------------rnSystem.Datarn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dllrn----------------------------------------rnSystem.Xmlrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dllrn----------------------------------------rnSystem.Configurationrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dllrn----------------------------------------rnSystem.Transactionsrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dllrn----------------------------------------rnSystem.EnterpriseServicesrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dllrn----------------------------------------rnApprn Assembly Version: 1.0.0.0rn Win32 Version: 1.0.0.0rn CodeBase: file:///D:/Debug/App.DLLrn----------------------------------------rnrn************** JIT Debugging **************rnTo enable just-in-time (JIT) debugging, the .config file for thisrnapplication or computer (machine.config) must have thernjitDebugging value set in the system.windows.forms section.rnThe application must also be compiled with debuggingrnenabled.rnrnFor example:rnrnrn rnrnrnWhen JIT debugging is enabled, any unhandled exceptionrnwill be sent to the JIT debugger registered on the computerrnrather than be handled by this dialog box.rnrnrn详细信息见上面。rn我在本机上没有问题rn提交给客户后出错。请大家帮忙。
Unhandled exception
运行用vs2005的c++写的一个程序,弹出错误Unhandled exception at 0x10227bd0 (msvcr80d.dll) in NMS.exe: 0xC0000005: Access violation reading location 0x0000000a.什么意思?怎么改啊?里面用到了一个线程。而且程序开始运行一天就崩溃了。内存泄露都有哪些方面的原因啊?
unhandled exception!
void CSoilDlg::Traversal(CString path) rnrn CString file_pathL,file_pathR;rn SetCurrentDirectory(path);rn CFileFind finder;rn BOOL bWorking = finder.FindFile("*.*");rn while (bWorking)rn rn bWorking = finder.FindNextFile();rn if(finder.IsDirectory() && !finder.IsDots())rn rn path=finder.GetFilePath();rn path+='\\';rn Traversal(path);rn rn elsern rn if(finder.IsDots())rn continue;rn rn file_pathL=finder.GetFilePath();rnrnrn if(!bWorking)rn break;rn elsern rn bWorking = finder.FindNextFile();rn file_pathR=finder.GetFilePath();rnrn //将左旋文件的路径保存在FilePathL中rn //将右旋文件的路径保存在FilePathR中rn CString str,str1;rn str1=file_pathL.Left((file_pathL.ReverseFind('.'))).Right(1);rn if(str1=="R")rn rn str=file_pathL;rn file_pathL=file_pathR;rn file_pathR=str;rn rn DataProcess(file_pathL,file_pathR);rn rn rnrn rnrn path=path.Left(path.ReverseFind('\\'));rn path=path.Left(path.ReverseFind('\\'));rn// path+='\\';rn SetCurrentDirectory(path);rn rnrnrnrn这是一个递归调用,遍历超找某路径下,所有文件夹下的所有文件并处理。rn单步调试的时候,会弹出如下提示,“Unhandled exception in ***。exe:0x000005:Access Violation”rn全速运行的时候又会出现内存不能为读的错误提示。rn哎,我都快崩溃了!!!rn求大侠相助!!!!!!!!rn
struts1.3 问题 Unhandled exception
感谢帮助rnrn错误信息rn警告: Unhandled exceptionrnjava.lang.NullPointerExceptionrn at org.apache.struts.config.FormBeanConfig.createActionForm(FormBeanConfig.java:289)rn at org.apache.struts.config.FormBeanConfig.createActionForm(FormBeanConfig.java:357)rn at org.apache.struts.chain.commands.CreateActionForm.execute(CreateActionForm.java:92)rn at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)rn at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)rn at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)rn at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)rn at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)rn at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)rn at java.lang.Thread.run(Thread.java:619)rn2009-12-20 4:07:27 org.apache.struts.chain.commands.ExceptionCatcher postprocessrn警告: Exception from exceptionCommand 'servlet-exception'rnjava.lang.NullPointerExceptionrn at org.apache.struts.config.FormBeanConfig.createActionForm(FormBeanConfig.java:289)rn at org.apache.struts.config.FormBeanConfig.createActionForm(FormBeanConfig.java:357)rn at org.apache.struts.chain.commands.CreateActionForm.execute(CreateActionForm.java:92)rn at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)rn at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)rn at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)rn at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)rn at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)rn at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)rn at java.lang.Thread.run(Thread.java:619)rn2009-12-20 4:07:27 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet action threw exceptionrnjava.lang.NullPointerExceptionrn at org.apache.struts.config.FormBeanConfig.createActionForm(FormBeanConfig.java:289)rn at org.apache.struts.config.FormBeanConfig.createActionForm(FormBeanConfig.java:357)rn at org.apache.struts.chain.commands.CreateActionForm.execute(CreateActionForm.java:92)rn at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)rn at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)rn at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)rn at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)rn at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)rn at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)rn rnrnweb.xmlrn[code=XML]rnrnrn rn actionrn org.apache.struts.action.ActionServletrn rn rn configrn /WEB-INF/struts-config.xml rn rn 2rn rn rn rn actionrn *.dorn rn rn rn index.jsprn rnrn[/code]rnrnstruts-config.xmlrn[code=XML]rnrnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn[/code]rnrnrnLoginAction.javarn[code=Java]rnpackage com.zxl.test.action;rnrnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnrnimport org.apache.struts.action.Action;rnimport org.apache.struts.action.ActionForm;rnimport org.apache.struts.action.ActionForward;rnimport org.apache.struts.action.ActionMapping;rnrnimport com.zxl.test.AccountBean;rnimport com.zxl.test.from.LoginForm;rnrnpublic class LoginAction extends Actionrnrn public ActionForward execute(ActionMapping mapping, ActionForm form,rn HttpServletRequest request, HttpServletResponse response)rn throws Exception rn LoginForm loginForm=(LoginForm)form;rn AccountBean ab=new AccountBean();rn String userName=loginForm.getUserName();rn String password=loginForm.getPassword();rn ab.setUserName(userName);rn ab.setPassword(password);rn rn if(userName.equals("admin") && password.equals("admin"))rn return mapping.findForward("success");rn elsern return mapping.findForward("fail");rn rn rnrnrn[/code]rnrnLoginForm.javarn[code=Java]rnpackage com.zxl.test.from;rnrnimport javax.servlet.http.HttpServletRequest;rnrnimport org.apache.struts.action.ActionErrors;rnimport org.apache.struts.action.ActionForm;rnimport org.apache.struts.action.ActionMapping;rnimport org.apache.struts.action.ActionMessage;rnrnpublic class LoginForm extends ActionFormrn private String userName;rn private String password;rn rn rn public void reset(ActionMapping mapping, HttpServletRequest request) rn userName=null;rn password=null;rn rn rn public ActionErrors validate(ActionMapping mapping,rn HttpServletRequest request) rn ActionErrors errors=new ActionErrors();rn if(userName==null || userName.length()<1)rn errors.add("userName",new ActionMessage("name.error"));rn else if(password==null || password.length()<1)rn errors.add("password",new ActionMessage("password.error"));rn rn return errors;rn rn public String getUserName() rn return userName;rn rn public void setUserName(String userName) rn this.userName = userName;rn rn rn public String getPassword() rn return password;rn rn public void setPassword(String password) rn this.password = password;rn rnrn[/code]rn
Unhandled exception !!!
我写了一个多线程的程序,编译通过,生成了EXE文件,但是每次执行的时候都出现一个警告,说程序出现了问题,还向我道歉(天啊!道歉有用的话,还要警察干嘛?)警告窗口上说:rn AppName:myvc12.exe ModeName:mfc42d.dllrn .................. ...................rn我点调试之后,又出现:rnUnhandled exception in MyVc12.exe(MFC42D.DLL) rnoxC0000005:Accesss Violationrn这到底是什么原因啊?rn我感觉好像跟线程没关系,因为程序才开始执行!rn(运行程序后,弹出主窗口,我点击上面的一个按钮:StartServer,然后就出现了上面的情况!)
Unhandled exception 问题
本人用C++编写一个程序,编译没错,运行就出现Unhandled exception 问题了,求各位帮忙解决一下。代码如下:rn[b]头文件:LinkList.h:[/b]rn#ifndef __LINKLIST_H__rn#define __LINKLIST_H__rn#include"iostream"rn#include rn#includern#includernrnusing namespace std;rnrnstruct LinkNodernrn string name;rn double number; //工号rn double telenumber; //电话号码rn LinkNode* next;rn LinkNode(LinkNode *ptr=NULL)next=ptr;rn LinkNode(string name,double number,double telenumber):name(name),number(number),telenumber(telenumber)rn// LinkNode(string name,double number,double telenumber,LinkNode *next):rn// name(name),number(number),telenumber(telenumber),next(next)rn;rnrnclass LinkedListrnrnpublic:rn LinkedList()first=NULL;rn ~LinkedList()Empty();;rn void create();rn LinkNode* delName(LinkNode *first,string name); //按姓名删除rn LinkNode* delNum(LinkNode* L,double i); //按工号删除rn bool insert(string name,double num,double tele,int i); //插入rn LinkNode* searchName(/*LinkNode* L,*/string name); //按姓名查找rn LinkNode* searchNum(double num); //按工号查找rn LinkNode* searchTele(double tele); //按电话查找rn void Show(); //显示通讯录rn LinkNode *first; //头指针rnprivate:rn LinkNode * Locate(int i);rn void Empty();rn rn;rnrnvoid LinkedList::Empty()rnrn LinkNode* q;rn while(first!=NULL)rn rn q=first->next;rn first->next=q->next;rn delete q;rn rnrnrnvoid LinkedList::create()rnrn LinkNode *newNode,*current= first;rn string name;rn double num,tele;rn cout<<"请输入工号:"<>num;rn cout<<"请输入姓名:"<>name;rn cout<<"请输入电话号码:"<>tele;rnrn while(num>=0)rn rn newNode=new LinkNode(name,num,tele);rn if(newNode==NULL)cerr<<"存储分配错误!"<next=newNode; [color=#FF0000] [b]//问题就出在这里[/b][/color]rn current=newNode; rn cout<<"请输入工号:"<>num;rn cout<<"请输入姓名:"<>name;rn cout<>tele;rn rn// current->next=NULL;rnrnrnLinkNode* LinkedList::delName(LinkNode *first,string name)rnrn cout<<"请输入删除人姓名: ";rn cin>>name;rn LinkNode *p=first;rn if(p->next->name!=name)rn rn p=p->next;rn rn p->next=p->next->next;rn delete p;rn return p;rnrnrnLinkNode* LinkedList::delNum(LinkNode* L,double i)rnrn LinkNode* p=L;rn cin>>i;rn if(p->number!=i)p=p->next;rn delete p;rn return p;rnrnrnLinkNode * LinkedList::Locate(int i)rnrn if(i<0)return NULL;rn LinkNode* current=first;rn int k=0;rn while(current!=NULL && knext;rn k++;rn rn return current;rnrnrnbool LinkedList::insert(string name,double num,double tele,int i)rnrnrn LinkNode* current=Locate(i);rn if(current==NULL)return false ;rn LinkNode *newNode=new LinkNode(name,num,tele);rn if(newNode==NULL)cerr<<"存储分配错误!"<next=current->next;rn current->next=newNode;rn return true;rnrnrnLinkNode* LinkedList::searchName(string name)rnrn LinkNode* L=first;rn LinkNode *p=L;rn if(p->name!=name)p=p->next;rn if(p->next=NULL)return false;rn cout<number<name<telenumber<number!=num)p=p->next;rn if(p->next=NULL)return false;rn return p;rnrnrnLinkNode* LinkedList::searchTele(double tele)rnrn LinkNode* p=first;rn if(p->telenumber!=tele)p=p->next;rn if(p->next=NULL)return false;rn return p;rnrnrnvoid LinkedList::Show()rnrn LinkNode* p=first;rn if(first==NULL)cerr<<"错误!"<name<number<telenumber<next;rn rnrnrn#endifrnrn[b]文件main.cpp:[/b]rn#include"LinkList.h"rn#includernusing namespace std;rnrnvoid jingcheng();rnvoid find();rnvoid del();rnrnvoid main()rnrn system("color lf");rn system("mode con:cols=78 lines=35");rn LinkedList L;rn jingcheng();rn int ch;rn cin>>ch;rn //while(ch!=0)rn// void xunhan()rn switch(ch)rn rn case 1:rn rn L.create();rn L.Show();rn// break;rn rn case 2:rn rn double num;rn cout<<"请输入工号:"<>num;rn string name;rn cout<<"请输入姓名:"<>name;rn double tele;rn cout<<"请输入电话号码:"<>tele;rn int i;rn cout<<"请输入序号:"<>i;rn while(num>0)rn rn L.insert(name,num,tele,i);rn cout<<"请输入工号:"<>num;rn cout<<"请输入姓名:"<>name;rn cout<<"请输入电话号码:"<>tele;rn cout<<"请输入序号:"<>i; rn rn // break;rn rn case 3:rn rn find();rn int hr;rn cin>>hr;rn switch(hr)rn rn case 1:rn rn string name;rn cout<<"请输入姓名:"<>name;rn LinkNode* p;rn if(L.first==NULL)cerr<<"未找到!"<number<name<telenumber<>num;rn LinkNode* p;rn if(L.first==NULL)cerr<<"未找到!"<number<name<telenumber<>tele;rn LinkNode* p;rn if(L.first==NULL)cerr<<"未找到!"<number<name<telenumber<>co;rn switch(co)rn rn case 1:rn rnrnrn rnrn rn rn ;rn rnrnrn[b]文件jingcheng.cpp:[/b]rn#includernusing namespace std;rnvoid jingcheng()rnrn cout<<"**********************欢迎使用员工通讯录系统*********************************"<rnusing namespace std;rnrnvoid find()rnrn cout<<"******************************************"<rnusing namespace std;rnrnvoid del()rnrn cout<<"******************************************"<
指针问题(unhandled exception)
先粘代码:rn#include rn#include rnrnmain()rnrn char* pstrar[3];rn int i;rnrn for(i=1; i<3; i++)rn rn pstrar[i]=" ";rn rnrn strcpy(pstrar[1], "hello");rn printf(pstrar[2]);rn rn return 0;rnrn编译通过,运行失败,在strcpy()处设断点,调试,出现unhandled exception in xxx:access violation.网上各种找,说是指针上的问题,我仔细看了看,我的这些用到的指针都给初始化了啊。不解。等回复。rnPS:环境VC6。0
Unhandled exception 的问题
#define NUM 100rntypedef struct numbersrnrn int letter;rn int num;rn int blank;rn int others;rnNUMBERS,*PNUMBERS;rnrnPNUMBERS *count(char *p)rnrn PNUMBERS *pcount = NULL;rn int i = 0; rn pcount = (PNUMBERS *)malloc(sizeof(PNUMBERS));rn rn while (*(p+i) != '\0')rn rn if ((*(p+i) > 'a' && *(p+i) < 'z') || (*(p+i) > 'A' && *(p+i) < 'Z'))rn rn (*pcount)->letter++;rn rn else if (*(p+i) > '0' && *(p+i) < '9')rn rn (*pcount)->num++;rn rn else if (*(p+i) == ' ')rn rn (*pcount)->blank++;rn rn elsern (*pcount)->others++;rn i++;rn rn return(pcount);rnrnrnint _tmain(int argc, _TCHAR* argv[])rn rn rn char *pstr;rn pstr = (char *)malloc(sizeof(char) * NUM);rn printf("input a string:\n");rn gets(pstr);rn PNUMBERS *presult;rn presult = count(pstr);rnrnrn一调用(*pcount)->letter++;就会爆出这个Unhandled exception的错误,高手帮忙改下。谢谢
Unhandled exception in **.exe问题
编译通过,运行响应函数,程序直接挂掉,调试运行报错Unhandled exception in **.exe:0xc0000005:Access Violationrnvoid CMunView::OnDiaoyong() rnrn rn VARIANT out;rn COleVariant filename;rn filename=szFilename;rn CoInitialize(NULL);rn IMatImgComclass *pI;rn HRESULT Hr;rn Hr=CoCreateInstance(CLSID_MatImgComclass,NULL,CLSCTX_ALL,IID_IMatImgComclass,(void**)&pI);rn Hr=pI->PopulateEdgeData(1,&out,filename);rn CoUninitialize();rnrn用到了com,PopulateEdgeData原型是这样的: virtual HRESULT STDMETHODCALLTYPE PopulateEdgeData( rn /* [in] */ long nargout,rn /* [out][in] */ VARIANT __RPC_FAR *I,rn /* [in] */ VARIANT filename) = 0;rn rn调试运行到这个函数就出错了,请教英雄rn
unhandled exception问题
刚开始学C#,以前学过C++。在C#编写中经常遇到unhandled exception问题,导致程序停止工作。求问,一般怎么解决。
GetDC() Unhandled exception问题
CWnd* pWnd = GetDlgItem(IDC_THUITU1);rn // 指针rn CDC* pDC = pWnd->GetDC();rn pWnd->Invalidate();rn pWnd->UpdateWindow();rn编译连接正常,单步调试,程序执行过程中运行到 CDC* pDC = pWnd->GetDC();出现问题rnUnhandled exception in ***.exe(MFC42D.DLL):0xC0000005:Access Violation。谢谢!
unhandled exception的问题。。
写了一个计划程序,准备放到服务器上运行的,在本地调试时无任何意外。而且工作很顺利,编译出来也运行正常。但是把几个dll和主程序放到服务器上以后,就无法运行了,每次运行都会报错提示unhandled exception has occurred in your application。 不知道怎么回事请大家帮忙分析下,以下是详细错误信息:rnrnSee the end of this message for details on invoking rnjust-in-time (JIT) debugging instead of this dialog box.rnrn************** Exception Text **************rnSystem.NullReferenceException: Object reference not set to an instance of an object.rn at Db_Config.GetBackStr(String sqlstr, SqlConnection mycon)rn at SendMailByMail.Form1.LoadingModel(Int32 _ChId, Int32 _SwfUid)rn at SendMailByMail.Form1.MailBodyStr(Int32 _UserId)rn at SendMailByMail.Form1.SendMail_Click(Object sender, EventArgs e)rn at System.Windows.Forms.Control.OnClick(EventArgs e)rn at System.Windows.Forms.Button.OnClick(EventArgs e)rn at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)rn at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)rn at System.Windows.Forms.Control.WndProc(Message& m)rn at System.Windows.Forms.ButtonBase.WndProc(Message& m)rn at System.Windows.Forms.Button.WndProc(Message& m)rn at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)rn at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)rn at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)rnrnrn************** Loaded Assemblies **************rnmscorlibrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)rn CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dllrn----------------------------------------rnSendMailByMailrn Assembly Version: 1.0.0.0rn Win32 Version: 1.0.0.0rn CodeBase: file:///D:/web/webmail/SendMailByMail.exern----------------------------------------rnSystem.Windows.Formsrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dllrn----------------------------------------rnSystemrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dllrn----------------------------------------rnSystem.Drawingrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dllrn----------------------------------------rnSystem.Datarn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dllrn----------------------------------------rnMainClassrn Assembly Version: 0.0.0.0rn Win32 Version: 0.0.0.0rn CodeBase: file:///D:/web/webmail/MainClass.DLLrn----------------------------------------rnSystem.Configurationrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dllrn----------------------------------------rnSystem.Xmlrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dllrn----------------------------------------rnSystem.Transactionsrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dllrn----------------------------------------rnSystem.EnterpriseServicesrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dllrn----------------------------------------rnrn************** JIT Debugging **************rnTo enable just-in-time (JIT) debugging, the .config file for thisrnapplication or computer (machine.config) must have thernjitDebugging value set in the system.windows.forms section.rnThe application must also be compiled with debuggingrnenabled.rnrnFor example:rnrnrn rnrnrnWhen JIT debugging is enabled, any unhandled exceptionrnwill be sent to the JIT debugger registered on the computerrnrather than be handled by this dialog box.
unhandled exception是什么问题
我是新人,用MFC在picture control控件中显示了一幅图像,想在其中画矩形,用cvRectangle函数,编译时没有问题,可点击控件运行时,出现Unhandled exception at 0x5b5797bf in XXX.exe: 0xC0000005: Access violation reading location 0xcccccccc.错误,有哪位大神知道如何解决。rn
菜鸟请教Unhandled exception type Exception问题
模型类DBUser 负责检查用户名和密码是否正确,方法名是checkUser,返回boolean值rnrnpackage cn.com.lyj.pub;rnrnimport javax.sql.DataSource;rnimport java.sql.Connection;rnimport java.sql.Statement;rnimport java.sql.ResultSet;rnimport java.sql.SQLException;rnrnpublic class DBUser rnrn DataSource dataSource;rn rn public DBUser(DataSource dataSource) rn rn this.dataSource = dataSource;rn rn rn rn public boolean checkUser(String name,String psw) throws Exceptionrn Connection connect = null;rn String strSql;rn ResultSet rs;rn boolean result=false;rn strSql = "select * from users where username='"rn + name + "' and password='" + psw + "'";rn try rn connect = dataSource.getConnection();rn Statement stmt = connect.createStatement();rn rs = stmt.executeQuery(strSql);rn if ( rs.next()) rn result=true;rn rn rn catch(SQLException ex) rn ex.printStackTrace();rn rn finallyrn if(connect!=null)rn connect.close();rn rn return result;rn rn rn rnrnrnrn在LoginAction类里面有一下引用行,rnrnDBUser dbuser = new DBUser(datasource);rnif(!dbuser.checkUser(name, psw))rn....rnrnrneclipse提示if(!dbuser.checkUser(name, psw)) 这行出现rnUnhandled exception type Exceptionrn错误rnrn请指教,谢谢。
MFC程序运行时“”unhandled exception“问题?
今天在MFC创建了一个列表控件,并且把ACESS数据库中的数据导入到列表控件中。rn连接数据源什么的都没有问题,一直到了显示按钮这一步,我用的是自己写的show函数来遍历Acess表格并且放到列表控件中。rn编译时没有问题,运行时就出现如下错误(图1),并且进入了这个界面(图2)。请问这是什么原因呢?应该如何解决?rn[img=https://img-bbs.csdn.net/upload/201605/08/1462701965_715819.png][/img]rn[img=https://img-bbs.csdn.net/upload/201605/08/1462701975_869423.png][/img]rnrn用的是按钮触发显示功能,按钮的映射函数如下:rn[code=c]void CMyDlg::OnStatr() rnrn m_listm.DeleteAllItems();rn if(m_Set.IsOpen())rn m_Set.Close();rnrn m_Set.Open(AFX_DB_USE_DEFAULT_TYPE,"月统计表");rn m_nRecordCount=this->Show();rn rnrnrnint CMyDlg::Show()rnrn int i=0;rn rn m_Set.MoveFirst();rn if(m_Set.m_column1==0)rn rn m_Set.Close();rn return i;rn rn dorn rnrn CString s;rn s.Format("%s",m_Set.m_column1);rn m_listm.InsertItem(i,s,0);rn s.Format("%.1f",m_Set.m_column2);rn m_listm.SetItemText(i,1,s);rn s.Format("%.1f",m_Set.m_column3);rn m_listm.SetItemText(i,2,s);rn s.Format("%s",m_Set.m_column4);rn m_listm.SetItemText(i,3,s);rn s.Format("%s",m_Set.m_column5);rn m_listm.SetItemText(i,5,s);rn s.Format("%.1f",m_Set.m_pm__);rn m_listm.SetItemText(i,4,s);rn rn rn i++;rn m_Set.MoveNext();rn rn while(!m_Set.IsEOF());rn m_Set.Close();rn return i;rn[/code]rn我自己一步一步检查,一直到show函数调用前都是没有问题的,程序也可以运行。自己感觉是show函数中出现了问题。请教各位大神~ 求解决~
unhandled exception access violation
用别人封装好的DLL时,调用一个函数(该函数没有参数)时出现unhandled exception in XXX.exe(XXX.DLL) 0xC0000005 rnrnAccess Violation这个错误,(XXX.DLL)就是封装好的DLL,调用里面的其他函数时没有问题。封装的DLL没有问题,在别的地方能rnrn用,请高人帮忙。rnrn
异常问题 unhandled exception
[code=C/C++]rnm_hTwain = LoadLibrary("twain_32.dll");rn if(m_hTwain)rn rn m_dpDsmEntry = (DSMENTRYPROC) GetProcAddress(m_hTwain, "DSM_Entry");rn if (m_dpDsmEntry)rn rn // 打开数据源管理器rn twuResult = m_dpDsmEntry(&m_twidOrigin,NULL, DG_CONTROL, DAT_PARENT, MSG_OPENDSM, NULL);//这里会包错,unhandled exception in TWAIN_32.DLLrnrn if (twuResult == TWRC_SUCCESS)rn rn //选择默认数据源rn twuResult = m_dpDsmEntry(&m_twidOrigin,NULL, DG_CONTROL, DAT_IDENTITY, MSG_GETDEFAULT, &m_twidSource);//但是我把其他的注释掉 执行这句却不会包那样的异常rn if (twuResult == TWRC_SUCCESS)rn rn bResult = TRUE;rn rn rn // 关闭数据源管理器rn m_dpDsmEntry(&m_twidOrigin,NULL, DG_CONTROL, DAT_NULL, MSG_CLOSEDSM, NULL);rn rn rn m_dpDsmEntry = NULL;rn rn rn // 释放 TWAIN 库rn FreeLibrary(m_hTwain);rn[/code]
急!!!!Unhandled exception错误!
这是什么错误?rn Unhandled exception in PDTQFK.exe (NTDLL.DLL):0xC0000005: Access Violationrn怎么调试到这个错误的地方?rn
求救,unhandled exception 错误。
大体代码如下:rnclass CMainFrame : public CFrameWndrnrnprotected: // create from serialization onlyrn CMainFrame();rn DECLARE_DYNCREATE(CMainFrame)rnrn// Attributesrnpublic:rn SplitterWnd wndSplitter;rn..........rn;rnvoid CMainFrame::Onsend() rnrn // TODO: Add your command handler code herern //MessageBox("hello");rn SplitterWnd &sw=wndSplitter;rn sw.ChangeView(0,1,RUNTIME_CLASS(CRecsms));rnrnBOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) rnrn if (!wndSplitter.CreateStatic(this, 1, 2)) return false;rn................rnrnvoid SplitterWnd::ChangeView(int row, int col,CRuntimeClass* pViewClass)rnrn ASSERT(pViewClass->IsDerivedFrom(RUNTIME_CLASS(CView)));rnrn CView* pView = STATIC_DOWNCAST(CView, GetPane(row, col));rn CFrameWnd* pFrame = pView->GetParentFrame();rn ASSERT(pFrame);rnrn // set up create context to preserve doc/frame etc.rn CCreateContext cc;rn memset(&cc, 0, sizeof(CCreateContext));rn cc.m_pNewViewClass = pViewClass;rn cc.m_pCurrentDoc = pView->GetDocument();rn cc.m_pNewDocTemplate = cc.m_pCurrentDoc ?rn cc.m_pCurrentDoc->GetDocTemplate() : NULL;rn cc.m_pCurrentFrame = pFrame;rnrn DeleteView(row, col); // delete old viewrnrn VERIFY(CreateView(row, col, // create new onern pViewClass,rn CSize(0,0), // will fix in RecalcLayoutrn错误发生处: &cc));rn// delete &cc;rn RecalcLayout(); // recompute layout rnrn // initialize the viewrn CWnd* pWnd = GetPane(row, col);rn if (pWnd)rn pWnd->SendMessage(WM_INITIALUPDATE);rnrn我把窗口分割成左右两个,通过void CMainFrame::Onsend() 切换右边视图窗口,其中SplitterWnd::ChangeView(int row, int col,CRuntimeClass* pViewClass)是从另外的工程复制过来的,并且在那里运行良好。为什么在我这里运行到“错误发生处:”就出现rnUnhandled exception in 文件名.exe(MFC42D.DLL):0x0000005 Access Violation?有什么办法可以解决?谢谢先!!
“Unhandled exception at 0x01192b10 in Test.exe....”
错误提示:“Unhandled exception at 0x01192b10 in Test.exe....”rn在CUDP_Event中定义了rnSOCKET m_Socket;//存储套接字的变量rnrnbool CUDP_Event::SockOpen(USHORT iPort,DWORD luIp /* =INADDR_ANY */)rnrnm_Socket=INVALID_SOCKET; //初始化--------[color=#FF0000]发生错误!!!![/color]rnm_Socket = socket(AF_INET,SOCK_DGRAM,0);rnif (m_Socket = INVALID_SOCKET)rnrn return 0;rnrnSOCKADDR_IN acc; //地址结构rnmemset(&acc,0,sizeof(acc)); //初始化结构变量rnacc.sin_family = AF_INET;rnacc.sin_addr.S_un.S_addr = htonl(luIp);//INADDR_ANY;rnacc.sin_port = htons(iPort);rnrnif (bind(m_Socket,(const sockaddr*)&(acc),sizeof(acc) == SOCKET_ERROR)) //有错误返回“SOCKET_ERROR”,正常返回 0rnrnreturn FALSE;rnrn//////////////////////////////////////////////////////////////////////////是否组播rnif (m_bMultiCast)rnrnstruct ip_mreq ipmr;rnSOCKADDR_IN remote;rnremote.sin_addr.s_addr = htonl(m_dwMultiIp);rnrnipmr.imr_multiaddr.s_addr = remote.sin_addr.s_addr;rnipmr.imr_interface.s_addr = htonl(luIp);//INADDR_ANY;rnif (setsockopt( m_Socket, IPPROTO_IP, IP_ADD_MEMBERSHIP, rn (char *)&ipmr, rn sizeof (ipmr)) == SOCKET_ERRORrn )rnrnreturn false;rn rn rn//////////////////////////////////////////////////////////////////////////rn if (m_hEvent != WSA_INVALID_EVENT)rn rn WSACloseEvent(m_hEvent);rn m_hEvent = WSA_INVALID_EVENT;rn rn m_hEvent = WSACreateEvent(); //创建网络事件rn if (WSAEventSelect(m_Socket,m_hEvent,FD_READ|FD_WRITE|FD_CLOSE) == SOCKET_ERROR)rn rn return FALSE;rn rn m_bInitOK = TRUE;rn return TRUE;rn rn请帮忙指点。。。多谢。等着
Unhandled event loop exception
我的工程中打开了两个级联的dialog,点右上角的红叉来关闭两个dialog时,会有下面的问题,还不能debug,debug就不会出现这个问题,有出现过的帮帮忙看下,谢谢!rnrn!ENTRY org.eclipse.ui 4 0 2013-01-14 17:23:10.240rn!MESSAGE Unhandled event loop exceptionrn!STACK 0rnjava.lang.NullPointerExceptionrn at org.eclipse.draw2d.SWTEventDispatcher.dispatchMousePressed(SWTEventDispatcher.java:243)rn at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseDown(LightweightSystem.java:523)rn at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:191)rn at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)rn at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)rn at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)rn at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)rn at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)rn at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)rn at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)rn at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)rn at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)rn at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)rn at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)rn at com.csair.soc.tripedit.application.Application.start(Application.java:33)rn at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)rn at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)rn at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)rn at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)rn at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)rn at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)rn at org.eclipse.equinox.launcher.Main.run(Main.java:1410)rn at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
调试错误Unhandled exception in***.exe
void CMyDlg::OnButtonSure() rnrn // TODO: Add your control notification handler code herern UpdateData(TRUE);rn HRESULT hr;rn _RecordsetPtr pMyRecordset;rn hr=pMyRecordset.CreateInstance(__uuidof(Recordset));rn if(FAILED(hr))rn rn AfxMessageBox("Createinstance of Recordset fail!");rn return;rn rn CString strSQL;rn CString strPWD;rn _variant_t var;rn CString strUserID;rn CString strValue;rn int Quan;rn strSQL="SELECT * FROM User";rn tryrn rn hr=pMyRecordset->Open(_variant_t(strSQL),rn m_pConnection.GetInterfacePtr(),rn adOpenDynamic,rn adLockOptimistic,rn-> adCmdText);rn if(SUCCEEDED(hr))rn rn while(!pMyRecordset->adoEOF)rn rn var=pMyRecordset->GetCollect((long)0);rn if(var.vt!=VT_NULL)rn strUserID=(LPCSTR)_bstr_t(var);rn var=pMyRecordset->GetCollect("PWD");rn if(var.vt!=VT_NULL)rn strPWD=(LPCSTR)_bstr_t(var);rn var=pMyRecordset->GetCollect("Mark");rn if(var.vt!=VT_NULL)rn strValue=(LPCSTR)_bstr_t(var);rn Quan=atoi(strValue);rn if(strUserID==m_UserID&&strPWD==m_Pwd)rn rn if(Quan==1)rn StudentMes.DoModal();rn if(Quan==2)rn TeacherMes.DoModal();rn if(Quan==3)rn SchoolOffice.DoModal();rn return;rn rn pMyRecordset->MoveNext();rn rn AfxMessageBox("用户不存在或密码错误!");rn rn elsern rn AfxMessageBox("Open recordset fail!");rn rn rn catch(_com_error *e)rn rn AfxMessageBox(e->ErrorMessage());rn return;rn rn pMyRecordset->Close();rn pMyRecordset=NULL;rnrnrn如题,调试到箭头处的时候出现该错误,请高手帮忙啊,急...
动态链接库 Unhandled Exception
这里是建立的动态链接库工程里面添加的代码 rnint Message(void)rnrn MessageBox(NULL,"This is the example of testing DLL.",NULL,MB_ICONEXCLAMATION);rn return 1;rnrnrnrn这里是对菜单按钮添加的代码rnHINSTANCE handlerDLL=NULL;rntypedef int(*MESSAGE)(void);rnMESSAGE Message=NULL;rnrnrnvoid CMainFrame::OnMenuLoad() rnrn // TODO: Add your command handler code herern if(handlerDLL!=NULL)rn rn MessageBox("The OneDLL has been loaded.");rn return;rn rn handlerDLL=LoadLibrary("DLL.DLL");rn if(handlerDLL==NULL)rn rn MessageBox("Cannot Load the OneDLL.DLL");rn rn Message=(MESSAGE)GetProcAddress(handlerDLL,"Message");rnrnrnrnvoid CMainFrame::OnMenuTest() rnrn // TODO: Add your command handler code herern if(handlerDLL==NULL)rn rn MessageBox("Please Load the OneDLL.DLL first.");rn return;rn rn Message();rnrnrnrn最后运行出现了unhandled exception in Dynamic.exe .请各位高人指点。我没有看出哪里有指针越界错误
Unhandled exception type SQLException
为什么下面finally里面的东西有问题呢rnrnrnpackage Student;rnrnimport java.sql.*;rnrnpublic class Student rn rn public static void main(String[] args)rn Connection con=null;rn PreparedStatement pStatement=null;rn ResultSet rs=null;rn tryrn Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");rn catch(ClassNotFoundException se)rn System.out.println("找不到数据库驱动");rn rn tryrn con=DriverManager.getConnection("jdbc:odbc:Temp");rn String sql="select * from student";rn pStatement=con.prepareStatement(sql);rn rs=pStatement.executeQuery();rn while(rs.next())rn System.out.println(rs.getInt(1));rn System.out.println(rs.getString(2));rn rn catch(SQLException se)rn se.printStackTrace();rn finallyrn [color=#FF6600]rs.close();rn pStatement.close();rn con.close();[/color] rn rnrn
unhandled exception in svclnt.exe
程序如下:rn CSvclntDlg dlg;rn m_pMainWnd = &dlg;rn int nResponse = dlg.DoModal();//执行时报错!rn这是程序的入口,调用主窗体函数,反复测试,不知错在何处,请指教12,在我的机器上不行,但是在其他机器上可以,是何缘故?
执行错误:Unhandled exception 。
我编写了一个菜单响应函数:(通过ODBC连接数据库)rn void CODBCDemo2View::OnSaleProduct() rn rn CListCtrl& ctrList=(CListCtrl&)GetListCtrl();rn ctrList.DeleteAllItems();rn while(ctrList.DeleteColumn(0));rn UpdateWindow();rnrn CString strSQL;rn strSQL=_T("SELECT * FROM SalesBuProduct");rn if(!ShowInformation(strSQL))rn AfxMessageBox("数据获取失败!");rn rnrn ShowInformation函数定义如下:rn BOOL CODBCDemo2View::ShowInformation(CString strSQL)rn rn CRect rect;rn CListCtrl& ctrList=(CListCtrl&)GetListCtrl();rn ctrList.GetWindowRect(rect);rn tryrn BeginWaitCursor();rnrn //如果结果集已被打开,则关闭它rn if(m_pCommonRS->IsOpen()) rn //m_pCommonRS为CRecordset子类CCommonRS的对象rn rn m_pCommonRS->Close();rnrn m_pCommonRS->Open(CRecordset::dynaset,strSQL);rnrn //m_pCommonRS->Open(CRecordset::dynaset,strSQL);rn //m_pCommonRS->Open(AFX_DB_USE_DEFAULT_TYPE,strSQL); 想改改看,但是没用rnrn if(!m_pCommonRS->IsEOF())rn rn m_pCommonRS->MoveLast();rn m_pCommonRS->MoveFirst();rn rnrn //取得结果集的字段个数rn int nFieldCount=m_pCommonRS->GetODBCFieldCount();rn CODBCFieldInfo fieldinfo;rn for(int n=0;nGetODBCFieldInfo(n,fieldinfo);rn int nWidth=ctrList.GetStringWidth(fieldinfo.m_strName) + 15;rn ctrList.InsertColumn(n,fieldinfo.m_strName,LVCFMT_LEFT,nWidth);rnrn rnrn //读取记录信息rn CString strValue;rn m_pCommonRS->MoveFirst();rn int nCount=0;rn while(!m_pCommonRS->IsEOF())rn rn ctrList.InsertItem(nCount,strValue);rn for(int j=0;jGetFieldValue(j,strValue);rn ctrList.SetItemText(nCount,j,strValue);rn rn m_pCommonRS->MoveNext();rn nCount++;rn rnrn EndWaitCursor();rnrn rnrn编译可以通过,但是在执行的时候出现Unhandled exception inODBCemo2.exe(MFCD42D.DLL):0xC0000005:Access Violation .单击确定时,rn指向BOOL CRecordset::IsOpen() constrnif (m_hstmt == NULL)rn return FALSE;rn ...rnrn rn不会是说没句柄吧,该怎么解决呢,但是IsOpen函数是可以在CRecorset::Open()函数之前执行,要不怎么返回FALSE呢,那到底是什么错误呢,请大家指教,谢谢.rn
Unhandled exception 求救!!!!!!!!!!(急)
我编的一个程序有时会出现 Unhandled exception in Exp.exe 0xC0000005: Access Violation. 的错误,几次之后,就会出现 IE执行了非法操作 充气之后就没错了,不知道是怎么回事?怎样才能找到并排除错误?请各位大虾指点!!!并不是什么时候都有错误,即使进行同样的操作,也不一定出现,不太好找. 我重装过 Windows 开始还好,后来又出错了。而且重起后 IE 就不出错了,程序也不出错,但用着用着又出错了
求助,错误Unhandled exception
图书管理系统,程序附件地址:http://download.csdn.net/source/909489rn运行程序,系统维护-读盘-图书管理-图书信息输入-书号,随便输入书号出错,调试信息Unhandled exception....,根据其它查询时也经常出错,有时退出程序时出现以下警告:rnDebug Error:rnProgram: ... rnModule:rnFile: i386\chkesp.crnLine: 42rnrnThe value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.rnrn知识有限,没有解决出来,恳求大虾帮忙rn
unhandled exception 0xc0000005 错误
有一段代码是用来检测flash player版本号的:rnrn[code=C/C++]BOOL checkFlashActivexVersion()rnrn HKEY hkey = NULL;rn // if register do not have flash activex keyrn if (isKeyExists(HKEY_LOCAL_MACHINE, TEXT("SOFTWARE\\Macromedia\\FlashPlayer"), &hkey))rn rn BYTE keyvalue;rn DWORD valuelength;rn // get "CurrentVersion" valuern if(RegQueryValueEx(hkey, "CurrentVersion", NULL, NULL, &keyvalue, &valuelength) == ERROR_SUCCESS)rn rn //rn char *pfVersion = (char *)&keyvalue;rn int pv = (int)*pfVersion;rn //pfVersion++;rnrn if (pv >= '9')rn rn return TRUE;rn rn rn rnrn return FALSE;rn[/code]rnrn运行到return TRUE;的地方是出现unhandled exception 0xc0000005 错误。rn请问这是为什么?谢谢。
求助 UNHANDLED EXCEPTION kernel32.dll
我写了一个用ADO连接sql数据库的程序,在其它机子上能运行,可是在自己的机子上却不能运行,弹出对话框:内容为rn UNHANDLED EXCEPTION in 工程名.exe (kernel32.dll):0xe06d7363:microsoft c++ exceptionrn弄了好几天都没有解决,最后连系统都换了都没用,不知道怎么回事.问了好多朋友都没解决,请高手相助.rnrn
Unhandled exception at 0x774ff77d in Client.exe
做了一个客户端程序,环境是.net framework 2.0 C/S程序,开发IDE中(VS.NET 2010英文版,全部补丁打好)发生一个异常,调试环境下显示不了具体异常发生的位置,提示程序关闭或调试,选择调试后显示出以下出错信息:rnrnUnhandled exception at 0x774ff77d in Client.exe: 0xC0000005: Access violation writing location 0x00060fec.rnrnrn补充说明:这是界面上的一个按钮点击后的一个功能,有时候能过有时候不能过,通过的时候还是那些个数据,没有提示数据格式或其它的错误,但经常通不过,程序直接挂掉。:(
Unhandled exception at 0x7c812afb in XXXXX.exe:
Unhandled exception at 0x7c812afb inrn XXXXXXX.exe: 0xE0434F4D: 0xe0434f4d.rnrn程序突然出现这样的错误蹦了,怎么办?
An unhandled exception has occurred
我有一个在线运行的web站点,时不时会出现在线人数下降的情况,网站情况:rn基于.net 3.5,c#开发,部署环境:win server 2003, iis6.0 asp.net2.0。rnrn检查在线下滑的时间段,发现iis服务器的中大量存在下述事件信息,类型为warningrn[code=C#]rnEvent code: 3005 rnEvent message: An unhandled exception has occurred. rnEvent time: 6/22/2011 5:48:29 PM rnEvent time (UTC): 6/22/2011 10:48:29 AM rnEvent ID: 166b3c2bce9f4171a830d6fc9ffc58f9 rnEvent sequence: 6002 rnEvent occurrence: 3001 rnEvent detail code: 0 rn rnApplication information: rn Application domain: /LM/W3SVC/1282155927/Root-2-129532126469053750 rn Trust level: Full rn Application Virtual Path: / rn Application Path: D:\web\request\ rn Machine name: GS_GN_04_WEB rn rnProcess information: rn Process ID: 2312 rn Process name: w3wp.exe rn Account name: NT AUTHORITY\NETWORK SERVICE rn rnException information: rn Exception type: TypeInitializationException rn Exception message: The type initializer for 'Tank.Request.Global' threw an exception. rn rnRequest information: rn Request URL: http://www.gn.zing.vn/CreateLogin.aspx rn Request path: /CreateLogin.aspx rn User host address: 123.30.133.144 rn User: rn Is authenticated: False rn Authentication Type: rn Thread account name: NT AUTHORITY\NETWORK SERVICE rn rnThread information: rn Thread ID: 9 rn Thread account name: NT AUTHORITY\NETWORK SERVICE rn Is impersonating: False rn Stack trace: at Tank.Request.Global..ctor()rn at ASP.global_asax..ctor() in c:\windows\microsoft.net\Framework64\v2.0.50727\Temporary ASP.NET Files\root\b11f52b4\54c71dd4\App_global.asax.dr5yzzkb.0.cs:line 0rn rn rnCustom event details: rnrnFor more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.rn[/code]rnrn请问这是什么问题引发的啊?rnrn另外我在global.asax.cs中实现了Application_Error()接口以捕获异常信息,结果发现类似这样的异常还是捕获不到,或者说是绝大多数时间不起效,只是很偶尔的时候起效。rnrn以上问题,求高手指点。
unhandled exception in **.exe(MFC42D.DLL)
代码如下:rnUINT MTServerThread(LPVOID pParam); //线程rn//BOOL SendFile(CSocket s, CString fname);//函数声明有问题...----rnBOOL SendFile(SOCKET s, CString fname);rnUINT ServerThread(LPVOID pParam)rn rn CString params;rn char buff[512];rn bool j;rn rn HWND hDlg= FindWindow(NULL,"realserver");rn CListBox *m_list = (CListBox *)GetDlgItem(hDlg,IDC_LIST1); // 在此添加额外的初始化代码rn rn SOCKET client=(SOCKET )pParam;rn params.Format("Starting up TCP server\r\n");rn m_list->AddString(params);rn rn // SOCKET实际上是一个unsigned int类型rn SOCKET server;rn // WSADATA结构将有WSAStartup函数来填充rn WSADATA wsaData;rn // 对TCP/IP 套接字来说,sockaddr_in结构指定了套接字的地址rn // 其他协议使用相似的结构rn sockaddr_in local;rn // WSAStartup函数负责加载Winsock库的函数rn // 第一个参数用来指定想要加载的Winsock库的版本rn int wsaret=WSAStartup(0x101,&wsaData);rn // 调用成功,WSAStartup函数返回0rn // 失败的话,程序就退出rn if(wsaret!=0)rn rn return 0;rn rn // 现在我们填充sockaddr_in结构rn local.sin_family=AF_INET; // 地址家族Address familyrn local.sin_addr.s_addr=INADDR_ANY; // 要求使用当前主机配置的所有IP地址rn local.sin_port=htons((u_short)20248); // 使用的端口rn // socket函数用来创建我们的SOCKETrn server=socket(AF_INET,SOCK_STREAM,0);rn // 如果socket()函数调失败,我们退出rn if(server==INVALID_SOCKET)rn rn return 0;rn rn // 为套接字关联本地地址的函数是bind.rn // bind函数用在没有建立连接的套接字上,它的作用是绑定面向连接的或者无连接的套接字。rn // 套接字被socket函数创建以后,存在于指定的地址家族里,但它是未命名的。rn // bind函数通过安排一个本地名称到未命名的socket建立此socket的本地关联。rn // 本地名称包含3个部分:主机地址、协议号(分别为UDP或TCP)和端口号。rn if(bind(server,(sockaddr*)&local,sizeof(local))!=0)rn rn return 0;rn rn // listen函数设置套接字进入监听状态 rn // 为了接受连接,首先使用socket函数创建一个套接字,然后使用bind函数将它绑定到一个本地地址,rn // 再用listen函数为到达的连接指定一个backlog,最后使用accept接受请求的连接。rn // 函数的第二个参数是backlog值rn if(listen(server,10)!=0)rn rn return 0;rn rn // 我们需要变量在保存客户套接字,下面是这些变量的定义rn rn sockaddr_in from;rn int fromlen=sizeof(from);rn // 下面进入无限循环rn while(true)rn rn char temp[512];rn // accept() 将接受到了的客户连接rn client=accept(server,(struct sockaddr*)&from,&fromlen);rn rn j=SendFile(client,params);rn while(j=true)rn rn params.Format("File sent successfully\r\n");rn m_list->AddString(params);rn break;rn rn rn rn // 关闭客户套接字rn closesocket(client);rn rn // closesocket()关闭套接字,并且释放套接字描述表rn closesocket(server);rn // 每一个对WSAStartup的调用必须对应一个对WSACleanup的调用,这个函数释放Winsock库rn WSACleanup();rn return 0;rnrnrnrnvoid CRealserverDlg::OnButton1() rnrn rn AfxBeginThread(ServerThread,0);rn rnrnrnrnvoid CRealserverDlg::OnSelchangeList1() rnrn // TODO: Add your control notification handler code herern rnrnrnrnrnrnrnrn// int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])rn// rn// int nRetCode = 0; rn// cout << "Press ESCAPE to terminate program\r\n";rn// AfxBeginThread(ServerThread,0);rn// while(_getch()!=27);rn// return nRetCode;rn// rnrnrnrnBOOL SendFile(SOCKET s, CString fname)rn rn CFile f;rn BOOL p=f.Open("e:\\wanna.mp3",CFile::modeRead); rn char buff[1024];rn int y;rn int x;rn if(!p)rn return false;rn while(true)rn rn y=f.Read(buff,1024);rn x=send(s,buff,y,0); rn if(y<1024)rn rn f.Close();rn break;rn rn rn return true;rnrn编译通过后,运行后没有错误。点击BOTTON1,出现如下问题:rnunhandled exception in **.exe(MFC42D.DLL),0xC0000005.Access violation.
Unhandled exception in .... 很着急。。。
在对话框类中添加一个cslider,以调节显示器的Gamma值,新创建了一个以cslider为基类的cnslider类,m_SliderLcd的类型是cnslider;编译通过,可运行时出现Unhandled exception in xxx.exe 错误!!!不知道原因,请大家帮忙。。。。!!!rnrn#ifndef NewSlider_Hrn#define NewSlider_Hrnrn#if _MSC_VER > 1000rn#pragma oncern#endif // _MSC_VER > 1000rn// Newslider.h : header filern//rnrn#define MIN_POS 0rn#define MAX_POS 40rn#define POS_FACTOR 10.0rnrn#define REG_SECTION "NewSlider"rn#define REG_ENTRY "Settings"rnrn/////////////////////////////////////////////////////////////////////////////rn// CNewslider windowrnrnclass CNewslider : public CSliderCtrlrnrn// Constructionrnpublic:rn CNewslider();rnrn// Attributesrnprivate:rn WORD m_RampSaved[255*3];rnpublic:rn void RestoreGamma();rn// Operationsrnpublic:rnprivate:rn void SetGamma(float Gamma);rn int GetGammaPos();rn void Restore();rn void LoadSettings();rn void SaveSettings();rn// Overridesrn // ClassWizard generated virtual function overridesrn //AFX_VIRTUAL(CNewslider)rn protected:rn virtual void PreSubclassWindow();rn //AFX_VIRTUALrnrn// Implementationrnpublic:rn virtual ~CNewslider();rnrn // Generated message map functionsrnprotected:rn //AFX_MSG(CNewslider)rn afx_msg void OnDestroy();rn afx_msg void HScroll(UINT nSBCode, UINT nPos);rn //AFX_MSGrnrn DECLARE_MESSAGE_MAP()rn;rn#endif rnrn// tryDlg.h : header filern//rnrn#if !defined(AFX_TRYDLG_H__5ECB2D4B_CE69_48DB_A4EE_DD2BE64CF3FC__INCLUDED_)rn#define AFX_TRYDLG_H__5ECB2D4B_CE69_48DB_A4EE_DD2BE64CF3FC__INCLUDED_rnrn#if _MSC_VER > 1000rn#pragma oncern#endif // _MSC_VER > 1000rnrn#include "Newslider.h"rnrn/////////////////////////////////////////////////////////////////////////////rn// CTryDlg dialogrnrnclass CTryDlg : public CDialogrnrn// Constructionrnpublic:rn CTryDlg(CWnd* pParent = NULL); // standard constructorrnrn// Dialog Datarn //AFX_DATA(CTryDlg)rn enum IDD = IDD_TRY_DIALOG ;rn CNewslider m_SliderLcd;rn CHotKeyCtrl m_hotkey;rn CComboBox m_combo3;rn CComboBox m_combo2;rn CComboBox m_combo1;rnrn //AFX_DATArnrn // ClassWizard generated virtual function overridesrn //AFX_VIRTUAL(CTryDlg)rn protected:rn virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV supportrn //AFX_VIRTUALrnrn// Implementationrnprotected:rn HICON m_hIcon;rnrn // Generated message map functionsrn //AFX_MSG(CTryDlg)rn virtual BOOL OnInitDialog();rn afx_msg void OnSysCommand(UINT nID, LPARAM lParam);rn afx_msg void OnPaint();rn afx_msg HCURSOR OnQueryDragIcon();rn afx_msg void OnDestroy();rn //AFX_MSGrn DECLARE_MESSAGE_MAP()rn;rnrn//AFX_INSERT_LOCATIONrn// Microsoft Visual C++ will insert additional declarations immediately before the previous line.rnrn#endif // !defined(AFX_TRYDLG_H__5ECB2D4B_CE69_48DB_A4EE_DD2BE64CF3FC__INCLUDED_)rnrn
CFile open Unhandled Exception
请教一下,CFile类的Open的异常怎么样捕获?rn[code=C/C++]rnCFileException exp;rnBOOL bOK = file.Openm_strFilePath,CFile::modeCreate|CFile::modeReadWrite|CFile::modeNoTruncate|CFile::shareDenyNone,&exp );rnif ( !bOK )rnrnswitch (exp.m_cause)rn rn case CFileException::tooManyOpenFiles :rn AfxMessageBox("The permitted number of open files was exceeded");rn break;rn default:rn AfxMessageBox("文件操作发生错误");rn rn rnrn[/code]rnrn这样用有问题么?rn为什么 还是在open这里有 unhandled exceptionrn谢谢了
Unhandled exception 0XC0000005
我的一个函数rnint Minmax(int depth,int * map,int Alpha,int Beta,int player)rnrn int t;rn int bestvalue;rn int means[20];rn int change_map[100];rn //终局判断rn rn //结束判断:当到达根节点rn if (depth==0)rn rn return Value(map);rn rn elsern rn Way(means,map,player);rn for (int i=1;i <= means[0];i++) //产生系统:走法扩展rn rn for (int k=0;k<=99;k++)rn change_map[k]=map[k];rn Change(means[i],change_map,player);//改变棋盘rn t=Minmax(depth-1,change_map,Alpha,Beta,-player);rn if (player==-1) //该电脑下棋rn rn rn if (t>Alpha)rn rn Alpha=t;rn bestvalue=Alpha;rn if (depth==3) //如果是初始阶段rn rn g_Max_num=means[i]; //记录走法rn rn rn if (Alpha>=Beta)rn rn return Beta;rn rn rn elsern rn if (t=Beta)rn rn return Alpha;rn rnrn rn rn rn return bestvalue;rnrnrn调用t=Minmax(depth-1,change_map,Alpha,Beta,-player);时rn出现Unhandled exception in *.exe:0xC0000005:Access Violationrn请问如何解决啊rn
相关热词 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池 c#5.0 安装程序 c# 分页算法