I am attempting to stream the data from a client I have written, reading the data from a SQL Database. (For simulation purposes at the moment.)
I am having trouble with the receive on the Cayuga side, as soon as it hits this section of code:
// Now, receive a string of that length
char *buffer = new char;
It's throwing an exception:
Unhandled exception at 0x7535e124 in Cayuga.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x053ffb5c..
Do you have any other examples of client applications you can post? or any suggestions of what I should try next?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am attempting to stream the data from a client I have written, reading the data from a SQL Database. (For simulation purposes at the moment.)
I am having trouble with the receive on the Cayuga side, as soon as it hits this section of code:
// Now, receive a string of that length
char *buffer = new char;
It's throwing an exception:
Unhandled exception at 0x7535e124 in Cayuga.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x053ffb5c..
Do you have any other examples of client applications you can post? or any suggestions of what I should try next?
Thanks
The client code was sending the integer value in little endian - it needs to be in big endian.
In case anyone else runs into this…