Closed WheretIB closed 4 years ago
Checked documentation again, the message should be sent using an existing or new worker connection:
var workerConnection = DkmWorkerProcessConnection.Current();
if (workerConnection == null)
workerConnection = DkmWorkerProcessConnection.Open(null);
DkmCustomMessage.Create(process.Connection, process, MessageToLocalWorker.guid, MessageToLocalWorker.checkSymbol, nativeModuleInstance.UniqueId.ToByteArray(), null, null, workerConnection).SendLower();
Sorry for the trouble.
I have decided to split some work with C++ IDiaSession into a worker component and I have created a new vsdconfigxml file with a separate C# class:
But when I send a message from an IDE component to this component, it is not executed in a worker process.
DkmCustomMessage.Create(process.Connection, process, MessageToLocalWorker.guid, MessageToLocalWorker.checkSymbol, nativeModuleInstance.UniqueId.ToByteArray(), null).SendLower();