Skip to content
View in the app

A better way to browse. Learn more.

ResHax

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.
Help us keep the site running.

Working with MEMORY_FILE

Featured Replies

  • Author
  • Localization

Mumm-Ra, posted Wed Sep 16, 2020 2:26 pm (58719)


Hello, i was trying to write some code that uses MEMORY_FILE as a buffer and write that buffer to the output file, clear it and use it again and again. I was trying to clear MEMORY_FILE after each write, didn't found any info regarding how to do (maybe it's not possible, don't know).
Could somebody give some help?
  • Author
  • Localization

aluigi, posted Wed Sep 16, 2020 6:35 pm (58721)


log MEMORY_FILE 0 0
  • Author
  • Localization

Mumm-Ra, posted Wed Sep 16, 2020 7:00 pm (58724)


aluigi wrote:
log MEMORY_FILE 0 0

Thank you for the reply, that's what i've tried for first. The strange thing is that the memory_file size keep increasing, seems the command has no effect.
  • Author
  • Localization

aluigi, posted Wed Sep 16, 2020 7:12 pm (58726)


Are you sure you don't have the "append" mode left enabled?

The size of the MEMORY_FILE in memory is not touched after reset because it's left as buffer for possible future operations, in this case it improves the performances by avoiding to reallocate it multiple times.
So if you still see quickbms.exe keeping lot of memory after "log MEMORY_FILE 0 0" that's normal :)
  • Author
  • Localization

Mumm-Ra, posted Wed Sep 16, 2020 7:19 pm (58727)


aluigi wrote:
Are you sure you don't have the "append" mode left enabled?

The size of the MEMORY_FILE in memory is not touched after reset because it's left as buffer for possible future operations, in this case it improves the performances by avoiding to reallocate it multiple times.
So if you still see quickbms.exe keeping lot of memory after "log MEMORY_FILE 0 0" that's normal :)


Now that you mentioned, i think i've used append at the beggining, let me check. Thank you, you did a great tool man!
Guest
This topic is now closed to further replies.

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.