laptop and a wrench

Bug

"Getting To Know" (GTK) samples consume high CPU usage.

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM000594
SubmittedDecember 14, 2005
Last ModifiedJune 5, 2024
Applies toNo Product Found
Version found9.1
Program languageC++
Version Fixed9.2
StatusFixed

Workaround

1. Create a header file named gtk_axctl_zzz.h with the following code: #include <time.h> extern "C" static gboolean gtk_axctl_rest(gpointer data) { static struct timespec ts; ts.tv_sec = 0; ts.tv_nsec = 1000; nanosleep(&ts, NULL); return TRUE; }2. #include gtk_axctl_zzz.h in the source file3. before gtk_main(), put: g_idle_add(gtk_axctl_rest, NULL);User needs to include /usr/lib/librt.so library in the compiling script also.

Steps to Reproduce

Bug ID: NIM000594

Software:

  • No Product Found

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options