jnative调用piar_compvalues方法

皮皮 2008-09-08 04:45:52
messageBox =new JNative("piapi32.dll","piar_compvalues");
messageBox.setRetVal(Type.INT);
messageBox.setParameter(0,Type.INT,""+p1.getAsInt(0));
Pointer psc=new Pointer(MemoryBlockFactory.createMemoryBlock(4));
psc.setIntAt(0, ArraySize);
messageBox.setParameter(1,Type.INT,""+psc);
log.info("时间:"+timed[0].getAsInt(0));
messageBox.setParameter(2,Type.INT,""+timed[0].getAsInt(0));
messageBox.setParameter(3,Type.FLOAT,""+rvals);
messageBox.setParameter(4,Type.INT,""+istats);
messageBox.setParameter(5,Type.INT,""+0);
messageBox.invoke();


===================================
结果:
#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x65623c63, pid=3056, tid=1004
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-b105 mixed mode, sharing)
# Problematic frame:
# C [piapi32.dll+0x23c63]
#
# An error report file with more information is saved as hs_err_pid3056.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#

...全文
183 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

67,512

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧