You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the 1 header source in a packaged static library of my own, which is linked to a large application. I tested the same json string in a small test application with no issue. The exception in the large application while debugging:
The members in the screenshot context look suspicious.
I'm unable to catch the exception, being an access violation.
This is the json:
{
"type": "command",
"message_id": "add_player",
"id": "d78bd9ad-9dd2-4186-9d96-7fce52c8e68c",
"timestamp": "2018-10-17T15:24:34.7584775-07:00",
"requestor_id": null,
"payload": [{
"profile_id": "5c57c8d9-76aa-4239-9cec-621be0fa89a6",
"player_name": "Player 1",
"handicap": 1,
"handedness": "right",
"avatar_id": "5c57c8d9-76aa-4239-9cec-621be0fa89a6",
"avatar_data": null,
"fsxlive_authorization_guid": ""
}]
}
I'm unsure if there are some nuances that have been seen before to cause this. It's very frustrating to debug when I have no error feedback. Again, the json::parse() steps through fine with the following main:
int main(int, char**)
{
std::string s;
s += "{\r\n";
s += "\t"type": "command",\r\n";
s += "\t"message_id": "add_player",\r\n";
s += "\t"id": "d78bd9ad-9dd2-4186-9d96-7fce52c8e68c",\r\n";
s += "\t"timestamp": "2018-10-17T15:24:34.7584775-07:00",\r\n";
s += "\t"requestor_id": null,\n";
s += "\t"payload": [ {\n";
s += "\t\t"profile_id":"5c57c8d9-76aa-4239-9cec-621be0fa89a6",\r\n";
s += "\t\t"player_name":"Player 1",\r\n";
s += "\t\t"handicap": 1,\r\n";
s += "\t\t"handedness":"right",\r\n";
s += "\t\t"avatar_id":"5c57c8d9-76aa-4239-9cec-621be0fa89a6",\r\n";
s += "\t\t"avatar_data": null,\r\n";
s += "\t\t"fsxlive_authorization_guid":""\r\n";
s += "\t} ] \r\n";
s += "}";
auto j = json::parse(s);
FSS::CciMessage c = j;
return 0;
}
The text was updated successfully, but these errors were encountered:
I'm using the 1 header source in a packaged static library of my own, which is linked to a large application. I tested the same json string in a small test application with no issue. The exception in the large application while debugging:
The members in the screenshot context look suspicious.
I'm unable to catch the exception, being an access violation.
This is the json:
{
"type": "command",
"message_id": "add_player",
"id": "d78bd9ad-9dd2-4186-9d96-7fce52c8e68c",
"timestamp": "2018-10-17T15:24:34.7584775-07:00",
"requestor_id": null,
"payload": [{
"profile_id": "5c57c8d9-76aa-4239-9cec-621be0fa89a6",
"player_name": "Player 1",
"handicap": 1,
"handedness": "right",
"avatar_id": "5c57c8d9-76aa-4239-9cec-621be0fa89a6",
"avatar_data": null,
"fsxlive_authorization_guid": ""
}]
}
I'm unsure if there are some nuances that have been seen before to cause this. It's very frustrating to debug when I have no error feedback. Again, the json::parse() steps through fine with the following main:
int main(int, char**)
{
std::string s;
s += "{\r\n";
s += "\t"type": "command",\r\n";
s += "\t"message_id": "add_player",\r\n";
s += "\t"id": "d78bd9ad-9dd2-4186-9d96-7fce52c8e68c",\r\n";
s += "\t"timestamp": "2018-10-17T15:24:34.7584775-07:00",\r\n";
s += "\t"requestor_id": null,\n";
s += "\t"payload": [ {\n";
s += "\t\t"profile_id":"5c57c8d9-76aa-4239-9cec-621be0fa89a6",\r\n";
s += "\t\t"player_name":"Player 1",\r\n";
s += "\t\t"handicap": 1,\r\n";
s += "\t\t"handedness":"right",\r\n";
s += "\t\t"avatar_id":"5c57c8d9-76aa-4239-9cec-621be0fa89a6",\r\n";
s += "\t\t"avatar_data": null,\r\n";
s += "\t\t"fsxlive_authorization_guid":""\r\n";
s += "\t} ] \r\n";
s += "}";
auto j = json::parse(s);
FSS::CciMessage c = j;
return 0;
}
The text was updated successfully, but these errors were encountered: