all groups > dotnet compact framework > september 2005 >
You're in the

dotnet compact framework

group:

Tapi Wrapper of Alex Fineman, a Bug ?


Tapi Wrapper of Alex Fineman, a Bug ? Boas Enkler
9/30/2005 10:13:55 AM
dotnet compact framework:
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
{
}
Re: Tapi Wrapper of Alex Fineman, a Bug ? Boas Enkler
9/30/2005 11:05:27 AM
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
{
}
}
AddThis Social Bookmark Button