uninit(pDomain, ulStorageId);
#include "pch.h" void uninit(WDomain*& pDomain, UINT32 ulStorageId) { // unbind from schema AccessDefinition::Unbind(); // disconnect from storage pDomain->ReleaseStorage(ulStorageId); // disconnect from server pDomain->DisconnectAll(); // give more time for cleanup (prevents false error messages from the debugger) ::Sleep(400); // delete domain object pDomain->Uninitialize(); Domain_Destroy(pDomain); // uninitialize thread and free libraries UninitializeThread(); }
#include
"pch.h"
void
WDomain
UINT32
// unbind from schema
AccessDefinition
// disconnect from storage
// disconnect from server
// give more time for cleanup (prevents false error messages from the debugger)
// delete domain object
// uninitialize thread and free libraries
using System; using DataFoundationAccess; namespace TutorialCs { partial class Tutorial { public static void uninit(WDomain pDomain, UInt32 ulStorageId) { // unbind from schema AccessDefinition.Unbind(); // disconnect from storage pDomain.ReleaseStorage(ulStorageId); // disconnect from server pDomain.DisconnectAll(); // give more time for cleanup (prevents false error messages from the debugger) System.Threading.Thread.Sleep(400); // delete domain object pDomain.Uninitialize(); WDomain.Destroy(pDomain); // uninitialize thread and free libraries ThreadInit.UninitializeThread(); } } }
using
namespace
partial
class
Tutorial
public
static
UInt32
ThreadInit