Hello, community!
I've tried to use swt.jar file in macro.
1. I placed file swt.jar to LocalServer/lib category. Everything is OK.
2. I tried the same on Windows 7/8 64-bit and faced some system issue with jar+JVM+system. After some investigation I found that direct jar import resolves it.
3. I imported file in Common files and Imported it to a macro.
4. Macro debug mode is OK.
5. Macro release (w/o debug) shows issue:
6. I tried also other jar files: swt.jar, swt-debug.jar, poi.jar, juniversalchardet.jar. They cause the same issue.
7. I tried import jar into report. Report debug/release mode is OK.
Do someone knows any workaround?
P.S. macro/report code is just for test:
Dialogs.MsgBox("123");
9. Then jar file is located in script category it causes ClassLoader exception:
First start of Macro everything is OK, (classes are loaded once), next start (classes are still loaded by previous class loader) are to be loaded twice by another class loader from the secon instance of Macro. Error occur.
After some time, garbage collector unlod classes and macro again is executed normally.