Skip to content

Instantly share code, notes, and snippets.

View mterwoord's full-sized avatar

Matthijs ter Woord mterwoord

  • ter Woord Computers
View GitHub Profile
SystemIOStreamCosmosKernelTestsFatTestClassInitializeSystemString.IL_0014:
; Stack offset before execution : 8
; Current Arguments : 4
; Target Arguments : 8
; Newobj
push dword 0x5C
call SystemUInt32CosmosIL2CPUGCImplementationAllocNewObjectSystemUInt32
SystemIOStreamCosmosKernelTestsFatTestClassInitializeSystemString.IL_0014.AfterAlloc:
push dword [ESP]
push dword [ESP]
15-12-2015 18:49:37: An exception was thrown while executing command Std2K: COMPLETEWORD:
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: position
at Microsoft.VisualStudio.Text.SnapshotPoint..ctor(ITextSnapshot snapshot, Int32 position)
at Paket.VisualStudio.IntelliSense.ReferencesFileCompletionEngine.GetCompletionContext(PaketDocument paketDocument, ITextStructureNavigator navigator, SnapshotPoint position)
at Paket.VisualStudio.IntelliSense.ReferencesFileCompletionEngine.GetCompletionProviders(IIntellisenseSession session, ITextBuffer textBuffer, SnapshotPoint position, ITextStructureNavigator navigator, CompletionContext& context)
at Paket.VisualStudio.IntelliSense.PaketReferencesFileCompletionSource.AugmentCompletionSession(ICompletionSession session, IList`1 completionSets)
at Microsoft.VisualStudio.Language.Intellisense.Implementation.CompletionSession.Start()
at Paket.VisualStudio.IntelliSense.CommandFilter.StartSession()
@mterwoord
mterwoord / Program.cs
Created June 14, 2016 13:16
Roslyn refactoring test
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cosmos.Assembler.x86;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Symbols;
using Microsoft.CodeAnalysis.CSharp.Syntax;
System.AggregateException: One or more errors occurred. ---> System.InvalidCastException: Kan een object van het type Microsoft.CodeAnalysis.Text.CompositeText niet converteren naar het type Microsoft.CodeAnalysis.Text.ChangedText.
at Microsoft.CodeAnalysis.Text.ChangedText.WithChanges(IEnumerable`1 changes)
at Microsoft.CodeAnalysis.Workspace.ApplyProjectChanges(ProjectChanges projectChanges)
at Microsoft.CodeAnalysis.MSBuild.MSBuildWorkspace.ApplyProjectChanges(ProjectChanges projectChanges)
at Microsoft.CodeAnalysis.Workspace.TryApplyChanges(Solution newSolution)
at Microsoft.CodeAnalysis.MSBuild.MSBuildWorkspace.TryApplyChanges(Solution newSolution)
at RoslynTest.Program.<DoMainAsync>d__5.MoveNext() in C:\Data\Sources\OpenSource\CosmosRoslynRefactorings\RegistersToEnumRefactoring\Program.cs:line 84
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tas
wget --trust-server-names -m -np http://ligman.me/29ngkYn
wget --trust-server-names -m -np http://ligman.me/29jL5wW
wget --trust-server-names -m -np http://ligman.me/29afIRV
wget --trust-server-names -m -np http://ligman.me/29pyHgR
wget --trust-server-names -m -np http://ligman.me/29dmbfC
wget --trust-server-names -m -np http://ligman.me/29ollRF
wget --trust-server-names -m -np http://ligman.me/29gvv67
wget --trust-server-names -m -np http://ligman.me/29pzkHg
wget --trust-server-names -m -np http://ligman.me/29CWQ20
wget --trust-server-names -m -np http://ligman.me/1G0Cm7T
return (from item in xRitInfoService.All
join xApos in xAnalyses.All
on new
{
item.Bonnummer,
AnalyseSource = AnalyseSourceEnum.Apos
} equals new
{
xApos.Bonnummer,
xApos.AnalyseSource
@mterwoord
mterwoord / Query.cs
Created August 10, 2016 14:23
Query.cs
return (from item in xRitInfoService.All
join xApos in xAnalyses.All
on new
{
item.Bonnummer,
AnalyseSource = AnalyseSourceEnum.Apos
} equals new
{
xApos.Bonnummer,
xApos.AnalyseSource
//Go through all the arguments
foreach (var argument in tmpStringArray)
{
//If the argument starts with the variable tag then....
if (argument.StartsWith(variableTag))
{
//Go through all the variables
foreach (var variable in variables)
{
//Check if the variable is valid
@mterwoord
mterwoord / Test.cs
Created October 21, 2016 13:22
Voorbeeldje van simpele analyse mbt procesdumps
using (var xTarget = DataTarget.LoadCrashDump(@"e:\email.dmp"))
{
Console.WriteLine("Available clr versions:");
foreach (var xClrVersion in xTarget.ClrVersions)
{
Console.WriteLine(" - {0}", xClrVersion.Version);
}
if (xTarget.PointerSize != IntPtr.Size)
{
@mterwoord
mterwoord / Test.il
Created November 10, 2016 15:21
Test
IL_0000: nop
IL_0001: ldarg.0
IL_0002: call UserQuery.DoIt
IL_0007: pop
IL_0008: ret
DoIt:
IL_0000: nop
IL_0001: ldc.i4.0
IL_0002: stloc.0 // result