Office upgrade to 2405 or above, word crash after my COMAddIn do some operations

陈国辉 1 Reputation point
2024-07-04T00:59:06.5533333+00:00

I have a COMAddIn writted by C#. there are some contentControl in my word document, After change a comboBox contentControl, call some Word COM API  by NetOffice, delete a table and change other content control's contents. versoin 2404 (16.0.17531.20120) is OK, but crash after upgrade to 2405 or 2406 .  when debug in windebug crash stack is as below:

 

00 000000172b0fa960 00007ffa6e946986     mso20win32client!CrashWithRecovery+0x4d
01 000000172b0fa9c0 00007ffacf1ee6d5     mso20win32client!EnableAbortRedirectLiblet::Uninit+0x93
02 000000172b0faa30 00007ffacf1ef6e1     ucrtbase!raise+0x1e5
03 000000172b0faab0 00007ffacf1eee19     ucrtbase!abort+0x31
04 000000172b0faae0 00007ffac5b81ab1     ucrtbase!terminate+0x29
05 000000172b0fab10 00007ffac5b8232f     VCRUNTIME140_1!FindHandler<__FrameHandler4>+0x461
06 000000172b0face0 00007ffac5b82389     VCRUNTIME140_1!__InternalCxxFrameHandler<__FrameHandler4>+0x267
07 000000172b0fad80 00007ffac5b84189     VCRUNTIME140_1!__InternalCxxFrameHandlerWrapper<__FrameHandler4>+0x35
08 000000172b0fadd0 00007ffad1af504f     VCRUNTIME140_1!_CxxFrameHandler4+0xa9
09 000000172b0fae40 00007ffad1a6e866     ntdll!RtlpExecuteHandlerForException+0xf
0a 000000172b0fae70 00007ffad1af403e     ntdll!RtlDispatchException+0x286
0b 000000172b0fb5c0 00007ffaceb0f39c     ntdll!KiUserExceptionDispatch+0x2e
0c 000000172b0fbd60 00007ffaba376ba7     KERNELBASE!RaiseException+0x6c
0d 000000172b0fbe40 00007ffab7d99542     VCRUNTIME140!_CxxThrowException+0x97 [D:\a_work\1\s\src\vctools\crt\vcruntime\src\eh\throw.cpp @ 82]
0e 000000172b0fbea0 00007ff9ebf08171     MSVCP140!std::_Xout_of_range+0x22 [D:\a_work\1\s\src\vctools\crt\github\stl\src\xthrow.cpp @ 25]
0f 000000172b0fbef0 00007ff9eb95b311     wwlib!std::vector >::_Xrange+0x11
10 000000172b0fbf20 00007ff9eb9598da     wwlib!Plector::at+0x41
11 000000172b0fbf50 00007ff9eb078370     wwlib!CmdFireBBOnEnterExit+0x6a
12 000000172b0fbf80 00007ff9eb077567     wwlib!CmdExecCmb+0x671
13 000000172b0ff0d0 00007ff9eb952b08     wwlib!CmdExecCidKcmScope+0x13b
14 000000172b0ff300 00007ff9eb075b69     wwlib!FExecChainedCmds+0x108
15 000000172b0ff3c0 00007ff9eb3a6c78     wwlib!MsgPump::WaitForPostedMessage+0x12d
16 000000172b0ff440 00007ff9eb360207     wwlib!MsgPump::FMainLoop+0x248
17 000000172b0ff580 00007ff718a012b6     wwlib!FMain+0x87
18 000000172b0ff5b0 00007ff718a01592     winword!WinMain+0x296
19 000000172b0ff860 00007ffad04a257d     winword!imp_load?MsoShouldTraceLoggingMsoYA_NKW4Category+0x208
1a 000000172b0ff8a0 00007ffad1aaaf28     KERNEL32!BaseThreadInitThunk+0x1d
1b 000000172b0ff8d0 0000000000000000     ntdll!RtlUserThreadStart+0x28

 

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,006 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.