forderud / ComSamples

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

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

Closed forderud closed 9 months ago

forderud commented 9 months 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 9 months ago

Completed in 9dd92d5f16f9ab392bc106e98c2f40db36148bcf