Tapi Wrapper of Alex Fineman, a Bug ?

  • Thread starter Thread starter Boas Enkler
  • Start date Start date
B

Boas Enkler

Hi There

First of all thanks fo Alex Fineman for the Wrapper and sample which saves
me a lot of work :-)

I use the Tapi Wrapper of Alex Fineman which works now fine.

I Also inspeted the samples for this file.
When The Call is terminated the following code is executed.
But on Dispose it always generates an exeption and even an Try catch wan't
catch this thing up.

Is there an known bug ?

private void call_CallState(Call call, LINECALLSTATE state)
{
try
{

}
catch
{
}
try
{
//listBox1.Items.Add(string.Format("New call state:" +
state.ToString()));
if ( state == LINECALLSTATE.IDLE )
{
try
{
this.llFirst = true;


//Now the Error follows!!!
call.Dispose();
call = null;
}
catch
{

}
}
}
catch
{
}
}
 
Sorry I made an Mistake

the error only occurs when I want to show a form (doesn't matter if as a
dialog or normal) in the LineMessage Event. Any hint?

Here some sample code

private void tapi_LineMessage(LINEMESSAGE msg)
{
string lca = "";



if(msg.ToString() == "LINE_CALLINFO:CONNECTEDID")
{
try
{
lca = this.oCall.CallerID;
// Showing form with caller information
program.oTestForm.cNumber = lca;
program.oTestForm.Show();

}
catch
{
}
}
}
 
Back
Top