Re: TSP memory leak

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"B" <shawbrendan@xxxxxxxxxxx> schrieb im Newsbeitrag
news:OEc2ifAOIHA.4584@xxxxxxxxxxxxxxxxxxxxxxx
what OS / SP are you using?

W2K3 (5.2) SP2


Are those strings within your TSP code?

They're in the SVHOST process "somewhere" - hard to say who owns the blocks
of memory that contain them.


How exactly did you notice the mem leaks?

I wrote a little app to monitor our TSP's internal tables, and I included
memory size as part of the ouput. The damn thing just grows inexorably as
calls come in. I've looked at the obvious "news" and "deletes" in our TSP's
code, but they seem to pair up OK.


Is there any pattern on when they occur?

Not that I've found.


Just searched Windows source code (XP/SP2) but didn't find any occurences
of
"ASYC" or "LMEM" in TAPISRV specific files.

I looked at our source code and didn't find any either! Google wasn't
helpful either.


Brendan,
I just searched WS2k3/SP2 sources:

LMEM occurs in:
- /base/win32/client/ as UNICODE string; there is also a lmem.c file.
- /admin/pchealth/sysinfo/msconfig/ but not as string but only as long lMem

ASYC occurs in:
- /printscan/ui/printui/ as a SIGNATURE string.

Doesn't seem TAPISRV related.


Maybe adding _CrtDumpMemoryLeaks() to a _DEBUG version of your TSP may be of
any help.
Please see MSDN for details.

--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK
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.



.



Relevant Pages

  • Re: Identify call IDs
    ... Just suppose i phone someone, and it replies my phone call, my program will ... P.E, If a fax comes up, finish the call and don't save the audio. ... Microsoft MVP for TAPI / Windows SDK ... TAPI development around the world (Frappr! ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Tapi.Initialize()
    ... > Just to confirm you point, I have seen, memory of my application increasing ... > 4K increment which actually is for each device being opened for a short ... Microsoft MVP for TAPI / Windows SDK ... * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)
  • Re: User Memory Quotas
    ... > - TAPI fails (we wrote the TAPI application so we are intimate with ... > - The Webserver cannot start any perl programs to handle CGI forms. ... > - Our homebrew application cannot start any programs (we have it start ... > - Our homebrew application has higher then normal memory usage. ...
    (microsoft.public.windows.server.security)
  • Re: lineInitializeEx taking 30 seconds to return
    ... 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! ... * Please post all messages and replies to the newsgroup so all may ... Then what is the maximum time limit for lineInitializeEx (or any other ...
    (microsoft.public.win32.programmer.tapi)
  • Re: lineInitializeEx taking 30 seconds to return
    ... Developer and Tester My TAPI and TSPI FAQ: ... My Toto Tools ... TAPI development around the world (Frappr! ... * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)