Hi,
I moved my CodeSmith installation from WinXP 32bit to Windows 7 64Bit.
If I click on a base template file I can get CodeSmith to generate code but if I fire up the CodeSmith Explorer or Studio I can't interact with it. If I click on something I get a Windows Error message: "CodeSmith.exe has encountered a problem and needs to close. We are sorry for the inconvenience."
If I look at the report the error window generates I get the following:
<?xml version="1.0" encoding="utf-16"?><CaseReport xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.codesmithtools.com/insight/v2"> <MessageSignature i:nil="true" /> <ProjectId>24</ProjectId> <Description i:nil="true" /> <EmailAddress i:nil="true" /> <IsDescriptionHtml>false</IsDescriptionHtml> <MessageDate>2010-01-10T21:20:16.1927008-05:00</MessageDate> <MessageIdentifier>0db67009-187b-493e-8989-5588724de8eb</MessageIdentifier> <Attachments /> <CaseType>CrashReport</CaseType> <ClientVersion>1.0.0.10423</ClientVersion> <CustomFields> <CustomField> <Key>Platform</Key> <Value>Microsoft Windows NT 6.1.7600.0, (x64)</Value> </CustomField> <CustomField> <Key>Version</Key> <Value>5.0.0.0</Value> </CustomField> <CustomField> <Key>AssemblyFileVersion</Key> <Value>5.2.0.10552</Value> </CustomField> </CustomFields> <ExceptionDetail> <Description>System.NullReferenceException: Object reference not set to an instance of an object. at CodeSmith.Gui.CodeTemplateExplorerControl.a(Object A_0, MouseEventArgs A_1) at System.Windows.Forms.Control.OnMouseMove(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseMove(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.TreeView.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)</Description> <ErrorCode>-2147467261</ErrorCode> <ExceptionTypeName>System.NullReferenceException</ExceptionTypeName> <ExceptionXml><?xml version="1.0" encoding="utf-16"?><object name="NullReferenceException" namespace="System" xmlns="http://schemas.codesmithtools.com/feedback/objectdata" /></ExceptionXml> <InnerException i:nil="true" /> <Message>Object reference not set to an instance of an object.</Message> <MethodName>a</MethodName> <ModuleName>CodeSmith.Gui</ModuleName> <ModuleVersion>5.0.0.0</ModuleVersion> <Source>CodeSmith.Gui</Source> <StackTrace> at CodeSmith.Gui.CodeTemplateExplorerControl.a(Object A_0, MouseEventArgs A_1) at System.Windows.Forms.Control.OnMouseMove(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseMove(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.TreeView.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)</StackTrace> </ExceptionDetail> <ReportHash>95b5e1cbc6f1324fdb31983ee94b74e369a14e81</ReportHash> <Tags> <string>CodeSmithExplorer</string> </Tags> <Title>Object reference not set to an instance of an object.</Title></CaseReport>
<?xml version="1.0" encoding="utf-16"?><MachineInfo xmlns="http://schemas.codesmithtools.com/insight/machinedata"> <MachineName>BL01</MachineName> <OperatingSystemVersion>Microsoft Windows NT 6.1.7600.0</OperatingSystemVersion> <Architecture>x64</Architecture> <ProcessorCount>4</ProcessorCount> <WorkingSetMemoryCount>37937152</WorkingSetMemoryCount> <ClrVersion>2.0.50727.4927</ClrVersion> <CommandLine>"C:\Program Files (x86)\CodeSmith\v5.2\CodeSmith.exe" </CommandLine> <AppDomainName>CodeSmith.exe</AppDomainName> <ProcessID>1476</ProcessID> <ProcessName>1476</ProcessName> <ThreadName /> <Win32ThreadId>9328</Win32ThreadId></MachineInfo>
<?xml version="1.0" encoding="utf-16"?><LoadedModules xmlns="http://schemas.codesmithtools.com/insight/moduledata"> <Module Location="C:\Program Files (x86)\CodeSmith\v5.2\CodeSmith.exe" ProductVersion="5.2.0.10552">CodeSmith, Version=5.0.0.0, Culture=neutral, PublicKeyToken=9fd61cdb91609a7a</Module> <Module Location="C:\Windows\assembly\GAC_32\CodeSmith.Engine\5.0.0.0__9fd61cdb91609a7a\CodeSmith.Engine.dll" ProductVersion="5.2.0.10552">CodeSmith.Engine, Version=5.0.0.0, Culture=neutral, PublicKeyToken=9fd61cdb91609a7a</Module> <Module Location="C:\Windows\assembly\GAC_MSIL\CodeSmith.Insight.Client\1.0.0.10423__9fd61cdb91609a7a\CodeSmith.Insight.Client.dll" ProductVersion="1.0.0.10423">CodeSmith.Insight.Client, Version=1.0.0.10423, Culture=neutral, PublicKeyToken=9fd61cdb91609a7a</Module> <Module Location="C:\Windows\assembly\GAC_MSIL\SMDiagnostics\3.0.0.0__b77a5c561934e089\SMDiagnostics.dll" ProductVersion="3.0.4506.4926">SMDiagnostics, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Module> <Module Location="C:\Windows\assembly\GAC_32\CodeSmith.Gui\5.0.0.0__9fd61cdb91609a7a\CodeSmith.Gui.dll" ProductVersion="5.2.0.10552">CodeSmith.Gui, Version=5.0.0.0, Culture=neutral, PublicKeyToken=9fd61cdb91609a7a</Module></LoadedModules>
Any thoughts?
- Jim
Hello,
@meixger: Please contact support for a nightly build of CodeSmith where this has been fixed, my apologies for any inconveniences this has caused you.
@jem5519: Can you please send me the reproduction steps or a screen cast.
Thanks
-Blake Niemyjski
Blake Niemyjski CodeSmith Tools, LLC. Software Development Engineer Blog: http://windowscoding.com/blogs/blake/ .NetTiers team | Visit http://www.nettiers.com
Did a reinstall of Windows 7. Everything seems fine. The root problem seems to be System Mechanic 9.9.5 not working well in Windows 7 64 bit. Significant registry problems after a "registry repair" against a fresh install of the OS.
Could you please provide a quick screen cast of this issue using the following free software.
same here:
Invalid access to memory location (998) at System.Net.NetworkInformation.SystemNetworkInterface.GetAdaptersAddresses(AddressFamily family, FixedInfo fixedInfo) at System.Net.NetworkInformation.SystemNetworkInterface.PostWin2KGetNetworkInterfaces(AddressFamily family) at System.Net.NetworkInformation.SystemNetworkInterface.GetNetworkInterfaces(AddressFamily family) at System.Net.NetworkInformation.SystemNetworkInterface.InternalGetIsNetworkAvailable() at System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable() at CodeSmith.Insight.Client.InsightManager.OnQueueTimer(Object state) at System.Threading._TimerCallback.TimerCallback_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading._TimerCallback.PerformTimerCallback(Object state) CodeSmith.Insight.Client.dll v1.0.0.10423 CodeSmith.Engine.dll v5.2.0.10552
I got a nightly build from support and now it seems to work. thanks!