Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Resizing C gauge causing FS to Crash

Featured Replies

I have written a C gauge, that receives variables and read/writes to FSUIPC. When I resize the window that the transparent gauge is on, Flight Sim crashes. I have checked that the bitmap and mouse areas are set-up correctly and cannot find any errors in the code. Might someone know what area could be causing this issue? Appreciate any help or suggestions. Andy

Where do you initialize the FSUIPC stuff? In the gauges_cb? Then try PANEL_SEVICE_CONNECT_TO_WINDOW and PANEL_SERVICE_DISCONNECT;Arne Bartels

Arne, Thank you for your response. I am using both of those. The FSUIPC code is under the gauge_cb. And includes the following sections (snippets taken from the gauge): ************void FSAPI FDUMP ( PGAUGEHDR pgauge, SINT32 service_id, UINT32 extra_data ){ PUINT32 pfdump = (PUINT32)dump_l.var_ptr;************ case PANEL_SERVICE_PRE_INITIALIZE: // "initialize_routine() initialize_var_by_name (&dump_l, "dump_l"); break;************ case PANEL_SERVICE_CONNECT_TO_WINDOW: FSUIPC_Open2(SIM_ANY, &dwResult, &FsuipcMem, 1024); FSUIPC_Write(0x8001, 32,

Hmm, the FSUIPC Code does look good, I haven't checked though. It does look almost identical to mine and I didn't have any problems with it yet OK I use first SIM_FS2K2 and if that doesn't work,(dwResult==FSUIPC_ERR_WRONGFS) I retry with SIM_FS2K4, but I don't think that this is the point.. But the "register_var_by_name" stuff can lead to problems if not done properly.Arne Bartels

Thanks Arne, I've had a few people look at it, though none seem to know what may be causing the issue. I know it's not the bitmap or mouse areas, as these look correct also..///////////////////////////////////////////////////////////////MAKE_STATIC( Fdump_background, BMP_BACK, NULL, NULL, IMAGE_USE_TRANSPARENCY | IMAGE_USE_ERASE, 0, 0,0)PELEMENT_HEADER CFDUMP_list = &Fdump_background.header;////////////////////////////////////////////////////////////////////////MOUSE_BEGIN( FDUMP_mouse_rect, 0, 0, 0 )MOUSE_END/////////////////////////////////////////////////////////MODULE_VAR dump_l;MODULE_VAR dump_r;Might it be something in the H file? Andy

I can't see it from the snippet. You might try a structured approach, first comment out all FSUIPC code, retry, if it still crashes it is NOT a FSUIPC issue. Then comment out all _by_name stuff, retry,.. etc.Arne Bartels

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.