Hello! I just observed that sometimes the lineGetTranslateCapsW method called by Outlook fails: DoFunc: rpcException # 1783 [3188] 13:12:19:156: [TRACE] DoFunc: back from srv- return code=0x80000048 [3188] 13:12:19:156: [TRACE] DoFunc: result = x80000048 [3188] 13:12:21:109: [TRACE] Entering lineGetTranslateCapsW [3188] 13:12:21:109: [INFO ] hLineApp=x800003ff [3188] 13:12:21:109: [INFO ] dwAPIVersion=0x00020000 [3188] 13:12:21:109: [INFO ] lpTranslateCaps=x033244A0 [3188] 13:12:21:109: [INFO ] lpTranslateCaps->dwTotalSize = 44 [3188] 13:12:21:109: [TRACE] DoFunc -- enter [3188] 13:12:21:109: [TRACE] AllocClientResources: enter [3188] 13:12:21:109: [TRACE] AllocClientResources: exit, returning x0 [3188] 13:12:21:109: [ERROR] DoFunc: rpcException # 1783 [3188] 13:12:21:109: [TRACE] DoFunc: back from srv- return code=0x80000048 [3188] 13:12:21:109: [TRACE] DoFunc: result = x80000048 [3188] 13:12:21:109: [TRACE] lineGetTranslateCapsW: result = x80000048 [3188] 13:12:21:109: [TRACE] Entering lineTranslateAddress [3188] 13:12:21:109: [TRACE] DoFunc -- enter [3188] 13:12:21:109: [TRACE] AllocClientResources: enter [3188] 13:12:21:109: [TRACE] AllocClientResources: exit, returning x0 [3188] 13:12:21:109: [ERROR] DoFunc: rpcException # 1783 [3188] 13:12:21:109: [TRACE] DoFunc: back from srv- return code=0x80000048 [3188] 13:12:21:109: [TRACE] DoFunc: result = x80000048 [3188] 13:12:21:109: [ERROR] CreateCurrentLocationObject - ReadLocation create failed 0x80000048 = LINEERR_OPERATIONFAILED Any ideas? Regards, Adam
In case I run another TAPI application before outlook: [1428] 12:20:48:156: [INFO ] lpTranslateCaps->dwTotalSize = 4019 ... [1428] 12:20:48:156: [TRACE] lineGetTranslateCapsW: result = x0 (S_OK)
I just found out why was this happening. Outlook is calling lineGetTranslateCapsW first time with a minimal dwTotalSize, while the dwNeededSize is much more bigger: [3752] 14:21:37:484: [ERROR] lpTranslateCaps->dwTotalSize = 44 [3752] 14:21:37:484: [ERROR] lpTranslateCaps->dwNeededSize = 4023 Then Outlook calls lineGetTranslateCapsW again with the correct parameters: [3752] 14:21:37:484: [INFO ] lpTranslateCaps->dwTotalSize = 4023 [3752] 14:21:37:484: [INFO ] lpTranslateCaps->dwNeededSize = 4023 On Aug 20, 1:34 pm, bartha_a...@yahoo.com wrote: > In case I run another TAPI application before outlook: > > [1428] 12:20:48:156: [INFO ] lpTranslateCaps->dwTotalSize = 4019 > ... > [1428] 12:20:48:156: [TRACE] lineGetTranslateCapsW: result = x0 (S_OK)
schrieb im Newsbeitrag news:b2d97624-47ab-445e-9501-22556f1cda36@t54g2000hsg.googlegroups.com... > I just found out why was this happening. > Outlook is calling lineGetTranslateCapsW first time with a minimal > dwTotalSize, while the dwNeededSize is much more bigger: > > [3752] 14:21:37:484: [ERROR] lpTranslateCaps->dwTotalSize = 44 > [3752] 14:21:37:484: [ERROR] lpTranslateCaps->dwNeededSize = 4023 > > Then Outlook calls lineGetTranslateCapsW again with the correct > parameters: > > [3752] 14:21:37:484: [INFO ] lpTranslateCaps->dwTotalSize = 4023 > [3752] 14:21:37:484: [INFO ] lpTranslateCaps->dwNeededSize = 4023 It is usual to call first with dwTotalSize = sizeof() and only if dwNeededSize>dwTotalSize to recall with additional mem. What's the actual issue besides the trace output? -- Best Regards Andreas Marschall Microsoft MVP for TAPI / Windows SDK / Visual C++ TAPI / TSP Developer and Tester My TAPI and TSPI FAQ: http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm My Toto® Tools (a collection of free, mostly TAPI related tools): http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm TAPI development around the world (Frappr! map): http://www.frappr.com/TAPIaroundTheWorld * Please post all messages and replies to the newsgroup so all may * benefit from the discussion. Private mail is usually not replied to. * This posting is provided "AS IS" with no warranties, and confers no rights.