Skip to content

Instantly share code, notes, and snippets.

Stacktrace:
at <unknown> <0xffffffff>
at (wrapper managed-to-native) object.__icall_wrapper_mono_object_isinst (object,intptr) <IL 0x00008, 0x0005f>
at (wrapper stelemref) object.virt_stelemref_class (intptr,object) <IL 0x00023, 0x00062>
at System.Collections.Immutable.ImmutableArray`1/Builder<T_REF>.ToArray () <IL 0x00020, 0x0008b>
at System.Collections.Immutable.ImmutableArray`1/Builder<T_REF>.ToImmutable () <IL 0x0000f, 0x0007f>
at Microsoft.CodeAnalysis.ArrayBuilder`1<T_REF>.ToImmutable () <IL 0x00006, 0x00022>
at Microsoft.CodeAnalysis.ArrayBuilder`1<T_REF>.ToImmutableAndFree () <IL 0x00001, 0x00015>
at Microsoft.CodeAnalysis.CommonReferenceManager`2<TCompilation_REF, TAssemblySymbol_REF>.ResolveMetadataReferences (TCompilation_REF,System.Collections.Generic.Dictionary`2<string, System.Collections.Generic.List`1<Microsoft.CodeAnalysis.CommonReferenceManager`2/ReferencedAssemblyIdentity<TCompilation_REF, TAssemblySymbol_REF>>>,System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAn
@dlprows
dlprows / gist:4a13db52e2720fe2df1b
Created April 30, 2015 19:40
Register a callback for all multitouch devices
static NSArray* devices;
void startMT(){
devices = CFBridgingRelease(MTDeviceCreateList());
for(int i = 0; i < devices.count; i++)
{
MTDeviceRef device = (__bridge MTDeviceRef)devices[i];
MTRegisterContactFrameCallback(device, mtcallback);
MTDeviceStart(device, 0);
}