This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- FlexNet Embedded
- :
- FlexNet Embedded Forum
- :
- crash inside FlcCommDelete call?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 29, 2020
12:45 PM
crash inside FlcCommDelete call?
Hi, I'm testing the flexnet_client-xt-c-x64-linux package with our product. I used functions from the "CapabilityRequest" example and build the code on Ubuntu 19.10.
When it comes to license check out, the program always crashes at the FlcCommDelete call inside the TalkToServer. The error message says something like "faulting data pointer: 0x00007ffff5d94860". Does anyone have know what is going wrong?
Here's the TalkToServer function from the CapabilityRequest example:
FlcBool
TalkToServer(
const char * serverUrl,
const FlcUInt8 * request,
FlcSize requestSize,
FlcUInt8 ** response,
FlcSize * responseSize,
FlcErrorRef error)
{
FlcBool rc = FLC_TRUE;
FlcCommRef commInterface = 0;
FlcChar url[512] = {0};
if (!FlcCommCreate(&commInterface, error))
{
DisplayErrorString("creating communications interface", error);
return FLC_FALSE;
}
TCharToFlcChar(serverUrl, url, sizeof(url));
rc = FlcCommSetServer(commInterface, url, error) &&
FlcCommSendBinaryMessage(commInterface, (void *)request, requestSize, (void **)response, responseSize, error);
(void)FlcCommDelete(&commInterface, 0);
return rc;
}
(0) Replies