System.out.println("eee in the file of PackageApplicationManagementAgent_ApplicationManagementAgent");
GUIAgent = new PackageGUIAgent_GUIAgent(this);
System.out.println("aab in the file of PackageApplicationManagementAgent_ApplicationManagementAgent");
中间申请对象程序就不走了,也不报错,什么问题

解决方案 »

  1.   

    很有可能是你在
    PackageGUIAgent_GUIAgent的构造函数里面对PackageGUIAgent_GUIAgent进行了new操作
    这样就会循环申请空间,导致程序一直在吃内存,运行不下去
      

  2.   

    这样写会有问题么?----   GUIAgent = new PackageGUIAgent_GUIAgent(this);
      

  3.   

    可能跟zdjray(PubSoft)说的有关
    确实是构造函数里面又用到了new,而且是好几层
    如果不是用到了new的话,单个的都能执行