The CoInitializeEx<\/span> tab allows you to set the default behaviour used to initialize COM if Bug Validator needs to initialize COM to acquire symbols for .Net modules.<\/p>\n\r <\/p>\n\r The default settings are shown below:<\/p>\n\r <\/p>\n\r <\/span><\/p>\n\r <\/p>\n\r <\/p>\n\r <\/p>\n\r In some situations the Validator needs to get .Net symbols and to do that COM needs to be initialized. This normally isn\'t a problem, but if your program also performs COM initialization and the sequence of events results in your COM initialization coming after the Validator\'s COM initialisation rather than getting the expected ERROR_SUCCESS<\/span> return code you\'ll get either ERROR_INVALID_FUNCTION<\/span> or RPC_E_CHANGED_MODE<\/span>.<\/p>\n\r <\/p>\n\r If you get ERROR_INVALID_FUNCTION<\/span> this is OK, this just means you\'ve called CoInitialize() or CoInitializeEx() multiple times with the same flags. Your code needs to handle <\/span>ERROR_INVALID_FUNCTION<\/span> as <\/span>not an error<\/span>.<\/span> <\/p>\n\r If you also wish to disable OLE DDE or favour speed rather than memory use we\'ve provided appropriate options for you to select to add those flags to the threading mode.<\/p>\n\r <\/p>\n\r See the Microsoft documentation for additional information on the behaviour of CoInitialize()<\/a> and CoInitializeEx()<\/a>.<\/p>\n\r <\/p>\n\r <\/p>\n\r Runtime detection of CoInitializeEx conflict<\/span><\/p>\n\r <\/p>\n\r When the above scenario happens, that the Validator has initialized COM before your code initializes COM and your call returns RPC_E_CHANGED_MODE, we display a dialog to warn you about this failure and provide you with the option of editing the default value for subsequent runs of your application.<\/p>\n\r <\/p>\n\r <\/span><\/p>\n\r <\/p>\n\r <\/p>\n\r •<\/span>Edit Settings...<\/span> opens the CoInitializeEx dialog shown above. <\/span><\/p> <\/p>\n\r <\/p>\n\r Reset All - <\/span>Resets all<\/span> global settings, not just those on the current page.<\/p>\n\r <\/p>\n\r <\/p>\n\r Reset - <\/span>Resets the settings on the current page.<\/p>\n\r <\/p>\n\r"
})
CoInitializeEx<\/span><\/h1>\n\r
\n\r <\/span>
\n\rIf you get RPC_E_CHANGED_MODE<\/span> this means you need to change the Validator\'s default value to the same value your program is using. That\'s what this dialog allows you to do.<\/p>\n\r