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.

Resources in a C gauge

Featured Replies

Do you know if there is a limit in the number of bitmap resources defined in the .rc file?I have a srange "Out of memory" error that I can't understand, and it may come from th eincreasing number of bitmaps used in my gauge.Thanks for any help.Eric

Please ignore my question, sorry for this...I found the solution to my problem, which is not a limit in the number of resources managed in a gauge. I guess there is no limit.Sorry for disturbing...Eric

  • Moderator

>Please ignore my question, sorry for this...>I found the solution to my problem, which is not a limit in>the number of resources managed in a gauge. I guess there is>no limit.I should think you would run out of memory long before reaching the real limit of #FFFF... ;)

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

That is right !! ;-)BTW, I will let you know what the problem was:Some of the bitmaps I used are "corrupted". I don't exactly know what it means, because these BMP files could be open and edited in any editor. What I know is that they were causing an "out of memory" error in FS. I simply open the BMP and re-saved them, and everything was fine !!Strange, isn't it ?Eric

Like Bill said you'll run out of memory before you run out of ids. But there is a limit, I think at 0x7FFF, for ids the resource compiler can handle. If you are too generous (e.g. use an offset of 1000 from subgauge to subgauge) you can run out of ids pretty soon even if the actual number of ids is quite small.Also don't forget the +500 offset for high-res bitmaps. You can choose ids quite freely, but not totally without thinking.Arne Bartels

A "corrupted" message is also thrown if a resource id is used twice, you might check that also.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.