Hi,
I use the below code to get my custom licencing information as mentioned in your document,
interface TrialLibrary extends Library {
final TrialLibrary INSTANCE = (TrialLibrary) Native.loadLibrary("C:\\Program Files\\yyyt\\aps\\testtrail", TrialLibrary.class); // loads Trial.dll
int ReadSettingsStr(String keyCode, HWND hwnd);
int DisplayRegistrationStr(String keyCode, HWND hwnd);
String GetPropertyValue(String id);
}
private static final String LIBRARY_KEY = "11111";
public static void main(String[] args) {
int i = TrialLibrary.INSTANCE.ReadSettingsStr(LIBRARY_KEY, null); // works fine
System.out.println(TrialLibrary.INSTANCE.GetPropertyValue("Type"));
}
But this throws
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x046229de, pid=4152, tid=4064
#
# JRE version: 6.0_26-b03
# Java VM: Java HotSpot(TM) Client VM (20.1-b02 mixed mode, sharing windows-x86 )
# Problematic frame:
# C [testtrail.DLL+0x229de]
#
# An error report file with more information is saved as:
# D:\STS\workspace\SmarteServices_Release\hs_err_pid4152.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.
#
Please help me resolve this issue.