You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sample apps work fine, but in my own app (Win 10, .NET Core 3.1 -> referencing ATAPI project source), the line fails to open:
lineOpen failed [0xFFFFFFFF80000048] The operation failed for unspecified reasons
The error code is LINEERR_OPERATIONFAILED
I'm explicitly targeting x86 (32-bit) for hardware reasons. I can initialized TapiManager fine and get my lines. I'm following the examples and passing in the available media modes when opening the line:
line.Open(line.Capabilities.MediaModes);
When I follow into the open call, it fails at Line 1157 in TapiLine.cs:
which is obviously a bad pointer. Everything being passed into the native call is valid and not null, so it's failing somewhere during the interop part. It looks like Interop.cs explicitly points to TAPI32.dll:
I do have the TAPI32 dll in System32. I've tried two different modems, and tried explicitly setting the media mode, but it errors out the same way. It's probably something dumb I'm doing, but I can't figure it out.
The text was updated successfully, but these errors were encountered:
Made some progress. For some reason Monitor() works, but it's very limited in what I can do:
line.Monitor();// worksif(ValidateLine(line)&&!line.IsOpen){// skips this because Monitor technically opens the lineline.Open(line.Capabilities.MediaModes,CurrentAddress.Id);return;}
Possibly -- the library wasn't written for .NET Core - it was written against .NET 4.0 - 4.5 so it's hard to say how well it works against the latest portable .NET runtime.
The sample apps work fine, but in my own app (Win 10, .NET Core 3.1 -> referencing ATAPI project source), the line fails to open:
lineOpen failed [0xFFFFFFFF80000048] The operation failed for unspecified reasons
The error code is LINEERR_OPERATIONFAILED
I'm explicitly targeting x86 (32-bit) for hardware reasons. I can initialized TapiManager fine and get my lines. I'm following the examples and passing in the available media modes when opening the line:
When I follow into the open call, it fails at Line 1157 in TapiLine.cs:
returns
-2147483576
which is obviously a bad pointer. Everything being passed into the native call is valid and not null, so it's failing somewhere during the interop part. It looks like Interop.cs explicitly points to TAPI32.dll:
I do have the TAPI32 dll in System32. I've tried two different modems, and tried explicitly setting the media mode, but it errors out the same way. It's probably something dumb I'm doing, but I can't figure it out.
The text was updated successfully, but these errors were encountered: