Re: Cannot (re)create new TAPI event listener in same session in VB

Tech-Archive recommends: Fix windows errors by optimizing your registry



Kristian,

you don't really need two TAPI object, one declared WithEvents should be
sufficient. Apart from this what you describe should work, though. I don't
think this is a TAPI problem. You might want to show a bit more of your code
or post a minimal VB project that reproduces the problem.

Best regards,

Matthias Moetje
-------------------------------------
TERASENS GmbH
Augustenstraße 24
80333 Munich, GERMANY
-------------------------------------
Fon: +49 89 143370-0
Fax: +49 89 143370-22
e-mail: moetje at terasens dot com
www: www.terasens.com
-------------------------------------

"Kristian Frost" <kfrost@xxxxxxxxx> wrote in message
news:op.tcvu6wa5l8r4f3@xxxxxxxxxxxxxxxxxxxxxx
This might be a VB problem, or might be a TAPI problem.
I'm not altogether sure, but I guess you guys are the people to ask first.
In my program, the user can exit a form, closing his calls and ending his
TAPI sessions with .shutdown calls to both the TAPI and the "withEvents"
TAPIListener object which listens for events.

On first entering the form, I call
TAPI = New TAPI
''Some monitoring setup code
Set TAPIListener = TAPI

This works fine.

On reentering the form, the TAPIs should be recreated, but when it comes
to do:
set TAPIListener = TAPI
which works fine on the first round, I get a "-2147221415 (80040059)"
runtime error, which is defined pretty much nowhere on the internet that I
can find.

So, I have two inactive TAPI objects, one which can be reinitialised, one
which can't.
I can't account for this.
Any ideas?

Kristian Frost


--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


.



Relevant Pages

  • ITTAPI::Initialize causes access violation
    ... encounter with TAPI. ... My initialization code is ... //Initialize TAPI object ... I can confirm that the ITTAPI pointer is non-NULL when Initializeis ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Disconnecting Call
    ... > disconnecting I can't make a new call it shows an error ... > Unregistered the Tapi object and then reinitialized it. ... Programming Interface functionality is not supported from managed ...
    (microsoft.public.win32.programmer.tapi)
  • Re: doing TAPI in Perl
    ... Matthias Moetje ... TERASENS GmbH ... > use Win32::OLE to create a TAPI object. ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Cannot (re)create new TAPI event listener in same session in VB
    ... you don't really need two TAPI object, ... think this is a TAPI problem. ... Dim WithEvents objTAPI2 As TAPI ... Set objTAPI = New TAPI ...
    (microsoft.public.win32.programmer.tapi)
  • Cannot (re)create new TAPI event listener in same session in VB
    ... This might be a VB problem, or might be a TAPI problem. ... In my program, the user can exit a form, closing his calls and ending his TAPI sessions with .shutdown calls to both the TAPI and the "withEvents" TAPIListener object which listens for events. ... Set TAPIListener = TAPI ... So, I have two inactive TAPI objects, one which can be reinitialised, one which can't. ...
    (microsoft.public.win32.programmer.tapi)