Re: Random tapisrv.dll crashes, stuck in infinite loop



<GuyverXT9@xxxxxxxxx> schrieb im Newsbeitrag
news:1140776355.430009.309820@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I've written a TSP in Delphi for a SIP based VoIP phone. Everything in
the TSP works fine, but whenever the CALLSTATE messages are processed,
Tapi seems to get stuck in an infinite loop. I've check the results for
all of the tapi functions involved and they return SUCCESS. The
callbacks also execute and return back to the TSP, but afterwards the
infinite loop occurs.

This happens randomly (sometimes on the first try, sometimes on the
35th etc.) and I can't figure why. I've checked for null-terminated
strings, memory leaks etc. The TSP and the softphone speak to each
other via shared memory.

I've attached to the tapisrv process using the IDE debugger, and traced
the problem into the tapisrv.dll. In the CPU window, I see that
register eax gets decremented. The initial value of this register is 0,
and the value afterwards is -1. This is the point where the infinite
loop occurs.

This happens on both win2k and winxp.

Stephan,
in the topic you mention TAPISRV.dll crashes and infinite loops.
These are different things.
What do you mean?
Please clarify.

What does this infinite loop do?
Are any TSPI_ functions on your TSP called recurrently?
If so, which ones? Please provide some kind of log.

Do you have MS Repeater.TSP or Genoa TapiVision available to trace on TSPI
level?
See my TAPI and TSPI FAQ:
Q: How can I debug a TSP ?
http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_How_can_1

--
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: Random tapisrv.dll crashes, stuck in infinite loop
    ... what are the symptoms of this infinite loop, i.e. what is the actual problem? ... netsh ras set tracing tapisrv enable ... Microsoft MVP for TAPI / Windows SDK ... My TAPI and TSPI FAQ: ...
    (microsoft.public.win32.programmer.tapi)
  • Random tapisrv.dll crashes, stuck in infinite loop
    ... Tapi seems to get stuck in an infinite loop. ... strings, memory leaks etc. ... register eax gets decremented. ...
    (microsoft.public.win32.programmer.tapi)
  • Re: how to install a tsp?
    ... Although it isn't for WinCE but for Win32 you may be helpful to get started. ... See my TAPI and TSPI FAQ: ... Microsoft MVP for TAPI / Windows SDK ... * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Forwarding Calls
    ... I am trying to configure an Unconditional divert for the incoming calls. ... have used the guide provided by Andreas Marschall's TAPI and TSPI FAQ ... dwTotalSize 43 unsigned long int ... Microsoft MVP for TAPI / Windows SDK ...
    (microsoft.public.win32.programmer.tapi)
  • Re: are there any documented tapi3.0 workflows ?
    ... > The latest psdk is installed and I have tested the tapisend and tapirecv ... Can you reproduce the issue with TAPI Browser TB3x? ... See my TAPI and TSPI FAQ: ... > the dialer and/or can recommend another dialer application? ...
    (microsoft.public.win32.programmer.tapi)