mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-26 06:35:49 +03:00
Now pinning delegates in callbacks / callresults
This commit is contained in:
parent
47f153ffa6
commit
e2ef2b0bf7
File diff suppressed because it is too large
Load Diff
@ -317,9 +317,9 @@ private void CallresultFunctions( SteamApiDefinition.StructDef c, bool Result, s
|
|||||||
WriteLine( "//" );
|
WriteLine( "//" );
|
||||||
WriteLine( "// Allocate a handle to each function, so they don't get disposed" );
|
WriteLine( "// Allocate a handle to each function, so they don't get disposed" );
|
||||||
WriteLine( "//" );
|
WriteLine( "//" );
|
||||||
WriteLine( "handle.FuncA = GCHandle.Alloc( funcA );" );
|
WriteLine( "handle.FuncA = GCHandle.Alloc( funcA, GCHandleType.Pinned );" );
|
||||||
WriteLine( "handle.FuncB = GCHandle.Alloc( funcB );" );
|
WriteLine( "handle.FuncB = GCHandle.Alloc( funcB, GCHandleType.Pinned );" );
|
||||||
WriteLine( "handle.FuncC = GCHandle.Alloc( funcC );" );
|
WriteLine( "handle.FuncC = GCHandle.Alloc( funcC, GCHandleType.Pinned );" );
|
||||||
WriteLine();
|
WriteLine();
|
||||||
|
|
||||||
WriteLine( "//" );
|
WriteLine( "//" );
|
||||||
|
Loading…
Reference in New Issue
Block a user