Got crash when requesting lease from float serverSolved

What could be the reason? Here is back trace.

CryptoPP::ArraySink::Put2(unsigned char const *,unsigned __int64,int,bool) Unknown Non-user code. Symbols loaded.> CryptoPP::BufferedTransformation::ChannelPut2(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned char const *,unsigned __int64,int,bool) Unknown Non-user code. Symbols loaded. CryptoPP::StringStore::CopyRangeTo2(class CryptoPP::BufferedTransformation &,unsigned __int64 &,unsigned __int64,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool) Unknown Non-user code. Symbols loaded. CryptoPP::BufferedTransformation::Peek(unsigned char *,unsigned __int64) Unknown Non-user code. Symbols loaded. CryptoPP::BufferedTransformation::Peek(unsigned char &) Unknown Non-user code. Symbols loaded. CryptoPP::BufferedTransformation::AnyRetrievable(void) Unknown Non-user code. Symbols loaded. CryptoPP::BufferedTransformation::TransferMessagesTo2(class CryptoPP::BufferedTransformation &,unsigned int &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool) Unknown Non-user code. Symbols loaded. CryptoPP::BufferedTransformation::TransferAllTo2(class CryptoPP::BufferedTransformation &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool) Unknown Non-user code. Symbols loaded. CryptoPP::StringSource::StringSource(unsigned char const *,unsigned __int64,bool,class CryptoPP::BufferedTransformation *) C++ Non-user code. Symbols loaded. LicenseLease::Request(bool) C++ Non-user code. Symbols loaded. TF_RequestLease() C++ Non-user code. Symbols loaded.

We can't reproduce this here, but this should never happen. More information is needed so we can look into this:

1. What platform are you on: Window, macOS, Linux?

2. What version of the platform? (Windows 10, macOS 10.12, etc.)?

3. What architecture of the platform are you on? (x86, x64, armvt?)

4. What version of the TurboFloat Library are you using?

5. What version of the TurboFloat Server are you using?

6. Can you give a way to reproduce this behavior? Code snippets? A description, anything?

Some answers.1. Windows2. Windows 103. x644. 4.0.9.65. 4.0.9.76. Right now no. The TurboFloat and TurboActive are integrated in our app. I need time to extract code snippet. We use static linking with both of them, load TurboActivate.dat from the file and switch usage of TurboFloat or TurboActive based on user choice. Your example app in the TurboFloat package works without crash, but somethimes hangs when pressing 'X' + following Enter.

Dynamic linking of TF and TA works without crashes.

Sorry, static linking both libraries in the same executable is not supported with 4.0 and below. We plan to support it with TA/TF 4.1 and above (and *only* if the TA/TF versions are identical).

In the meantime you can do what you're doing now (both dynamic libraries) or use 1 dynamic library and 1 static library.

Solved in TA / TF 4.1.3.0. On linux/ bsd you'll need to use the combined static libraries provided on the API page. On Windows, if you use both static libraries you'll need to ensure that both TurboActivate and TurboFloat are the exact same version (no mixing-and-matching)