Skip to content

Commit 4d7c90d

Browse files
committed
remove extra JNA debugging bits
1 parent a0b2776 commit 4d7c90d

2 files changed

Lines changed: 25 additions & 17 deletions

File tree

app/src/processing/app/platform/WindowsPlatform.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ public void openFolder(File file) throws Exception {
503503
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
504504

505505

506-
// Code partially thanks to Richard Quirk from:
506+
// getenv/setenv code partially thanks to Richard Quirk from:
507507
// http://quirkygba.blogspot.com/2009/11/setting-environment-variables-in-java.html
508508

509509
static WinLibC clib;
@@ -514,6 +514,11 @@ static WinLibC getLibC() {
514514
try {
515515
clib = (WinLibC) Native.loadLibrary("msvcrt", WinLibC.class);
516516
} catch (UnsatisfiedLinkError ule) {
517+
Messages.showTrace("JNA Error",
518+
"JNA could not be loaded. Please report here:\n" +
519+
"http://github.com/processing/processing/issues/new", ule, true);
520+
521+
/*
517522
// Might be a problem with file encoding, use a default directory
518523
// https://github.com/processing/processing/issues/3624
519524
File ctmp = new File("C:\\TEMP"); // kick it old school
@@ -541,6 +546,7 @@ static WinLibC getLibC() {
541546
"JNA could not be loaded into C:\\TEMP. Please report:\n" +
542547
"http://github.com/processing/processing/issues/new", null);
543548
}
549+
*/
544550
}
545551
}
546552
return clib;

todo.txt

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,24 @@ X not great because the error checker runs more slowly than your typing
1010
X SVG not highlighting as a keyword
1111
X https://github.com/processing/processing/issues/3752
1212

13+
may be fixed
14+
_ UnsatisfiedLinkError on startup "Access is denied" on Windows 10
15+
_ https://github.com/processing/processing/issues/3800
16+
_ administrator, but using Microsoft account to log in
17+
_ JNA errors on startup when run from an account w/ non-ASCII characters
18+
_ https://github.com/processing/processing/issues/3624
19+
_ set jna.tmpdir (or java.io.tmpdir) to another location
20+
_ https://github.com/twall/jna/issues/124
21+
_ https://github.com/twall/jna/issues/238
22+
_ Sun says they won't fix: user locale and system locale probably different:
23+
_ https://bugs.openjdk.java.net/browse/JDK-8017274
24+
_ https://bugs.openjdk.java.net/browse/JDK-4958170
25+
_ https://github.com/twall/jna/blob/master/test/com/sun/jna/JNALoadTest.java
26+
_ http://happygiraffe.net/blog/2009/09/24/java-platform-encoding/
27+
_ fix: get sun.jnu.encoding and make sure the user name is supported in it?
28+
_ and if not, put up a warning for the user?
29+
_ http://www.oracle.com/us/technologies/java/locale-140624.html
30+
1331
manager
1432
X CM: Clicking item in Libraries list throws exception
1533
X https://github.com/processing/processing/issues/3667
@@ -73,22 +91,6 @@ _ or just change the documentation?
7391
_ Contributions Manager UI design
7492
_ https://github.com/processing/processing/issues/3482
7593
_ items still show up in "Recent" if they no longer exist (on startup)
76-
_ UnsatisfiedLinkError on startup "Access is denied" on Windows 10
77-
_ https://github.com/processing/processing/issues/3800
78-
_ administrator, but using Microsoft account to log in
79-
_ JNA errors on startup when run from an account w/ non-ASCII characters
80-
_ https://github.com/processing/processing/issues/3624
81-
_ set jna.tmpdir (or java.io.tmpdir) to another location
82-
_ https://github.com/twall/jna/issues/124
83-
_ https://github.com/twall/jna/issues/238
84-
_ Sun says they won't fix: user locale and system locale probably different:
85-
_ https://bugs.openjdk.java.net/browse/JDK-8017274
86-
_ https://bugs.openjdk.java.net/browse/JDK-4958170
87-
_ https://github.com/twall/jna/blob/master/test/com/sun/jna/JNALoadTest.java
88-
_ http://happygiraffe.net/blog/2009/09/24/java-platform-encoding/
89-
_ fix: get sun.jnu.encoding and make sure the user name is supported in it?
90-
_ and if not, put up a warning for the user?
91-
_ http://www.oracle.com/us/technologies/java/locale-140624.html
9294
_ Red error underline is sometimes at wrong location
9395
_ https://github.com/processing/processing/issues/3759
9496

0 commit comments

Comments
 (0)