Re: [Ikvm-developers] Line numbers in stack traces
Brought to you by:
jfrijters
|
From: Michael B. <mb...@gm...> - 2008-01-21 15:01:49
|
Jeroen, I tried what you suggested (config file) and it worked perfectly -- thanks for being patient with me!! Thanks, Mike On Jan 18, 2008 5:00 AM, Jeroen Frijters <je...@su...> wrote: > Hi Michael, > > Like I said, when you run ikvm.exe on .NET 2.0 you'll get line numbers. By default the releases of IKVM that support .NET 1.1 will run on .NET 1.1 but you can use an app.config file to force it to run on .NET 2.0. > > Create an ikvm.exe.config file (in the same directory as ikvm.exe) that contains: > > <?xml version="1.0"?> > <configuration> > <startup> > <supportedRuntime version="v2.0.50727"/> > <requiredRuntime version="v2.0.50727"/> > </startup> > </configuration> > > Regards, > Jeroen > > > > -----Original Message----- > > From: Michael Baker [mailto:mb...@gm...] > > Sent: Thursday, January 17, 2008 19:40 > > To: Jeroen Frijters > > Cc: ikv...@li... > > Subject: Re: [Ikvm-developers] Line numbers in stack traces > > > > Jeroen, > > > > Thanks so much for the fast reply. > > > > Again, I am speaking about pure Java code (no C# references) compiled > > using javac, not ikvmc. > > > > If I run the program on the command line using java, I get line numbers > > in the stack trace. > > > > If I run the same program on the command line using ikvm, I get no line > > numbers in the stack trace. > > > > Any ideas? > > > > $ ikvm -version > > IKVM.NET Launcher version 0.37.2873.14235 Copyright (C) 2002-2007 > > Jeroen Frijters http://www.ikvm.net/ > > > > CLR version: 1.1.4322.2407 (32 bit) > > mscorlib: 1.0.5000.0 > > ikvm: 0.37.2873.14235 > > IKVM.OpenJDK.ClassLibrary: 0.37.2873.13856 > > IKVM.Runtime: 0.37.2873.14234 > > GNU Classpath version: 0.95 > > OpenJDK version: b13 > > > > > > Thanks, > > Mike > > > > > > > > > > > > On Jan 17, 2008 11:57 AM, Jeroen Frijters <je...@su...> wrote: > > > Michael Baker wrote: > > > > I am referring to code compiled using javac, not ikvmc. > > > > > > > > An obvious difference between the ikvm and java JVMs is the lack of > > > > line numbers in the ikvm stack trace. > > > > > > When running on .NET 2.0 the IKVM stack traces have line numbers > > (that is, the stack traces you get with Throwable.printStackTrace()). > > > > > > If you're talking about the .NET stack traces, these only contain > > lines numbers if you compile with debugging information ("ikvmc -debug" > > or by running dynamically generated code in the debugger). > > > > > > Regards, > > > Jeroen > > > > > > > > > --------------------------------------------------------------------- > > - > > > --- This SF.net email is sponsored by: Microsoft Defy all challenges. > > > Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Ikvm-developers mailing list > > > Ikv...@li... > > > https://lists.sourceforge.net/lists/listinfo/ikvm-developers > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Ikvm-developers mailing list > Ikv...@li... > https://lists.sourceforge.net/lists/listinfo/ikvm-developers > |