# Fatal error in D:\63_sdk\src\talk/ics/sdk/base/nativehandlebuffer.h, line 28
# last system error: 0
# Check failed: false
I am calling ics::base::GlobalConfiguration::SetEncodedVideoFrameEnabled(true); before creating the ics::p2p::P2PClient or the ics::base::LocalStream.
Any help resolving this error would be greatly appreciated.
I am using Windows 7, compiling as 32 bit.
Create a P2PClient with the following configuration:
videoParams.codec.name = ics::base::VideoCodec::kH264;
videoParams.max_bitrate = 5500000;
videoParams.hardware_accelerated = true;
audioParams.codec.name = ics::base::AudioCodec::kOpus;
Log into a Peer Server running on the same machine so we don't have to worry about STUN or TURN servers.
Using the windows C++ p2p sdk, create an ics::base::LocalStream that was created with ics::base::VideoEncoderInterface, and publish from the C++ side to the javscript side. This will crash.
I have found that if I don't send the initial chat message, and start the exchange by publishing the encoded stream, it works.
I am calling setEncodedVideoFrameEanbled(true) as one of the first things I do, before I create any other objects.
What I have found is that if I start by publishing the stream, before sending a data message, publishing works, but I then can't send any data messages to that peer. It just fails to work, rather than crashing or returning an error. So I can either publish video or send data messages, but not both. This is annoying, but I can work around it.
Send no message. After about 16 seconds the C++ sends a "chat-closed" message and crashes.
On the C++ side call one of the following methods, all of which result in an immediate crash
Any insight would be greatly appreciated.
I can't even create a C++ p2pclient as it is not in the latest ics-debug, release.lib. Can you show me the code for making an p2pclient in c++, windows? I just need p2p chat for now.
Thanks in advance,