EXCEPTION_ACCESS_VIOLATION; Failed to write core dump

Product:
  •  MOBITEK Q24 STK MODEM HUB
  • MOBITEK STK API version 6.3

Which programming language are you using?

  • JAVA
  • JRE version: 7.0-b147
  • JACOB versio: 1.14.3

OS

Windows 7, 64 bit
Description of Problem:
We are able to start multiple threads, but we are now getting this error;
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x72949197, pid=17788, tid=18388
#
# JRE version: 7.0-b147
# Java VM: Java HotSpot(TM) Client VM (21.0-b17 mixed mode windows-x86 )
# Problematic frame:
# C  [MSVBVM60.DLL+0x9197]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\Users\mlimaki\git\STKEngine\STKEngine\hs_err_pid17788.log
TROUBLE SHOOTING STEPS : Please answer all questions:-

  1. Create a Java project/new code without thread, does it work?
    Answer:   Yes   /   No
  2. If “no”, then try the code (no thread) in 32 bit OS, does it work?
    Answer:   Yes   /   No
  3. If “no”, then what is the STK API function that you called that result the error?
    Answer:  
  4. Try in 32 bit, no thread and change the JRE to “JavaSE1.6” (refer screen shot below), does it work?
    • Untitled 2
    • Answer:   Yes   /   No
Final Solution: 1. your Java code must follow strictly the “STK API FLOW CHART” in page 12 of the manual, “MOBITEK STK API version 6.pdf”. Refer figure below for the flow chart;

STK API FLOW CHART
Untitled

2. your Java code must call STKStatusGet() and wait for a response moving moving to next step, i.e sequential

3. your Java code must call “MobitekSTKAPI.dll” (STK API) in synchronous manner, i.e. you must wait for a response from STK API before calling another function;

4. DO NOT call “MobitekSTKAPI.dll” (STK API) in asynchronous manner, i.e. your Java code make mutiple calls to STK API without waiting for any response as this will cause your code, API or modem to crash.