Hmm do you mean uninstall TypeMock and install an older version?

Anyway, I run my tests via TD.net with no problems (except for
problems with lots of console output, but that's offtopic)

The exception is in Gallio.Common.Reflection.TypeName, line 151, that
reads,
return fullName.GetHashCode() ^ assemblyName.FullName.GetHashCode();

fullName is "Gallio.Icarus.Controllers.IProgressController",
assemblyName.FullName is "Gallio.Icarus, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=eb9cfa67ee6ab36e"

How can it possibly throw an exception here is far beyond my
understanding.

I'd be happy to play with the TypeMock integration assembly, where do
I find it (in the trunk version)?

ulu

On Sep 11, 6:22 pm, "Jeff Brown" <[email protected]> wrote:
> This sounds like the same problem Lance saw with a new version of 
> TypeMock.http://groups.google.com/group/gallio-user/browse_thread/thread/16b55...
> d912?hl=en
>
> Reverting to an older version of TypeMock seems to fix it.
>
> Jeff.
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
>
> Behalf Of ulu
> Sent: Friday, September 11, 2009 2:11 AM
> To: MbUnit.User
> Subject: MbUnit Re: Icarus not showing any tests
>
> More info on trying to debug Icarus:
> The previous attempt was made setting solution configuration to "Any"
> Tried "x64" and got "invalid format" exception before the GUI showed up Set
> to "x86", the GUI showed up fine. When trying to load the Icarus.Tests
> assembly, got the following exception:
>
> "Gallio.Runtime.RuntimeException: Could not resolve instance of component
> 'MbUnit.TestFramework'. --->
> Gallio.Runtime.RuntimeException: Could not resolve the component handler of
> component 'MbUnit.TestFramework'. --->
> Gallio.Runtime.RuntimeException: Could not resolve the component type of
> component 'MbUnit.TestFramework'. --->
> Gallio.Common.Reflection.ReflectionResolveException: Could not resolve type
> 'MbUnit.Core.MbUnitTestFramework, MbUnit'. --->
> System.AccessViolationException: Attempted to read or write protected
> memory. This is often an indication that other memory is corrupt.
>    at System.RuntimeTypeHandle._GetTypeByName(String name, Boolean
> throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark&
> stackMark, Boolean loadTypeFromPartialName)
>    at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean
> throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark&
> stackMark)
>    at System.RuntimeType.PrivateGetType(String typeName, Boolean
> throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark&
> stackMark)
>    at System.Type.GetType(String typeName)
>    at Gallio.Common.Reflection.TypeName.Resolve() in F:\\Разные штуки\
> \Visual Studio 2008\\Projects\\OpenSource\\Gallio\\v3\\src\\Gallio\
> \Gallio\\Common\\Reflection\\TypeName.cs:line 171
>    --- End of inner exception stack trace ---
>    at Gallio.Common.Reflection.TypeName.Resolve() in F:\\Разные штуки\
> \Visual Studio 2008\\Projects\\OpenSource\\Gallio\\v3\\src\\Gallio\
> \Gallio\\Common\\Reflection\\TypeName.cs:line 181
>    at
> Gallio.Runtime.Extensibility.ComponentDescriptor.ResolveComponentType
> () in F:\\Разные штуки\\Visual Studio 2008\\Projects\\OpenSource\
> \Gallio\\v3\\src\\Gallio\\Gallio\\Runtime\\Extensibility\
> \ComponentDescriptor.cs:line 111
>    --- End of inner exception stack trace ---
>    at
> Gallio.Runtime.Extensibility.ComponentDescriptor.ResolveComponentType
> () in F:\\Разные штуки\\Visual Studio 2008\\Projects\\OpenSource\
> \Gallio\\v3\\src\\Gallio\\Gallio\\Runtime\\Extensibility\
> \ComponentDescriptor.cs:line 120
>    at
> Gallio.Runtime.Extensibility.ComponentDescriptor.ResolveComponentHandler
> () in F:\\Разные штуки\\Visual Studio 2008\\Projects\\OpenSource\
> \Gallio\\v3\\src\\Gallio\\Gallio\\Runtime\\Extensibility\
> \ComponentDescriptor.cs:line 129
>    --- End of inner exception stack trace ---
>    at
> Gallio.Runtime.Extensibility.ComponentDescriptor.ResolveComponentHandler
> () in F:\\Разные штуки\\Visual Studio 2008\\Projects\\OpenSource\
> \Gallio\\v3\\src\\Gallio\\Gallio\\Runtime\\Extensibility\
> \ComponentDescriptor.cs:line 145
>    at Gallio.Runtime.Extensibility.ComponentDescriptor.ResolveComponent
> () in F:\\Разные штуки\\Visual Studio 2008\\Projects\\OpenSource\
> \Gallio\\v3\\src\\Gallio\\Gallio\\Runtime\\Extensibility\
> \ComponentDescriptor.cs:line 151
>    --- End of inner exception stack trace ---\r\n   at
> Gallio.Runtime.Extensibility.ComponentDescriptor.ResolveComponent() in
> F:\\Разные штуки\\Visual Studio 2008\\Projects\\OpenSource\\Gallio\\v3\
> \src\\Gallio\\Gallio\\Runtime\\Extensibility\
> \ComponentDescriptor.cs:line 157
>    at Gallio.Runtime.Extensibility.ComponentHandle`2.<GetComponent>b__0
> () in F:\\Разные штуки\\Visual Studio 2008\\Projects\\OpenSource\
> \Gallio\\v3\\src\\Gallio\\Gallio\\Runtime\\Extensibility\
> \ComponentHandle.cs:line 310
>    at Gallio.Common.Memoizer`1.Memoize(Func`1 populator) in F:\\Разные
> штуки\\Visual Studio 2008\\Projects\\OpenSource\\Gallio\\v3\\src\
> \Gallio\\Gallio\\Common\\Memoizer.cs:line 67
>    at Gallio.Runtime.Extensibility.ComponentHandle`2.GetComponent() in
> F:\\Разные штуки\\Visual Studio 2008\\Projects\\OpenSource\\Gallio\\v3\
> \src\\Gallio\\Gallio\\Runtime\\Extensibility\\ComponentHandle.cs:line
> 310
>    at
> Gallio.Model.DefaultTestFrameworkManager.FilteredTestDriver.ForEachDriver
> [T](MultiMap`2 testFrameworkPartitions, Func`4 func) in F:\\Разные
> штуки\\Visual Studio 2008\\Projects\\OpenSource\\Gallio\\v3\\src\
> \Gallio\\Gallio\\Model\\DefaultTestFrameworkManager.cs:line 469
>    at
> Gallio.Model.DefaultTestFrameworkManager.FilteredTestDriver.ExploreImpl
> (ITestIsolationContext testIsolationContext, TestPackage testPackage,
> TestExplorationOptions testExplorationOptions, IMessageSink messageSink,
> IProgressMonitor progressMonitor) in F:\\Разные штуки\ \Visual Studio
> 2008\\Projects\\OpenSource\\Gallio\\v3\\src\\Gallio\
> \Gallio\\Model\\DefaultTestFrameworkManager.cs:line 422
>    at Gallio.Model.BaseTestDriver.Explore(ITestIsolationContext
> testIsolationContext, TestPackage testPackage, TestExplorationOptions
> testExplorationOptions, IMessageSink messageSink, IProgressMonitor
> progressMonitor) in F:\\Разные штуки\\Visual Studio 2008\\Projects\
> \OpenSource\\Gallio\\v3\\src\\Gallio\\Gallio\\Model\
> \BaseTestDriver.cs:line 84
>    at Gallio.Runner.DefaultTestRunner.Explore(TestPackage testPackage,
> TestExplorationOptions testExplorationOptions, IProgressMonitor
> progressMonitor) in F:\\Разные штуки\\Visual Studio 2008\\Projects\
> \OpenSource\\Gallio\\v3\\src\\Gallio\\Gallio\\Runner\
> \DefaultTestRunner.cs:line 241"
>
> The weird thing is, I can't reproduce it! Now the program crashes again
> without launching the GUI:
> A first chance exception of type
> 'System.Runtime.InteropServices.COMException' occurred in
> System.Windows.Forms.dll
>
> A first chance exception of type 'System.AccessViolationException'
> occurred in Gallio.dll
> Error: A fatal exception occurred.
> System.AccessViolationException: Attempted to read or write protected
> memory. This is often an indication that other memory is corrupt.
>    at System.Reflection.AssemblyName.nToString()
>    at Gallio.Common.Reflection.TypeName.GetHashCode() in F:\Разные
> штуки\Visual Studio 2008\Projects\OpenSource\Gallio\v3\src\Gallio
> \Gallio\Common\Reflection\TypeName.cs:line 152
>    at System.Collections.Generic.GenericEqualityComparer`1.GetHashCode
> (T obj)
>    at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
>    at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue&
> value)
>    at
> Gallio.Runtime.Extensibility.RegistryData.GetServiceByServiceTypeName
> (TypeName serviceTypeName) in F:\Разные штуки\Visual Studio
> 2008\Projects\OpenSource\Gallio\v3\src\Gallio\Gallio\Runtime
> \Extensibility\RegistryData.cs:line 97
>    at
> Gallio.Runtime.Extensibility.RegistryData.FindComponentsByServiceTypeName
> (TypeName serviceTypeName) in F:\Разные штуки\Visual Studio
> 2008\Projects\OpenSource\Gallio\v3\src\Gallio\Gallio\Runtime
> \Extensibility\RegistryData.cs:line 121
>    at
> Gallio.Runtime.Extensibility.Components.<>c__DisplayClass7.<FindByServiceTyp
> eNameImpl>b__6
> (RegistryData data) in F:\Разные штуки\Visual Studio 2008\Projects
> \OpenSource\Gallio\v3\src\Gallio\Gallio\Runtime\Extensibility
> \Components.cs:line 71
>    at Gallio.Common.Concurrency.LockBox`1.Read[TResult](ReadFunc`2
> func) in F:\Разные штуки\Visual Studio 2008\Projects\OpenSource\Gallio
> \v3\src\Gallio\Gallio\Common\Concurrency\LockBox.cs:line 105
>    at Gallio.Runtime.Extensibility.Components.FindByServiceTypeNameImpl
> (TypeName serviceTypeName) in F:\Разные штуки\Visual Studio
> 2008\Projects\OpenSource\Gallio\v3\src\Gallio\Gallio\Runtime
> \Extensibility\Components.cs:line 71
>    at Gallio.Runtime.Extensibility.Components.FindByServiceType(Type
> serviceType) in F:\Разные штуки\Visual Studio 2008\Projects\OpenSource
> \Gallio\v3\src\Gallio\Gallio\Runtime\Extensibility\Components.cs:line
> 58
>    at
> Gallio.Runtime.Extensibility.RegistryServiceLocator.<ResolveAllNonDisabledDe
> scriptors>d__0.MoveNext
> () in F:\Разные штуки\Visual Studio 2008\Projects\OpenSource\Gallio
> \v3\src\Gallio\Gallio\Runtime\Extensibility
> \RegistryServiceLocator.cs:line 186
>    at
> Gallio.Runtime.Extensibility.RegistryServiceLocator.ResolveNonDisabledDescri
> ptor
> (Type serviceType) in F:\Разные штуки\Visual Studio 2008\Projects
> \OpenSource\Gallio\v3\src\Gallio\Gallio\Runtime\Extensibility
> \RegistryServiceLocator.cs:line 196
>    at Gallio.Runtime.Extensibility.RegistryServiceLocator.ResolveImpl
> (Type serviceType) in F:\Разные штуки\Visual Studio 2008\Projects
> \OpenSource\Gallio\v3\src\Gallio\Gallio\Runtime\Extensibility
> \RegistryServiceLocator.cs:line 161
>    at Gallio.Runtime.Extensibility.RegistryServiceLocator.Resolve
> [TService]() in F:\Разные штуки\Visual Studio 2008\Projects\OpenSource
> \Gallio\v3\src\Gallio\Gallio\Runtime\Extensibility
> \RegistryServiceLocator.cs:line 52
>    at Gallio.Icarus.Main..ctor(IApplicationController
> applicationController) in F:\Разные штуки\Visual Studio 2008\PrThe thread
> 0x758 has exited with code 0 (0x0).
> ojects\OpenSource\Gallio\v3\src\Extensions\Icarus\Gallio.Icarus
> \Main.cs:line 141
>    at Gallio.Icarus.IcarusProgram.RunImpl(String[] args) in F:\Разные
> штуки\Visual Studio 2008\Projects\OpenSource\Gallio\v3\src\Extensions
> \Icarus\Gallio.Icarus\IcarusProgram.cs:line 98
>    at
>
> ...
>
> read more >>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MbUnit.User" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/mbunituser?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to