PDA

View Full Version : JS Builder 1.1 Exception



hunkybill
3 Dec 2006, 11:55 AM
Hi,

Probably not a big deal, but the new JS Builder experiences this upon loading up the interface:




************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at System.Windows.Forms.ToolStripSystemRenderer.RenderStatusStripBackground(ToolStripRenderEventArgs e)
at System.Windows.Forms.ToolStripSystemRenderer.OnRenderToolStripBackground(ToolStripRenderEventArgs e)
at System.Windows.Forms.ToolStripRenderer.DrawToolStripBackground(ToolStripRenderEventArgs e)
at System.Windows.Forms.ToolStrip.OnPaintBackground(PaintEventArgs e)
at System.Windows.Forms.StatusStrip.OnPaintBackground(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.StatusStrip.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
JSBuilder
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///C:/Program%20Files/JS%20Builder/JSBuilder.exe
----------------------------------------
JSBLib
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///C:/Program%20Files/JS%20Builder/JSBLib.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
0kuv3_3p
Assembly Version: 1.1.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system>
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

brian.moeskau
3 Dec 2006, 1:02 PM
FYI, there's a new JSB-specific forum now (Jack, please move this post there if you see this...)

hunkybill, can you please try something for me -- switch your machine temporarily to Windows Classic style (under the Appearance tab of your machine's display properties) and relaunch JSB. Does it do anything differently?

I think this error has to do somehow with XP visual style support, but I can't reproduce it so I'm still guessing a bit at the moment.

hunkybill
3 Dec 2006, 2:34 PM
hunkybill, can you please try something for me -- switch your machine temporarily to Windows Classic style (under the Appearance tab of your machine's display properties) and relaunch JSB. Does it do anything differently?

I think this error has to do somehow with XP visual style support, but I can't reproduce it so I'm still guessing a bit at the moment.

Hi Brian,

Wow! That was one smart guess. I switched to Classic Style and your program worked without a hitch. Sorry to have polluted the forums with this issue then.. me bad... :)

Thanks!

brian.moeskau
3 Dec 2006, 2:42 PM
Well, no, you aren't polluting the forum at all! It's not your fault -- that means that there's probably some kind of error handling that we need to add so that you don't have to run your system in "Classic" (i.e., crappy) mode. :)

There is some custom visual style handling code in JSB that sets things up so that you get the nice, pretty XP menus and such. I'll take a look and see if we can fail a bit more gracefully if that's not supported. I'm curious about one thing though... this code has not changed from the last version, so I wonder why you didn't get this issue before?

I'll let you know when there's a fix you can try out.

Thanks,
Brian

brian.moeskau
8 Dec 2006, 10:49 PM
Hey hunkybill,

If you are interested in helping me track down this issue (since I can't reproduce it here), can you please do a system search for the file comctl32.dll and report back with:

- Location of each copy on your machine
- Version number of each copy

This file is what drives the XP visual style support in Windows, and I suspect that the version being used by your .NET runtime is either out-of-date, or is otherwise somehow incompatible with what JSB is expecting.

Thanks,
Brian