Issue: adding functions to existing COM EXE [modified]
-
I have added two functions to existing COM EXE which runs as Service. But while calling those functions from another application I am getting unhandled exception like: Unhandled exception at 0x00000000 in xxx.exe: 0xC0000005: Access violation. Existing functions are getting called but only new functions are not working. I have added functions to xxx.idl and implemented in another application by including the header generated after building. I am trying to unregister old COM EXE but its not. Please give me clue to sort out the issue. I am new to COM, please let me know any further info is required to look in this issue. Regards, KTTransfer.
modified on Monday, November 2, 2009 5:26 AM
-
I have added two functions to existing COM EXE which runs as Service. But while calling those functions from another application I am getting unhandled exception like: Unhandled exception at 0x00000000 in xxx.exe: 0xC0000005: Access violation. Existing functions are getting called but only new functions are not working. I have added functions to xxx.idl and implemented in another application by including the header generated after building. I am trying to unregister old COM EXE but its not. Please give me clue to sort out the issue. I am new to COM, please let me know any further info is required to look in this issue. Regards, KTTransfer.
modified on Monday, November 2, 2009 5:26 AM
-
I have added two functions to existing COM EXE which runs as Service. But while calling those functions from another application I am getting unhandled exception like: Unhandled exception at 0x00000000 in xxx.exe: 0xC0000005: Access violation. Existing functions are getting called but only new functions are not working. I have added functions to xxx.idl and implemented in another application by including the header generated after building. I am trying to unregister old COM EXE but its not. Please give me clue to sort out the issue. I am new to COM, please let me know any further info is required to look in this issue. Regards, KTTransfer.
modified on Monday, November 2, 2009 5:26 AM
KTTransfer wrote:
I have added two functions to existing COM EXE which runs as Service.
You are most likely breaking one important rule of COM: Interfaces are immutable. Once assigned an IID and published, no element of the interface definition may change.. Read more here[^].
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown