EDPro Shell integration interferes with java.awt.Desktop
Posted: Thu Mar 18, 2010 10:55 am
I thought I posted this earlier on, but now when looking whether there is an answer I can't find the post ...
Somehow EDPro Shell integration interferes with Java VM (esp. java.awt.Desktop).
If I have EDPro Shell integration active, a java program using
java.awt.Desktop.getDesktop().open(new java.io.File("c:\\temp\\test.pdf"));
leads to a crash of the VM.
If I switch off EDPro Shell integration, the program runs without problems, opening the PDF.
This mini program
shows the effect. Without EDPro Shell integration, it writes
BEFORE
AFTER
and inbetween opens the pdf reader.
With EDPro Shell integration, I get
BEFORE
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x77bd15a5, pid=6536, tid=6876
#
# JRE version: 6.0_18-b07
# Java VM: Java HotSpot(TM) Client VM (16.0-b13 mixed mode windows-x86 )
# Problematic frame:
# C [VERSION.dll+0x15a5]
#
# An error report file with more information is saved as:
# C:\Projects\hs_err_pid6536.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.
#
in the hs_err_pid6536.log (I don't want to publish it completely, but could send it to you) it shows
(the EDPShell.dll is what made me test with/without shell integration)
This is very annoying, as I need both the shell integration as well as my program being able to display pdfs and other files ...
(I am registered user, I run EDPro 5.0.0.5 - updating to 5.0.0.19 didn't help, the problem persists. Java JKD is 1.6.0.18)
Andreas
Somehow EDPro Shell integration interferes with Java VM (esp. java.awt.Desktop).
If I have EDPro Shell integration active, a java program using
java.awt.Desktop.getDesktop().open(new java.io.File("c:\\temp\\test.pdf"));
leads to a crash of the VM.
If I switch off EDPro Shell integration, the program runs without problems, opening the PDF.
This mini program
Code: Select all
package de.einsurance.tests;
import java.awt.Desktop;
import java.io.File;
public class Desktoptest {
public static void main(String[] args) {
System.out.println("BEFORE");
try {
Desktop.getDesktop().open(new File("c:\\temp\\test.pdf"));
} catch (Throwable e) {
e.printStackTrace();
}
System.out.println("AFTER");
}
}
BEFORE
AFTER
and inbetween opens the pdf reader.
With EDPro Shell integration, I get
BEFORE
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x77bd15a5, pid=6536, tid=6876
#
# JRE version: 6.0_18-b07
# Java VM: Java HotSpot(TM) Client VM (16.0-b13 mixed mode windows-x86 )
# Problematic frame:
# C [VERSION.dll+0x15a5]
#
# An error report file with more information is saved as:
# C:\Projects\hs_err_pid6536.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.
#
in the hs_err_pid6536.log (I don't want to publish it completely, but could send it to you) it shows
Code: Select all
Stack: [0x495c0000,0x49610000], sp=0x4960eb2c, free space=13a4960e660k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [VERSION.dll+0x15a5]
C [VERSION.dll+0x1821]
C [EDPShell.dll+0x5593]
C [EDPShell.dll+0x665f]
C [EDPShell.dll+0xa02c]
This is very annoying, as I need both the shell integration as well as my program being able to display pdfs and other files ...
(I am registered user, I run EDPro 5.0.0.5 - updating to 5.0.0.19 didn't help, the problem persists. Java JKD is 1.6.0.18)
Andreas