android程序运行时会突然停止运行,但代码却没有错误。

在下是新手,刚接触android开发。运行程序时不止一次遇到停止运行的情况,查看代码,发现并没有任何错误提示。
以下是MainActivity.java的代码:
package com.example.sqlitetest;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class MainActivity extends Activity {
private EditText username;
private EditText password;
private Button load;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    username = (EditText) findViewById(R.id.username_main_edt);
    password = (EditText) findViewById(R.id.password_main_edt);
    load = (Button) findViewById(R.id.load_main_but);
    load.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            // TODO Auto-generated method stub
            String name = username.getText().toString().trim();
            String pwd = password.getText().toString().trim();
            if (name.equals("arong") && pwd.equals("arong")) {
                Intent intent = new Intent();
                Bundle bundle = new Bundle();
                bundle.putString("name", name);
                intent.putExtras(bundle);
                intent.setClass(MainActivity.this, FunctionActivity.class);
                startActivity(intent);
            } else {
                errorMsg(MainActivity.this, "错误提示", "登录名或密码错误!");
            }
        }
    });

}

public void errorMsg(Context context, String title, String message) {
    AlertDialog.Builder builder = new AlertDialog.Builder(context);
    builder.setTitle(title);
    builder.setMessage(message);
    builder.setPositiveButton("确定", null);
    builder.create();
    builder.show();
}

}
貌似是Intent处有问题,因为当删掉这部分的时候不会出现停止运行的问题。还请高手指教。

1个回答

你FunctionActivity这个Activity有没有在Manifest.xml中进行注册?

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
程序突然停止运行
可能是防火墙的问题: 怎么打开防火墙:控制面板--Windows防火墙--允许程序或者功能通过防火墙--允许运行另一程序 找到你需要允许程序的路径,添加进去就可以啦。 ...
运行大型程序时会突然关机
我的机器是PIIII,从去年开始,运行大型程序时如Visual Studio .NET 2005 Team suite版、Windows的安装程序或者其他大型程序时会突然关机,当时还开不了机,过几分钟后重开机器正常,但是运行大型程序还是后常常出现突然关机现象。rn请求各位大侠的帮忙。
我程序运行时会出现以下的错误,请教!
Unit_fpcx in 'FRM\Unit_fpcx.pas' frm_fpcx;rnrnrn[Fatal Error] kyGL.dpr(60): File not found: 'extEdit.dcu'rnrn是什么错误啊?我要怎样修改啊?
android停止运行app
adb shell     1. ps | grep 进程名 2.kill 进程编号 或者 am force-stop 包名   启动app adb shell am start -n 包名/类名
在程序运行的中途,突然遇到ora12571 错误
在程序运行的中途,突然遇到ora12571 错误,当时是sqlldr入大量数据或是查询大量数据的表引起的,但是一会就又好了。rn就是偶尔的 报ora12571 错误。 哪位大侠遇到过,帮助小弟下,小弟感激不尽。
怎样让程序运行到某行代码时停止运行
如rn if edit1.test='' thenrn beginrn showmessage('a');rn edit1.setfocus;rn --停止运行rn end;rn .......rnrn怎样停住程序的运行,返回呢
C#程序在win7下突然停止运行
小弟之前写了个程序,在厂里xp电脑上试用了3个月,从没出现任何问题。最近换了台win7电脑,装了相同的软件,但是在使用的时候居然偶尔出现了“软件已停止运行”,然后自动退出的错误,就像我们编程时偶尔出现的visual studio已停止运行一样。请问这可能是什么原因导致的呢?防火墙?ps:电脑上没装杀软
为什么我用TC写的程序运行时会突然关闭?
为什么我用tc写的程序编译后运行,才刚运行不到一秒就退出了? rn例如程序: rnmain() rn rnprintf("hello"); rn rn这样写很快就关闭了的! rnrn要在后面加个getch() rnmain() rn rnprintf("hello!"); rngetch(); rn rn才不会退出 rnrn这是怎么回事啊?我在书上看的教程是不用getch()的啊?
.NET程序能运行,但asp程序运行出现错误。
我的环境是:Window XP +IIS 5.1rnrn情况是这样的:我安装好IIS后,运行asp网站(.asp)成功,之后我安装了.NET FrameWork,运行C#.NET网站(.aspx)也行。现在我又想运行一个新的asp网站(.asp)就出现错误了,我试了,C#.NET网站仍然可以访问。rn运行asp网站,出现错误如下:rnrn无法提供此类型的页。 rn说明: 由于已明确禁止所请求的页类型,无法对该类型的页提供服务。扩展名“.asp”可能不正确。 请检查以下的 URL 并确保其拼写正确。 rn
Dev-C++编译没有问题但运行时会出问题
#include rnmain(int argc,char* argv[])rnint i,n;rnscanf("%d",i);rnint* str1;rnstr1=(int*)calloc(i,sizeof(int));rnfor(n=0;n
弹出错误框 停止运行
弹出错误框 停止运行rn用return和if语句 直接跳出,对话框没有弹出
socket编程 java程序运行了两三天后突然线程停止
socket编程:java程序运行了两三天后突然线程停止,程序是部署在tomcat上面的 ,线程隔两三天后莫名其妙停止了,没有任何异常,tomcat还是启动的。程序主要是有两个线程一直在跑,其中一个是一个死循环通过socket和服务器进行长连接,另一个是定时的执行发送短信的操作,短信是从数据库中定时的取出的。rn程序跑来两三天都是正常的 但是过不久莫名其妙的两个线程都不执行了,没有任何异常 不执行任何操作,tomcat正常跑着。rn这时只有重启tomcat程序才重新开始执行。不知道是什么原因 请大家分析分析怎么解决这个问题?谢谢了
控制台程序运行异常停止
代码如下:#include rnint main()rnrn HANDLE hOut;rn hOut = GetStdHandle(STD_OUTPUT_HANDLE);rn CONSOLE_SCREEN_BUFFER_INFO bInfo;rn GetConsoleScreenBufferInfo(hOut, &bInfo);rn char str[]="我勒个去,太蛋疼了吧!";rn int x1(0),x2(0),y1(0),y2(0),Charlen(0);rn Charlen = static_cast(strlen(str));rn x1 = bInfo.srWindow.Left + 5;rn y1 = bInfo.srWindow.Top + 5;rn x2 = x1 + 6;rn y2 = y1 + 6;rn WORD att0 = BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED | BACKGROUND_INTENSITY;rn WORD att1 = FOREGROUND_INTENSITY;rn COORD posShadow = x1, y1,posText = x2, y2;rn for(int i=0;i!=5;i++)rn FillConsoleOutputAttribute(hOut, att0, Charlen+5, posShadow,NULL);posShadow.Y++; rn CloseHandle(hOut);rn system("pause"); rn return 0; rn rn
Hibernate程序运行到org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory 停止
rn rnrn rn rn com.mysql.jdbc.Driverrn rn rn jdbc:mysql:///hibernatern rn rn rootrn mysqlROOTrnrnrn rnrn rn org.hibernate.dialect.MySQLDialectrnrn rnrn truernrn rnrn truernrn rnrn updaternrn rnrn rnrn rnrnrnrnrnperson.hbm.xmlrnrnrn rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rn rn rn rn rn rn rn rnrn rn rn rn rn rn rn rn rnrn rn rn rn rn rn rn rn rnrn rn rn rn rn rn rnrnrn rnrnrnrnrn测试代码:rn@Beforern public void setUp() throws Exception rn System.out.println("------setUp---初始化测试资源-----");rn Configuration config = new Configuration().configure();rn ServiceRegistry sr = new StandardServiceRegistryBuilder()rn .applySettings(config.getProperties()).build();rn sessionFactory = config.buildSessionFactory(sr);rn session = sessionFactory.openSession();rn rnrn @Testrn public void testAdd() rnrn Person p = new Person();rn p.setName("tom2");rn p.setAge(12);rn p.setBirthday(new java.util.Date());rnrn String[] array = "A", "B", "C" ;rn p.setMy_Array(array);rnrn ArrayList list = new ArrayList();rn list.add("List!");rn list.add("映射");rn list.add("测试!");rn p.setMy_List(list);rnrn HashMap map = new HashMap();rn map.put(1, "Map!");rn map.put(2, "映射!");rn map.put(3, "测试!");rn p.setMy_Map(map);rnrn HashSet set = new HashSet();rn set.add("Set!");rn set.add("映射!");rn set.add("测试!");rn p.setMySet(set);rnrn tx = session.beginTransaction();rn session.persist(p);rn tx.commit();rnrn rnrn @Testrn public void testGet() rn Person p = (Person) session.get(Person.class, 2);rn System.out.println(p);rn rnrn /**rn * 释放测试数据rn * rn * @throws Exceptionrn */rn @Afterrn public void tearDown() throws Exception rn System.out.println("------tearDown---释放测试数据---");rn session.close();rn sessionFactory.close();rn rnrnPerson类:rnpublic class Person rnrn private Integer id;rn private String name;rn private int age;rn private Date birthday;rnrn private String[] my_Array;rn private List my_List;rn private Map my_Map;rn private Set my_Set;rnrn public String[] getMy_Array() rn return my_Array;rn rnrn public void setMy_Array(String[] my_Array) rn this.my_Array = my_Array;rn rnrn public List getMy_List() rn return my_List;rn rnrn public void setMy_List(List my_List) rn this.my_List = my_List;rn rnrn public Map getMy_Map() rn return my_Map;rn rnrn public void setMy_Map(Map my_Map) rn this.my_Map = my_Map;rn rnrn public Set getMySet() rn return my_Set;rn rnrn public void setMySet(Set mySet) rn this.my_Set = mySet;rn rnrn public Person(String name, int age, Date birthday, String[] my_Array,rn List my_List, Map my_Map, Set my_Set) rn super();rn this.name = name;rn this.age = age;rn this.birthday = birthday;rn this.my_Array = my_Array;rn this.my_List = my_List;rn this.my_Map = my_Map;rn this.my_Set = my_Set;rn rnrn public Person() rn rnrn @Overridern public String toString() rn return "Person [id=" + id + ", name=" + name + ", age=" + agern + ", birthday=" + birthday + "]";rn rnrn public Integer getId() rn return id;rn rnrn public void setId(Integer id) rn this.id = id;rn rnrn public String getName() rn return name;rn rnrn public void setName(String name) rn this.name = name;rn rnrn public int getAge() rn return age;rn rnrn public void setAge(int age) rn this.age = age;rn rnrn public Date getBirthday() rn return birthday;rn rnrn public void setBirthday(Date birthday) rn this.birthday = birthday;rn rnrnrnrn请问是为什么呀,小弟初学Hibernate
怎么样停止程序运行?
在我的界面中有一个进度条正在拷贝文件,旁边有一个取消button,我想在拷贝的过程中可以终止拷贝,请问button的onclick事件怎么写?
程序运行到某个过程停止?
代码如下:nn```#include"stdio.h"n#include"stdlib.h"n#include"malloc.h"nint *add(int *a,int *b)nn int digit1=_msize(a)/4;n int digit2=_msize(b)/4;n int digit=_msize(a)/4>=_msize(b)/4?_msize(a)/4:_msize(b)/4;n printf("enter:a=");n for(int i=0;i
如何停止程序运行??
rn在 一个页面 .aspx 中包含了几个用户控件rnrn我们知道在执行程序时候,是先执行 .aspx 的 Page_Load() 然后在执行 用户控件的 Page_Load()rnrn可是我现在aspx的Page_Load()程序里有个判断,如果成立就停止并显示提示信息,而系统会继续去执行用户控件中的 Page_Load() ,如何不让它执行rnrn我用了Response.End() 没有用,根本没有输出rnrn
如何停止正在运行,但检测出错的代码?
我提交用户数据的按钮代码下面,对于关键部分,使用了如下保护,我希望能够在程序运行时,catch到错误,程序能够停止下来,所以我在catch结构里面使用了return;,但是我发现Return之后,程序还会继续运行下面的代码,请问如何停止程序?rnrn会继续执行出错后的代码,rnrnrn......rn......rn......rnrntryrnrn ......rn ......rn ......rnrncatch(...)rnrn ...... rn return;rnrnrn......rn......rn......rn
tomcat突然停止
我的tomcat运行一段时间后突然停止了,后来在bin目录找到hs_err_pid564.log这个文件,文件内容如下:请大侠指教。rnrn我的tomcat运行环境是jdk 1.6,tomcat 6.0,服务器环境是winow server 2008,16G内存。。rnrn#rnrn# A fatal error has been detected by the Java Runtime Environment: rn# rn# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7749e23e, pid=564, tid=2644 rn# rn# JRE version: 6.0_22-b04 rn# Java VM: Java HotSpot(TM) Client VM (17.1-b03 mixed mode, sharing windows-x86 ) rn# Problematic frame: rn# C [ntdll.dll+0x2e23e] rn# rn# If you would like to submit a bug report, please visit: rn# http://java.sun.com/webapps/bugreport/crash.jsp rn# The crash happened outside the Java Virtual Machine in native code. rn# See problematic frame for where to report the bug. rn# rnrn--------------- T H R E A D --------------- rnrnCurrent thread (0x071ca000): JavaThread "http-9080-48" daemon [_thread_in_native, id=2644, stack(0x1f980000,0x1f9d0000)] rnrnsiginfo: ExceptionCode=0xc0000005, reading address 0x086e7f44 rnrnRegisters: rnEAX=0x77c53a72, EBX=0x15085440, ECX=0x087b0000, EDX=0x15085440 rnESP=0x1f9cd2d8, EBP=0x1f9cd30c, ESI=0x086e7f40, EDI=0x15085438 rnEIP=0x7749e23e, EFLAGS=0x00010202 rnrnTop of Stack: (sp=0x1f9cd2d8) rn0x1f9cd2d8: 00000000 087b0000 15085440 774e041d rn0x1f9cd2e8: 1ed3acdb fffffffe 774a3b23 774a3b4e rn0x1f9cd2f8: 0000009e 000000a8 6c9ee442 6c9ee440 rn0x1f9cd308: 15085438 1f9cd324 7749dea3 15085440 rn0x1f9cd318: 6c9ee448 15085440 15085438 1f9cd338 rn0x1f9cd328: 756f14d1 087b0000 00000000 15085440 rn0x1f9cd338: 1f9cd378 1000aedd 087b0000 00000000 rn0x1f9cd348: 15085440 6beadafa 6c9ee448 0000009e rnrnInstructions: (pc=0x7749e23e) rn0x7749e22e: c1 ee 03 33 f0 33 35 a4 00 57 77 89 7d fc 33 f1 rn0x7749e23e: 8b 46 04 89 45 f4 c6 47 07 80 c6 47 06 00 8b 5e rnrnrnStack: [0x1f980000,0x1f9d0000], sp=0x1f9cd2d8, free space=1341f9ccdbck rnNative frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) rnC [ntdll.dll+0x2e23e] rnC [ntdll.dll+0x2dea3] rnC [kernel32.dll+0x114d1] rnC [sbojni.dll+0xaedd] rnrnJava frames: (J=compiled Java code, j=interpreted, Vv=VM code) rnJ com.sap.smb.sbo.wrapper.com.Dispatch.invokev(Ljava/lang/Object;Ljava/lang/String;III[Lcom/sap/smb/sbo/wrapper/com/Variant;[I)Lcom/sap/smb/sbo/wrapper/com/Variant; rnJ com.sap.smb.sbo.wrapper.com.Dispatch.call(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)Lcom/sap/smb/sbo/wrapper/com/Variant;rnj com.sap.smb.sbo.api.Items.getByKey(Ljava/lang/String;)Z+7 rnj com.sap.smb.sbo.api.SBOCOMUtil.getItems(Lcom/sap/smb/sbo/api/ICompany;Ljava/lang/String;)Lcom/sap/smb/sbo/api/IItems;+7rnj com.lt.framework.sap.SapUnit.findSapSku(Ljava/lang/String;)Lcom/sap/smb/sbo/api/IItems;+5rnJ com.lt.framework.sap.SapUnit.savoOrderToSap(Lcom/lt/framework/domain/Order;)V rnJ com.lt.helper.OrderHelper.sortingInOrder([Ljava/lang/Long;)Ljava/lang/String; rnj com.lt.control.OrderControl.sortingInOrder(Ljava/lang/String;)Ljava/lang/String;+219rnj sun.reflect.GeneratedMethodAccessor1569.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+40 rnJ sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; rnJ java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; rnJ org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(Ljava/lang/reflect/Method;Ljava/lang/Object;Lorg/springframework/web/context/request/NativeWebRequest;Lorg/springframework/ui/ExtendedModelMap;)Ljava/lang/Object;rnJ org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljava/lang/Object;)Lorg/springframework/web/servlet/ModelAndView;rnJ org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljava/lang/Object;)Lorg/springframework/web/servlet/ModelAndView;rnJ org.springframework.web.servlet.DispatcherServlet.doDispatch(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)VrnJ org.springframework.web.servlet.DispatcherServlet.doService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)VrnJ org.springframework.web.servlet.FrameworkServlet.processRequest(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Vrnj org.springframework.web.servlet.FrameworkServlet.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3rnj javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139rnj javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30rnJ org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)VrnJ org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)VrnJ com.lt.framework.core.LoginFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)VrnJ org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)VrnJ org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)VrnJ org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljavax/servlet/FilterChain;)VrnJ org.springframework.web.filter.OncePerRequestFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)VrnJ org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)VrnJ org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)VrnJ org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljavax/servlet/FilterChain;)VrnJ org.springframework.web.filter.OncePerRequestFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)VrnJ org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)VrnJ org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)VrnJ org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)VrnJ org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)VrnJ org.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)VrnJ org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)VrnJ org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)VrnJ org.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)VrnJ org.apache.coyote.http11.Http11Processor.process(Ljava/net/Socket;)V rnj org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Ljava/net/Socket;)Z+82rnJ org.apache.tomcat.util.net.JIoEndpoint$Worker.run()V rnj java.lang.Thread.run()V+11 rnv ~StubRoutines::call_stub rn
sqlserver突然停止
系统是2000professional,启动的时候也启动sqlserver。可是今天突然sqlserver停止服务了,点击桌面右下角的图片启动都不成功,请问如何解决?
oracle 服务突然停止
有个问题请教xdjm:我的oralce服务突然停止,不知道是怎么了,我又重新启动机器,oralce服务还启动不起来,我的系统是2003server,我用事件查看器看了一下,有错误发生,错误提示:OracleAgent failed to initialize its general context.我该怎么把啊,兄弟们帮个忙,我正在用阿,急死了!
jetty服务器突然停止
#rn# An unexpected error has been detected by Java Runtime Environment:rn#rn# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6dc155c7, pid=5692, tid=5976rn#rn# Java VM: Java HotSpot(TM) Server VM (11.0-b15 mixed mode windows-x86)rn# Problematic frame:rn# V [jvm.dll+0xe55c7]rn#rn# If you would like to submit a bug report, please visit:rn# http://java.sun.com/webapps/bugreport/crash.jsprn#rnrn--------------- T H R E A D ---------------rnrnCurrent thread (0x6d243c00): JavaThread "http-bio-8080-exec-3" daemon [_thread_in_vm, id=5976, stack(0x73a20000,0x73a70000)]rnrnsiginfo: ExceptionCode=0xc0000005, reading address 0x765f7074rnrnRegisters:rnEAX=0x0000a018, EBX=0x000027ff, ECX=0x0aabf538, EDX=0x72aa41acrnESP=0x73a6b758, EBP=0x000027ff, ESI=0x72aa41a8, EDI=0x765f7070rnEIP=0x6dc155c7, EFLAGS=0x00010202rnrnTop of Stack: (sp=0x73a6b758)rn0x73a6b758: 6d243c00 0aabf538 73a6b8f4 69faa920rn0x73a6b768: 69f95d20 6a70e700 0000a018 052e22b3rn0x73a6b778: 73a6b7d8 017d2fc7 69fff138 052361c0rn0x73a6b788: 6a70e6c0 00000000 00000000 017d2e61rn0x73a6b798: 017d2fc7 00000000 00000000 3bc5ae98rn0x73a6b7a8: 052361c0 69fff138 0aaeabd0 69faa920rn0x73a6b7b8: 73a6b7b8 04d98d5a 73a6b7ec 04da2f60rn0x73a6b7c8: 056b91a8 04d98d98 00000000 73a6b7e0 rnrnInstructions: (pc=0x6dc155c7)rn0x6dc155b7: 0e 8d 04 ad 1c 00 00 00 57 8b 3c 08 89 44 24 18rn0x6dc155c7: 8b 47 04 8b 50 08 8d 48 08 ff 92 8c 00 00 00 84 rnrnrnStack: [0x73a20000,0x73a70000], sp=0x73a6b758, free space=301krnNative frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)rnV [jvm.dll+0xe55c7]rnrnJava frames: (J=compiled Java code, j=interpreted, Vv=VM code)rnj H__programs_company_HRSCloud_TalentCV_grails_app_views_job51__left_gsp$_run_closure4.doCall()Ljava/lang/Object;+5296rnv ~StubRoutines::call_stubrnJ sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;rnJ sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;rnJ java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;rnJ com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;rnJ groovy.lang.MetaMethod.doMethodInvoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;rnJ groovy.lang.MetaClassImpl.invokeMethod(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;ZZ)Ljava/lang/Object;rnJ groovy.lang.Closure.call([Ljava/lang/Object;)Ljava/lang/Object;rnj groovy.lang.Closure.call()Ljava/lang/Object;+6rnj org.codehaus.groovy.grails.web.taglib.GroovyPageTagBody.executeClosure(Ljava/lang/Object;)Ljava/lang/Object;+27rnj org.codehaus.groovy.grails.web.taglib.GroovyPageTagBody.captureClosureOutput(Ljava/lang/Object;Z)Ljava/lang/Object;+89rnj org.codehaus.groovy.grails.web.taglib.GroovyPageTagBody.call()Ljava/lang/Object;+3rnj java_util_concurrent_Callable$call.call(Ljava/lang/Object;)Ljava/lang/Object;+12rnj org.codehaus.groovy.grails.plugins.web.taglib.FormTagLib$_closure9.doCall(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+1110rnv ~StubRoutines::call_stubrnJ sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;rnJ sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;rnJ java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;rnJ com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;rnJ groovy.lang.MetaMethod.doMethodInvoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;rnJ groovy.lang.MetaClassImpl.invokeMethod(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;ZZ)Ljava/lang/Object;rnJ groovy.lang.Closure.call([Ljava/lang/Object;)Ljava/lang/Object;rnj org.codehaus.groovy.grails.web.pages.GroovyPage.invokeTag(Ljava/lang/String;Ljava/lang/String;ILjava/util/Map;I)V+370rnj org.codehaus.groovy.grails.web.pages.GroovyPage$invokeTag.callCurrent(Lgroovy/lang/GroovyObject;[Ljava/lang/Object;)Ljava/lang/Object;+43rnj org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(Lorg/codehaus/groovy/runtime/callsite/CallSite;Lgroovy/lang/GroovyObject;[Ljava/lang/Object;)Ljava/lang/Object;+17rnj org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Lgroovy/lang/GroovyObject;[Ljava/lang/Object;)Ljava/lang/Object;+3rnj H__programs_company_HRSCloud_TalentCV_grails_app_views_job51__left_gsp.run()Ljava/lang/Object;+566rnj org.codehaus.groovy.grails.web.pages.GroovyPageWritable.writeTo(Ljava/io/Writer;)Ljava/io/Writer;+645rnj org.codehaus.groovy.grails.web.metaclass.RenderDynamicMethod.renderTemplateForModel(Lgroovy/text/Template;Ljava/lang/Object;Ljava/lang/Object;Ljava/io/Writer;)V+19rnj org.codehaus.groovy.grails.web.metaclass.RenderDynamicMethod.renderTemplate(Ljava/lang/Object;Lgroovy/lang/GroovyObject;Lorg/codehaus/groovy/grails/web/servlet/mvc/GrailsWebRequest;Ljava/util/Map;Ljava/io/Writer;)Z+394rnj org.codehaus.groovy.grails.web.metaclass.RenderDynamicMethod.invoke(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;+598rnj org.codehaus.groovy.grails.plugins.web.api.ControllersApi.invokeRender(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+8rnj org.codehaus.groovy.grails.plugins.web.api.ControllersApi.render(Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;+10rnj talentcv.Job51Controller.render(Ljava/util/Map;)Ljava/lang/Object;+270rnv ~StubRoutines::call_stubrnJ sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;rnJ sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;rnJ java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;rnJ com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;rnJ groovy.lang.MetaMethod.doMethodInvoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;rnJ groovy.lang.MetaClassImpl.invokeMethod(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;ZZ)Ljava/lang/Object;rnJ groovy.lang.MetaClassImpl.invokeMethod(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;ZZ)Ljava/lang/Object;rnJ groovy.lang.ExpandoMetaClass.invokeMethod(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;ZZ)Ljava/lang/Object;rnj groovy.lang.MetaClassImpl.invokeMethod(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;+10rnj org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(Lgroovy/lang/GroovyObject;[Ljava/lang/Object;)Ljava/lang/Object;+18rnj org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(Lorg/codehaus/groovy/runtime/callsite/CallSite;Lgroovy/lang/GroovyObject;[Ljava/lang/Object;)Ljava/lang/Object;+17rnj org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Lgroovy/lang/GroovyObject;[Ljava/lang/Object;)Ljava/lang/Object;+3rnJ org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Lgroovy/lang/GroovyObject;Ljava/lang/Object;)Ljava/lang/Object;rnj talentcv.Job51Controller$_closure1.doCall(Ljava/lang/Object;)Ljava/lang/Object;+1643rnv ~StubRoutines::call_stubrnJ sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;rnJ sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;rnJ java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;rnJ com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;rnj org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+19rnj org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(Lgroovy/lang/GroovyObject;[Ljava/lang/Object;)Ljava/lang/Object;+12rnj org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(Lorg/codehaus/groovy/runtime/callsite/CallSite;Lgroovy/lang/GroovyObject;[Ljava/lang/Object;)Ljava/lang/Object;+17rnj org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Lgroovy/lang/GroovyObject;[Ljava/lang/Object;)Ljava/lang/Object;+3rnJ org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Lgroovy/lang/GroovyObject;Ljava/lang/Object;)Ljava/lang/Object;rnj talentcv.Job51Controller$_closure1.doCall()Ljava/lang/Object;+98rnv ~StubRoutines::call_stubrnJ sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;rnJ sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;rnJ java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;rnJ com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;rnJ groovy.lang.MetaMethod.doMethodInvoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;rnJ groovy.lang.MetaClassImpl.invokeMethod(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;ZZ)Ljava/lang/Object;rnJ groovy.lang.Closure.call([Ljava/lang/Object;)Ljava/lang/Object;rnj talentcv.Job51Controller$_closure1.call([Ljava/lang/Object;)Ljava/lang/Object;+30rnj groovy.lang.Closure.call()Ljava/lang/Object;+6rnj talentcv.Job51Controller$_closure1.call()Ljava/lang/Object;+28rnj java_util_concurrent_Callable$call.call(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+13rnrn
android 运行服务停止的问题
android 中的一个程序使用 requestLocationUpdates 服务,每两分钟就能获取用户的当前位置。我现在想实现,当程序运行到25分钟时,运行服务就停止,如何实现呢?
Android页面跳转为什么停止运行
各位大佬,我想在有网络的情况下,在第一个界面通过输入经度纬度跳转到第二个界面调用地图显示出来,为什么一点击按钮就退出,求大佬们指教!
Android启动器停止运行的调试
一.开机时出现问题:很抱歉,”启动器“已停止运行,源码级调试如下: 日志中Java调用栈如下: 8044 03-27 15:37:40.747  3023  3039 E AndroidRuntime: FATAL EXCEPTION: setWallpaperDimension 8045 03-27 15:37:40.747  3023  3039 E AndroidRuntime
java程序运行时会存储到什么地方
程序存储的地方有五个:   1.寄存器:这是最快的存储区,因为它位于内部处理器。但是寄存器的数量极其有限,所以寄存器根据需求分配。不能直接控制,也不能再程序中感觉到寄存器存在任何迹象。   2.堆栈:位于通用的RAM中,存储快速有效,仅次于寄存器。创建程序时,系统必须知道存储在堆栈内所有项的确切的生命周期,限制了程序的灵活性。对象引用存储于堆栈中,但是java并不存储于其中。值类型直接存储在堆
开发Android 模拟运行的时候停止运行
刚学习Android开发的小白 按照书上的代码敲完之后发现模拟运行的时候显示“停止运行” 没办法打开 目前代码没什么毛病 求大神能解答一下nn这是clolenn[2017-03-22 16:27:14 - ColorCard] ActivityManager: Starting: Intent act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.colorcard/.ColorCardActivity nn[2017-03-22 16:27:14 - ColorCard] ActivityManager: Warning: Activity not started, its current task has been brought to the frontnn还有logcatn![图片说明](https://img-ask.csdn.net/upload/201703/22/1490171682_294096.png)
真机运行使用stopService,service停止了,但功能未停止。
问题详细描述: 我在activity里做了个switch控件,ischecked=true时startService(intent)。等于false时,stopService(intent)。 activity里在有代码注册的Broadcast(写成内部类,代码注册的),接收这个Service发来的信息,用来更新activity里的内容。 我的Service里,实现的是类似打电话靠近
为什么上网时会突然重启?
winXP , ISDN上网, 赛扬1.2rn
为什么图片滚动时会自动停止?
测试地址:http://www.zjzd.cn/2/;以下是此页代码:rnrn rn rn<%rn'*****************最新商品rnsqlprod = "select * from ProdMain where online=true order by AddDate desc"rnset promptprod=Server.CreateObject("ADODB.Recordset")rnpromptprod.open sqlprod,conn,1,1rnrnif promptprod.bof and promptprod.eof thenrn response.write " 您好!目前商城的商品架暂时没有 "&SubLar&SubMid&" 商品"rnelsernrn k=1rn Do While Not promptprod.eofrn response.write " "rn for i=1 to prompt_row step 1rn ProdDisc=promptprod("ProdDisc")rn if ProdDisc<>"" then ProdDisc=Autolink(ProdDisc)rn k=k+1rn %>rn rn rn rn rn <%=promptprod("ProdName")%> rn 价格: rn <%if promptprod("PriceList")=0 thenrn response.write "备货中.."rn elsern response.write ""&promptprod("PriceList")&" 元"rn end ifrn %>rn rn rn rn <%rnpromptprod.movenextrn if k>prompt_num then exit dorn if promptprod.eof then exit dorn nextrn response.write " "rn looprnend ifrn response.write " "rnrnset promptprod=nothingrn '***********************************rn %>rn rn rn
程序运行的错误
程序运行时报错rnMicrosoft JScript 运行时错误: Sys.ArgumentException: 对于控件和行为,值不能为 null。rnrn这是什么错误呀!!!!!rnrn
程序运行的错误?????????????
我的程序编译成Release版以后..在有的机器上能正常运行可在有的机器上运行是出现rn"无法定位程序输入点SetHandleContext于动态链接库KERNL32.dll上"..这是怎么回事..
这段代码怎么运行时会出错呢??
HANDLE hThread1=AfxBeginThread(rn testThread,this,CREATE_SUSPENDED,0,0,NULL);rn ResumeThread(hThread1);rn //关闭句柄rn CloseHandle(hThread1);rnrn奇怪,线程函数没问题的,.....???
java程序运行突然中断异常
系统部署完成后开始运行正常,进行了少部分操作后,突然无法访问,查看后台日志报如下错误 # # A fatal error has been detected by the Java Runtime Environment: # #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000039a6277, pid=13340, ti
帮我调试这代码......运行时会出错.....
double (*pFunc) (double);rn#includern#includerndouble Sum(double (*pFunc)(double),double dStart,double dEnd);rnvoid main()rnrn double dSum;rn dSum=Sum(sin,0.3,1.0);rn printf("对位于的角示SIN和,SIN=和=%f\n",dSum);rn dSum=Sum(cos,2.0,6.0);rn printf("对位于的角示COS和,COS=和=%f\n",dSum);rn getch();rnrndouble Sum(double (*PFunc)(double),double dStart,double dEnd)rnrn double dSum=0.0;rn double d;rn for(d=dStart;d
silverlight项目运行突然出现错误
我的是silverlight 4的项目,本来是好好的可以运行,rn可以有一次,运行项目的时候突然提示我升级5 ,我没升级,然后项目就都不能用了。rnrn现在一运行工程就提示错误rn[img=http://hi.csdn.net/attachment/201203/6/168732_1331002206kBl7.jpg][/img]rn第一行是这样的[img=http://hi.csdn.net/attachment/201203/6/168732_1331002206yZGa.jpg][/img]rnrn7行引用的是一个类库。rnrn我从新安装过几遍4还不行。类库的csproj文件里的版本号是3,最开始项目可以运行的时候,我装的4,可以用这工程。现在就提示找不到类库,我就得把里面的版本号改成4,可以找到类库,但就是提示错误。。。rnrn
MyEclipse运行web项目突然出现页面加载错误
[img=https://img-bbs.csdn.net/upload/201805/08/1525768813_439840.jpg][/img]rnMyEclipse for mac 2014rn今天下午突然出现的东西,网上也没找到解决方法,有知道的吗[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/37.gif][/img]
能否控制一段程序运行与停止?
比如:rn[code=C#]for(i=0;i<1000;i++)rnrn //执行代码每次估计10秒钟rn .......rn[/code]rnrn如果运行了约30秒,我点“停止”,那么它就这里的不就可能运行到3的样子,我想能记录此时的i的值,然后,我再点“继续运行”那么i就从3开始运行,这样可以吗??rnrn我想,只能停止这代码运行,记录下i的值的就好了rn......rnrnrn
紧急:关于停止程序运行的方法
我有一个程序,要进行比较复杂的递归及循环运算,没有用到多线程,就是在一个按钮的click事件中调用的函数,现在在执行的过程中我想点一个按钮停止执行,请问用什么代码?rn如果以后用到多线程的话该怎么停止执行rn小弟出来诈道,分不多,请大家帮忙
运行Android错误?
我运行android程序的错误主要是当我跑程序时错误提示为rn"ox00474a63"指令引用的“ox0000ffff”内存,该内存不能为“read”rn然后虚拟机就不动了!哪一个高手帮一下忙啊!感激不尽rn不要跟我说是系统问题要我换系统,这个会让我很崩溃的额
相关热词 c#部署端口监听项目、 c#接口中的属性使用方法 c# 昨天 c#func链接匿名方法 c#怎么创建文件夹 c#从键盘接收空格 c#da/ad c#部门请假管理系统 c#服务器socket c# 默认的访问修饰符