Re: [Ikvm-developers] Error using library in LabView
Brought to you by:
jfrijters
|
From: Justin S. <jus...@su...> - 2013-03-04 22:15:38
|
I never actually found the underlying cause, as it was not getting thrown in C#, TrueLicense trapped it, and LabView has no manner to dig that far down into it. My next step was to alter TrueLicense to actually rethrow a proper Exception (Which I intend to do at some point anyway) but I resolved the issue by bootstrapping the assembly through LabView. I am going to post on our blog I actually called that method through LabView, I'll send a link to it once it is up so anyone else who trips over this will at least see something come up on Google. On Mon, Mar 4, 2013 at 2:28 PM, Volker Berlin <vol...@go...>wrote: > Hi Justin, > > A UndeclaredThrowableException can be the cause of many different errors. > What is the stacktrace of the inner exception? > > Volker > > > Am 04.03.2013 00:11, schrieb Justin Smith: > > It was specific to the "UndeclaredThrowableException" mentioned in the 6th > post. The TrueLicense library traps exceptions all over the place, > so it seems I'm not the only person who had an issue tracking that down. > I did not think the suggested fix of "addBootClassPathAssemby" > would have applied to my situation, since I merged all of my jars, > obfuscated, then IKVMC the obfuscated jar to the DLL. However, once > I figured out how to apply the bootClass fix in LabView, the problem has > gone away. > > I guess that is my mis-understanding of how the assemblys are getting > loaded. I have applied this fix to an un-obfuscated assembly, > LabView equivalent of "ikvm.runtime.Startup.addBootClassPathAssemby(typeof(de.schlichtherle.xml.GenericCertificate).Assembly)", > and all seems well. > > Would the same call to one of the classes that is not obfuscated > (publicly accessible) result in the same behavior? Or will I need to track > down the obfuscated class, and call addBootClassPathAssembly on it then as > well? > > > On Sun, Mar 3, 2013 at 4:11 PM, Volker Berlin < > vol...@go...> wrote: > >> Hi Justin, >> >> Which issue do you see? The ILSpy error? The thread of your link is not >> very clear. >> >> Volker >> >> >> Am 03.03.2013 22:59, schrieb Justin Smith: >> >> Hello, >> >> I am currently having (what appears to be) the exact same issue as >> another poster from 2 years ago. I found his message thread on the archive >> http://sourceforge.net/mailarchive/message.php?msg_id=27292355 >> >> I never saw a resolution posted, and was wondering if anyone found >> anything, or had any insights on how I should be able to proceed. >> >> My use case is slightly different, however. The converted libraries >> work perfect from VS 2010 and VS 2012 (C#), but once I reference them in >> LabView, I see the exact same issue as reported by the previous user. >> >> I'm fairly new to the .NET stack and am not sure what other tools I >> have to sniff this issue out, other than ilSpy and DebugView. >> >> Thanks >> >> -- >> Justin Smith >> Summit Management Systems, Inc >> >> >> ------------------------------------------------------------------------------ >> Everyone hates slow websites. So do we. >> Make your web apps faster with AppDynamics >> Download AppDynamics Lite for free today:http://p.sf.net/sfu/appdyn_d2d_feb >> >> >> >> _______________________________________________ >> Ikvm-developers mailing lis...@li...://lists.sourceforge.net/lists/listinfo/ikvm-developers >> >> >> >> >> ------------------------------------------------------------------------------ >> Everyone hates slow websites. So do we. >> Make your web apps faster with AppDynamics >> Download AppDynamics Lite for free today: >> http://p.sf.net/sfu/appdyn_d2d_feb >> _______________________________________________ >> Ikvm-developers mailing list >> Ikv...@li... >> https://lists.sourceforge.net/lists/listinfo/ikvm-developers >> >> > > > -- > Justin Smith > Summit Management Systems, Inc > (615) 281-9454 > Skype: jwsmith22 > > People demand freedom of speech as a compensation for the freedom of > thought which they seldom use. ~ Soren Kierkegaard > > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > _______________________________________________ > Ikvm-developers mailing list > Ikv...@li... > https://lists.sourceforge.net/lists/listinfo/ikvm-developers > > -- Justin Smith Summit Management Systems, Inc (615) 281-9454 Skype: jwsmith22 People demand freedom of speech as a compensation for the freedom of thought which they seldom use. ~ Soren Kierkegaard |