Pinned some more delegates

This commit is contained in:
James King 2017-11-28 11:22:43 +00:00
parent e2ef2b0bf7
commit 7913ccd171

View File

@ -71,9 +71,9 @@ void InstallVTable()
ThisVTable.InternalRulesFailedToRespond db = ( _ ) => InternalOnRulesFailedToRespond();
ThisVTable.InternalRulesRefreshComplete dc = ( _ ) => InternalOnRulesRefreshComplete();
RulesRespondPin = GCHandle.Alloc( da );
FailedRespondPin = GCHandle.Alloc( db );
CompletePin = GCHandle.Alloc( dc );
RulesRespondPin = GCHandle.Alloc( da, GCHandleType.Pinned );
FailedRespondPin = GCHandle.Alloc( db, GCHandleType.Pinned );
CompletePin = GCHandle.Alloc( dc, GCHandleType.Pinned );
var t = new ThisVTable()
{
@ -93,9 +93,9 @@ void InstallVTable()
StdVTable.InternalRulesFailedToRespond db = InternalOnRulesFailedToRespond;
StdVTable.InternalRulesRefreshComplete dc = InternalOnRulesRefreshComplete;
RulesRespondPin = GCHandle.Alloc( da );
FailedRespondPin = GCHandle.Alloc( db );
CompletePin = GCHandle.Alloc( dc );
RulesRespondPin = GCHandle.Alloc( da, GCHandleType.Pinned );
FailedRespondPin = GCHandle.Alloc( db, GCHandleType.Pinned );
CompletePin = GCHandle.Alloc( dc, GCHandleType.Pinned );
var t = new StdVTable()
{