theKernel 10.0
Loading...
Searching...
No Matches
MkObjectC_TOR_CS_API

MkObjectC - create and destroy a managed-objectMore...

+ Collaboration diagram for MkObjectC_TOR_CS_API:

Functions

void csmkkernel.MkObjectC.Dispose ()
  C#: [destructor] obj.Dispose() C-API
Dispose-Slot - untie the connection between the Native-C#-Instance and the csmkkernel-Instance.
 
void csmkkernel.MkObjectC.Delete ()
  C#: [destructor] obj.Delete() C-API
Delete-Slot - delete an instance.
 
static void csmkkernel.MkObjectC.DeleteCallbackCleanup (string ident)
  C#: [static] MkObjectC.DeleteCallbackCleanup(string ident) C-API
cleanup the DeleteCallback installed with MkObjectDeleteCallbackSetup
 
static void csmkkernel.MkObjectC.DeleteCallbackSetup (string ident, MkObjectDeleteSCB callback=null, string filter=null)
  C#: [static] MkObjectC.DeleteCallbackSetup(string ident, MkObjectDeleteSCB callback = null, string filter = null) C-API
Create/Delete the instance-delete-callback
 

Detailed Description

MkObjectC - create and destroy a managed-object

Function Documentation

◆ Delete()

void csmkkernel.MkObjectC.Delete ( )
inline

C#: [destructor] obj.Delete() C-API
Delete-Slot - delete an instance.

Definition at line 710 of file MkObjectC.cs.

710 {
711 // Do not make this method virtual. !!
712 // A derived class should not be able to override this method.
713 Dispose(true);
714
715 // This object will be cleaned up by the Dispose method.
716 // Therefore, you should call GC.SupressFinalize to
717 // take this object off the finalization queue
718 // and prevent finalization code for this object
719 // from executing a second time.
720 GC.SuppressFinalize(this);
721 }
void Dispose()
C#: [destructor] obj.Dispose() → C-API Dispose-Slot - untie the connection between the Native-C#...
Definition MkObjectC.cs:694

◆ DeleteCallbackCleanup()

static void csmkkernel.MkObjectC.DeleteCallbackCleanup ( string ident)
inlinestatic

C#: [static] MkObjectC.DeleteCallbackCleanup(string ident) C-API
cleanup the DeleteCallback installed with MkObjectDeleteCallbackSetup

Definition at line 726 of file MkObjectC.cs.

726 {
727 IntPtr ident_cstr = Marshal.StringToHGlobalAnsi(ident);
728 Mk.MkObjectDeleteCallbackCleanup(IntPtr.Zero, ident_cstr);
729 Marshal.FreeHGlobal(ident_cstr);
730 }
csmkkernel.MkKernel Mk

◆ DeleteCallbackSetup()

static void csmkkernel.MkObjectC.DeleteCallbackSetup ( string ident,
MkObjectDeleteSCB callback = null,
string filter = null )
inlinestatic

C#: [static] MkObjectC.DeleteCallbackSetup(string ident, MkObjectDeleteSCB callback = null, string filter = null) C-API
Create/Delete the instance-delete-callback

Definition at line 733 of file MkObjectC.cs.

733 {
734 MkObjectDeleteCallF fCall = ObjectDeleteCall;
735 IntPtr ident_cstr = Marshal.StringToHGlobalAnsi(ident);
736 IntPtr callback_ptr = callback == null ? IntPtr.Zero : (IntPtr)GCHandle.Alloc(new MkCall(callback));
737 if (callback_ptr == IntPtr.Zero) fCall = null;
738 IntPtr filter_cstr = Marshal.StringToHGlobalAnsi(filter);
739 MkErrorE errVal = Mk.MkObjectDeleteCallbackSetup(IntPtr.Zero, ident_cstr, fCall, callback_ptr, ObjectDeleteFree, filter_cstr);
740 Marshal.FreeHGlobal(ident_cstr);
741 Marshal.FreeHGlobal(filter_cstr);
742 if (errVal > MkErrorE.CONTINUE) MkErrorC.Check(errVal);
743 }
MkErrorE
collection for the different error-codes …
enum MkErrorE(* MkObjectDeleteCallF)(MK_RT mkrt, MK_OBJN const obj, MK_STRN const typeName, MK_HDL const typeHdl, MK_HDL const objHdl, MK_CBP const __data__)
static callback to delete an obj …

◆ Dispose()

void csmkkernel.MkObjectC.Dispose ( )
inline

C#: [destructor] obj.Dispose() C-API
Dispose-Slot - untie the connection between the Native-C#-Instance and the csmkkernel-Instance.

Definition at line 694 of file MkObjectC.cs.

694 {
695 // Do not make this method virtual. !!
696 // A derived class should not be able to override this method.
697 Dispose(true);
698
699 // This object will be cleaned up by the Dispose method.
700 // Therefore, you should call GC.SupressFinalize to
701 // take this object off the finalization queue
702 // and prevent finalization code for this object
703 // from executing a second time.
704 GC.SuppressFinalize(this);
705 }
+ Here is the caller graph for this function: