2,963 reputation
614
bio website
location
age
visits member for 1 year, 5 months
seen Mar 10 at 14:53

Apr
20
awarded  Nice Answer
Jan
24
answered Extract information from function definition returned by DefineDLLFunction
Jan
23
answered Clojuratica setup
Jan
7
answered Creating a C++ project with Visual Studio 2010
Jan
6
awarded  Enlightened
Jan
6
awarded  Nice Answer
Dec
31
comment How to extract structured array data from DefineDLLFunction in Mathematica
It's not clear that your last line of code, which splits up the bytes of the structure, is correct. It would be helpful if you could show the actual bytes, meaning the output from Take[bytes, 148]. Also, I think it should be System.Int16, not System.Byte, for the last argument type in your DefineDLLFunction call.
Dec
18
answered Identify / change working directory for the InstallableNET runtime
Dec
12
answered Calling Mathematica from Java
Dec
10
answered LinkSnooper troubles on Windows
Dec
6
comment netlink ikernellink. How to ignore unread data
You can't ignore it. If you have unread data, then the error was in your previous evaluation. Fix that by making sure you fully read the result. You probably want to use the WaitAndDiscardAnswer() method.
Nov
30
answered getting Mathematica messages in .NET
Nov
26
awarded  Yearling
Nov
25
comment J/Link: getArray2() returns wrong array
Your problems stem from not calling waitForAnswer(). The "evaluateToXXX" methods return a result, but when you call evaluate(), you must immediately follow it with waitForAnswer() if you are planning to read the answer, or discardAnswer() if you don't plan to read the answer.
Nov
25
comment J/Link: getArray2() returns wrong array
That's because you haven't shown us your code. I expect the problem is in your creation of the value of the variable expr. But until you show an actual working fragment of code, we can only guess at the problem.
Nov
25
answered J/Link: getArray2() returns wrong array
Nov
25
answered How can multiple null terminated strings be handled in a DLL-function result?
Nov
8
comment J/Link: InstallJava[..] or ReinstallJava[..] hangs when used with a link to a remote jvm running Install.main
By the way, kudos to luke for looking at the source code and figuring the solution out. Mathematica developers don't expect users to read their source code to figure out problems (and sometimes we cringe at the thought), but there is often quite a lot to be learned by looking at the code, and users have on several occasions identified bugs in my code down to the line number. I just committed a fix to this problem in the way I suggested above--by changing the default behavior so as not to establish extra links in the case of a remote JVM.
Nov
8
comment J/Link: InstallJava[..] or ReinstallJava[..] hangs when used with a link to a remote jvm running Install.main
This answer is exactly right about the source of the problem. J/Link could be smarter about the protocol to use for the extra links. Even simpler, it should not bother to use extra links when the TCPIP protocol is in use, since that almost certainly means that the JVM is on a remote machine, and the extra links are mainly for running Java user interface elements, which would not be useful popping up on a remote machine. There is a workaround, which is to use the CreateExtraLinks->False option in InstallJava. That documentation example is very old and needs to be updated to show this option.
Oct
18
answered Calling Mathematica from Visual Studio - example