[jnc-users] AttachCurrentThread
Status: Beta
Brought to you by:
soapy
From: Marko M. <ti...@sb...> - 2007-09-05 11:00:54
|
Hi! I am trying to compile a little GUI app with a system tray icon (systray4j). The app worked fine with sun java, but not to require a JRE is one of =20 my top goals. I used the latest release 1.1.1 with gcc-122233-win Everything compiled but I ran into two problems: First: Systray4j uses a native thread, which causes trouble. These lines: --------------------------------------------------------------- JDK1_1AttachArgs thread_args; s_pVm->AttachCurrentThread( ( void** ) &s_pEnv, &thread_args ); --------------------------------------------------------------- leave me with a NULL Environment. I did a quick search in the GNU Bugzilla and couldn=E2=80=99t find anything = on it. Second: Without systray, the app launches. But after a while, when I click some buttons or tabs, the GUI Thread =20 freezes and the app is no longer responding to anything. That freezing can=E2=80=99t be fixed to any action, sometimes it happens eve= n =20 before the JFrame is fully visible. I would really appreciate any help here. Thanks and bye, Marko |