Menu

#2 EXCEPTION_ACCESS_VIOLATION

open
nobody
None
5
2008-03-13
2008-03-13
Anonymous
No

JNativeTest3 on Thinkpad T60p compiles and runs for about half a second then gives a big, fat error.

#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c9111e0, pid=2916, tid=6108
#
# Java VM: Java HotSpot(TM) Client VM (10.0-b19 mixed mode, sharing windows-x86)
# Problematic frame:
# C [ntdll.dll+0x111e0]
#
# An error report file with more information is saved as:
# C:\Documents and Settings\keilander\Desktop\thinkpad-accel\src\hs_err_pid2916.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

The log it mentions was generated, and is attached.

Discussion

  • Nobody/Anonymous

     
  • Nobody/Anonymous

    Logged In: NO

    Hey, it's me again.

    Additional info:
    The python code "ShockSensor" 1.0 by Simon Johnston, (downloadable from IBM's website) works fine, so I'll be using that for my purposes for now.

    It appears that instead of opening the dll directly like you do, they are opening the device as a file like this:
    handle=win32file.CreateFile(r'//./ShockMgr', GENERIC_READ,FILE_SHARE_READ, None,OPEN_EXISTING, 0, 0)

    Then they read the data with a file ioctl like this:
    win32file.DeviceIoControl(handle,0x733FC, '',0x24,None)

    I'm not sure what the magical numbers mean, but it seems to work, so I hope that helps you refine your program!
    -Kurt

     

Log in to post a comment.