forderud / ComSamples

Examples of language-neutral COM interfaces for IPC and language interop.
MIT License
3 stars 3 forks source link

Activate COMGLB_FAST_RUNDOWN to reduce cleanup delay after a client crash #20

Closed forderud closed 1 year ago

forderud commented 1 year ago

Required code:

// Activate fast stub rundown after app crashes. Reduces the cleanup delay from ~11min to <10sec
CComPtr<IGlobalOptions> globalOptions;
CHECK(globalOptions.CoCreateInstance(CLSID_GlobalOptions, NULL, CLSCTX_INPROC_SERVER));
CHECK(globalOptions->Set(COMGLB_RO_SETTINGS, COMGLB_FAST_RUNDOWN));

Documentation on COMGLB_FAST_RUNDOWN

forderud commented 1 year ago

Completed in 9dd92d5f16f9ab392bc106e98c2f40db36148bcf