一个简单的例子无法运行,有手机3D开发经验的朋友请指点一下是什么问题
//public class FrameWork extends FullCanvas implements Runnable
public class FrameWork extends Canvas implements Runnable
{
private Main main;
private Display display;
public static boolean bRunning;
public static int iWidth;
public static int iHeight;
public FrameWork(Main main, Display display)
{
this.main = main;
this.display = display;
bRunning = true;
bFirstInit = true;
iWidth = getWidth();
iHeight = getHeight();
loadAll();
}
public void run()
{
while (bRunning)
{
Main.sleep(1000);
update();
}
}
private Graphics3D g3d;
private World world;
private Camera camera;
public void loadAll()
{
try
{
Object3D[] objList = Loader.load("/map.m3g");
g3d = Graphics3D.getInstance();
for (int i=0; i<objList.length; ++i)
{
if (objList[i] instanceof World)
{
world = (World) objList[i];
break;
}
}
objList = null;
}
catch (Exception e)
{
//
}
}
public void update()
{
repaint();
}
public void paint(Graphics g)
{
g3d.bindTarget(g);
g3d.render(world);
g3d.releaseTarget();
// System.gc();
}
}
我用的是索爱K750模拟器,报的错为:
Error condition -1 on socket 4920
Windows error code 10055
请帮忙分析下是什么问题,谢谢!!!