SimConnect_Text Freezes v5

EllipticCurve
Posts: 105
Joined: Mon Jun 12, 2017 6:14 pm

SimConnect_Text Freezes v5

Postby EllipticCurve » Thu Apr 30, 2020 8:44 pm

Hi,

Using SimConnect_Text freezes v5. Works fine in 4.5 and earlier.

Code: Select all

char test_debug_data[4096]; ... memset(test_debug_data,0,sizeof(char)*4096); strcpy(test_debug_data,debug.str().c_str()); SimConnect_Text(hSc,SIMCONNECT_TEXT_TYPE_MESSAGE_WINDOW,1.0f,EVENT_TEXT,sizeof(test_debug_data),(void*)test_debug_data);
All comments and opinions are my own.

obinder
Posts: 144
Joined: Sun Jun 08, 2014 9:43 am

Re: SimConnect_Text Freezes v5

Postby obinder » Thu Apr 30, 2020 8:49 pm

Hi,

I ran into the same problem, looked like some kind of race condition to me.

Are you updating the text very frequently, for example every visual frame, while setting the display timeout to "indefinitley" (0), or can the update happen while the previous text is still up?

If you do, slow it down, update only every 0.5 seconds and only keep the text up for 0.5 seconds too.

Best regards
Oliver Binder
Lorby-SI

EllipticCurve
Posts: 105
Joined: Mon Jun 12, 2017 6:14 pm

Re: SimConnect_Text Freezes v5

Postby EllipticCurve » Thu Apr 30, 2020 8:51 pm

Hi,

I ran into the same problem, looked like some kind of race condition to me.

Are you updating the text very frequently, for example every visual frame, while setting the display timeout to "indefinitley" (0), or can the update happen while the previous text is still up?

If you do, slow it down, update only every 0.5 seconds and only keep the text up for 0.5 seconds too.

Best regards
Oliver Binder
Lorby-SI
Yes - running at frame rate.

Interesting. Will try that! Thanks!
All comments and opinions are my own.


Return to “Software Development Kit (SDK) Questions”

Who is online

Users browsing this forum: No registered users and 12 guests