Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Wed, 20 Aug 2008 03:14:03 -0700 (PDT),    group: microsoft.public.win32.programmer.tapi        back       


lineGetTranslateCapsW problems with Oulook   
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
date: Wed, 20 Aug 2008 03:14:03 -0700 (PDT)   author:   unknown

Re: lineGetTranslateCapsW problems with Oulook   
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)
date: Wed, 20 Aug 2008 03:34:34 -0700 (PDT)   author:   unknown

Re: lineGetTranslateCapsW problems with Oulook   
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)
date: Wed, 27 Aug 2008 05:22:42 -0700 (PDT)   author:   unknown

Re: lineGetTranslateCapsW problems with Oulook   
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.
date: Thu, 28 Aug 2008 16:49:40 +0200   author:   Andreas Marschall [MVP TAPI]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us