Tapi Wrapper of Alex Fineman, a Bug ?

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
{
}
}
 
B

Boas Enkler

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
{
}
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top