Open alexgg94 opened 3 years ago
More specifically, the error starts here:
sdkContext = API.BS2_AllocateContext();
if (sdkContext == IntPtr.Zero)
{
Console.WriteLine("Can't allocate sdk context.");
return IntPtr.Zero;
}
The first petition, it works fine. After that, I'm just receiving BS_SDK_ERROR_CANNOT_LISTEN_SOCKET every time I'm trying to allocate context.
As I mentioned on the first post, this only happens on ubuntu 16.04 with linux sdk.
Hi, Following this model, I have created a net core 3.1 api to connect to a remote device to obtain the list of users on it.
Every time the api receives a petition, I connect the device using Connect function:
Once connected, I'm using
BS2ErrorCode result = (BS2ErrorCode)API.BS2_GetUserList(sdkContext, deviceID, out outUidObjs, out numUserIds, cbIsAcceptableUserID);
To get the users.When I'm done with the conection, I use Disconnect to close it.
In windows this is working perfect. But when I try the same code for ubuntu 16.04 (with the linux sdk), it only works the first time, then, BS2_GetUserList only returns BS_SDK_ERROR_NULL_POINTER until I restart my API.
Am I doing something wrong?