Hello !

I've got a problem with Swing in my program, although everything worked perfectly two 
weeks

ago. I've written a small program to determine the bug, and here it is :


import javax.swing.*;

public class essai
{
  public static void main(String[] args)
  {
    try
    {
      String s = new String();
      s = UIManager.getSystemLookAndFeelClassName();
      System.out.println(s);
      UIManager.setLookAndFeel(s);  // This is line 12
    }
    catch(Exception e)
    {
      System.out.println("blu");
    }
  }
}


and here is the message I get when running the program. Has anyone got an idea ?

Thanks in advance
L�van Sardjev�ladz�


com.sun.java.swing.plaf.windows.WindowsLookAndFeel

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D1C4610
Function=[Unknown.]
Library=C:\Appli\java 2 v 1.4.1_02\jre\bin\fontmanager.dll

NOTE: We are unable to locate the function name symbol for the error
      just occurred. Please refer to release documentation for possible
      reason and solutions.


Current Java thread:
        at sun.awt.font.NativeFontWrapper.registerFonts(Native Method)
        - locked <06C2E500> (a java.lang.Class)
        at sun.java2d.SunGraphicsEnvironment.addPathFonts(SunGraphicsEnvironment
.java:736)
        at sun.java2d.SunGraphicsEnvironment.registerFonts(SunGraphicsEnvironmen
t.java:587)
        at sun.java2d.SunGraphicsEnvironment.access$100(SunGraphicsEnvironment.j
ava:49)
        at sun.java2d.SunGraphicsEnvironment$2.run(SunGraphicsEnvironment.java:2
09)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.java2d.SunGraphicsEnvironment.loadFonts(SunGraphicsEnvironment.ja
va:203)
        - locked <02A70328> (a sun.awt.Win32GraphicsEnvironment)
        at sun.java2d.SunGraphicsEnvironment.mapFontName(SunGraphicsEnvironment.
java:451)
        at java.awt.Font.initializeFont(Font.java:313)
        at java.awt.Font.<init>(Font.java:345)
        at sun.awt.windows.WDesktopProperties.setFontProperty(WDesktopProperties
.java:148)
        - locked <02A273F0> (a sun.awt.windows.WDesktopProperties)
        at sun.awt.windows.WDesktopProperties.getWindowsParameters(Native Method
)
        at sun.awt.windows.WDesktopProperties.<init>(WDesktopProperties.java:56)

        at sun.awt.windows.WToolkit.initializeDesktopProperties(WToolkit.java:86
5)
        at java.awt.Toolkit.getDesktopProperty(Toolkit.java:1533)
        - locked <02A0E838> (a sun.awt.windows.WToolkit)
        at com.sun.java.swing.plaf.windows.DesktopProperty.getValueFromDesktop(D
esktopProperty.java:124)
        at com.sun.java.swing.plaf.windows.DesktopProperty.createValue(DesktopPr
operty.java:109)
        at com.sun.java.swing.plaf.windows.WindowsLookAndFeel.getDesktopFontValu
e(WindowsLookAndFeel.java:1323)
        at com.sun.java.swing.plaf.windows.WindowsLookAndFeel.initComponentDefau
lts(WindowsLookAndFeel.java:482)
        at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.
java:81)
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:394)
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:424)
        at essai.main(essai.java:12)

Dynamic libraries:
0x00400000 - 0x00406000         c:\Appli\java 2 v 1.4.1_02\bin\java.exe
0x78460000 - 0x784E0000         C:\WINNT\system32\ntdll.dll
0x77DA0000 - 0x77DFB000         C:\WINNT\system32\ADVAPI32.dll
0x77E70000 - 0x77F2C000         C:\WINNT\system32\KERNEL32.dll
0x770C0000 - 0x7712D000         C:\WINNT\system32\RPCRT4.dll
0x78000000 - 0x78046000         C:\WINNT\system32\MSVCRT.dll
0x6D340000 - 0x6D46A000         c:\Appli\java 2 v 1.4.1_02\jre\bin\client\jvm.dl
l
0x77E00000 - 0x77E5F000         C:\WINNT\system32\USER32.dll
0x77F40000 - 0x77F79000         C:\WINNT\system32\GDI32.dll
0x77540000 - 0x77571000         C:\WINNT\System32\WINMM.dll
0x67F80000 - 0x67F87000         C:\WINNT\System32\serwvdrv.dll
0x66500000 - 0x66507000         C:\WINNT\System32\umdmxfrm.dll
0x6D1E0000 - 0x6D1E7000         c:\Appli\java 2 v 1.4.1_02\jre\bin\hpi.dll
0x6D310000 - 0x6D31E000         c:\Appli\java 2 v 1.4.1_02\jre\bin\verify.dll
0x6D220000 - 0x6D239000         c:\Appli\java 2 v 1.4.1_02\jre\bin\java.dll
0x6D330000 - 0x6D33D000         c:\Appli\java 2 v 1.4.1_02\jre\bin\zip.dll
0x6D000000 - 0x6D105000         C:\Appli\java 2 v 1.4.1_02\jre\bin\awt.dll
0x777F0000 - 0x7780E000         C:\WINNT\System32\WINSPOOL.DRV
0x75010000 - 0x75020000         C:\WINNT\system32\MPR.dll
0x75E00000 - 0x75E1A000         C:\WINNT\System32\IMM32.dll
0x77A40000 - 0x77B2C000         C:\WINNT\system32\ole32.dll
0x51000000 - 0x5104B000         C:\WINNT\System32\ddraw.dll
0x72810000 - 0x72816000         C:\WINNT\System32\DCIMAN32.dll
0x5C000000 - 0x5C0C7000         C:\WINNT\System32\D3DIM700.DLL
0x6D190000 - 0x6D1E0000         C:\Appli\java 2 v 1.4.1_02\jre\bin\fontmanager.d
ll
0x6E350000 - 0x6E356000         C:\WINNT\System32\INDICDLL.dll
0x77910000 - 0x77933000         C:\WINNT\system32\imagehlp.dll
0x72970000 - 0x7299D000         C:\WINNT\system32\DBGHELP.dll
0x68EA0000 - 0x68EAB000         C:\WINNT\System32\PSAPI.DLL

Local Time = Tue Jul 01 15:34:08 2003
Elapsed Time = 1
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.1_02-b06 mixed mode)
#
# An error report file has been saved as hs_err_pid1304.log.
# Please refer to the file for further information.
#

==========================================================================To 
unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to