Home > Software engineering > C calling COM components, don't know why the heartbeat mechanism in the COM components don'
C calling COM components, don't know why the heartbeat mechanism in the COM components don'
Time:10-11
Using c + + calling COM components, through the connection point to work also makes the callback, but chew dad is found COM components established connection for a while will be broken, through caught found no heartbeat packets on the connection to run back and forth, and the COM components used elsewhere (not in c + +) is a heartbeat, really don't understand why is this?
CodePudding user response:
Where is a c + + call com components, has released, such as yao has remained com object
CodePudding user response:
Do have this problem at the beginning, I later all the whole into a member variable, and the class object is full and effective, and the interrupt time has more than 40 seconds, this paragraph of time is can get more packets from the server regularly,