void initializeSDK() { void* context_ = BS2_AllocateContext(); string hostAddr = Utility::getInput("Please enter the host network address."); sdkResult = BS2_InitializeEx(context_, hostAddr.c_str()); if (BS_SDK_SUCCESS != sdkResult) { TRACE("BS2_InitializeEx call failed: %d", sdkResult); BS2_ReleaseContext(context_); context_ = NULL; } }