Tapi wrapper Problems (CFv2.0)

J

Jon Abaunza

Hallo!
I'm using Alex Feinman's Tapi wrapper (v.1.6) and I am always having an
Exception whenever I get the event of NewCall. The same exception
happens if I try to run the example projects TapiApp or CallMonitor.
I cannot see exactly where is the error since I don't have the source
code. But looking into the the Call stack it seems there is an error
when Marshalling the LINECALLINFO structure.
Does someone know where could I get the source code? Or how could make
a work around for this problem?

Thanks in advance for any help
Jon

Call Stack
---------------
mscorlib.dll!System.Runtime.InteropServices.Marshal.SizeOf(object
structure = {Name = "LINECALLINFO" FullName =
"OpenNETCF.Tapi.LINECALLINFO"})
mscorlib.dll!System.Runtime.InteropServices.Marshal.SizeOf(System.Type
t = {Name = "LINECALLINFO" FullName = "OpenNETCF.Tapi.LINECALLINFO"}) +
0x6 bytes
TapiLib.dll!OpenNETCF.Tapi.Call.Call(System.IntPtr hCall = 6098800)
Line 27 + 0x10 bytes C#
TapiLib.dll!OpenNETCF.Tapi.Tapi.OnNewCall(OpenNETCF.Tapi.LINEMESSAGE
msg = {LINE_APPNEWCALL}) Line 278 + 0x1e bytes C#
TapiLib.dll!OpenNETCF.Tapi.Tapi.TapiThreadProc() Line 266 C#
 
G

Guest

I have the same problem!, but i don't understand this matter.

I have downloaded TAPI 1.6, and if i launch the project demo (Pocket PC 2003
project) on a Pocket PC WM 2005 device....the event (receiving call) work
fine....but if i copy the same code into a new Pocket PC WM 2005 project i am
the same Exception.

WHY?! :-(


Call Stack
---------------
mscorlib.dll!System.Runtime.InteropServices.Marshal.SizeOf(object
structure = {Name = "LINECALLINFO" FullName =
"OpenNETCF.Tapi.LINECALLINFO"})
mscorlib.dll!System.Runtime.InteropServices.Marshal.SizeOf(System.Type
t = {Name = "LINECALLINFO" FullName = "OpenNETCF.Tapi.LINECALLINFO"}) +
0x6 bytes
TapiLib.dll!OpenNETCF.Tapi.Call.Call(System.IntPtr hCall = 6098800)
Line 27 + 0x10 bytes C#
TapiLib.dll!OpenNETCF.Tapi.Tapi.OnNewCall(OpenNETCF.Tapi.LINEMESSAGE
msg = {LINE_APPNEWCALL}) Line 278 + 0x1e bytes C#
TapiLib.dll!OpenNETCF.Tapi.Tapi.TapiThreadProc() Line 266 C#
 
D

Dan

Hi
I'm am also having the same problem. The reason why the samples works
is because the are using the .net cf 1, if you upgrade the project to
vs 2005 project and the change the framework version for the sample you
are running to 2.0 it will no longer work.

Does any one have any suggestions.
Thanks
Dan
 
J

Jon Abaunza

I am trying to downgrade the TAPI wrapper of Helen for the Compact
framework but I'm having some problems when marshalling the linedevcaps
structure.
 
D

Dan

Hi
I managed to get hold of the source code to v1.1 of the wrapper. I was
then able to get it working with .net cf2. The error seems to be when
the marshal.sizeof call gets to the tapistruct class. I did not really
have time to look into a full work around so I cheated a bit.
I ran one of the samples that came with 1.6 and had a look at the
dwTotalSize member of the linecallinfo class in an instantiated call
object, and it gave a result of 332, so I just changed the call
constructor and created a new linecallinfo and passed in 332 rather
than the result of the marshall.sizeof. I then added a couple of the
methods that were missing in the 1.1 wrapper like getcellularline and
answer. I don't know what other modifications there were between the
versions but I now have a working tapi wrapper that I can get line
events and call events on, so I am able to listen for incoming calls
and answer it etc.
If anyone would like the source code project for the 1.1 wrapper, drop
me an email.
Hope that helps a little
Dan
 
L

Liviu Florean

Hi Dan,

Are you still willing to share further your experiences with the TAPI
wrapper? I have similar problems and still didn't manage to solve them.
Your help would be greately appreaciated. Thank you in advance.

How could we get in touch by email?...

Regards,
Liviu
 

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

Similar Threads


Top