Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

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.

arbeitsspeicherauslastung

Empfohlene Antworten

Veröffentlicht

hallo leute,

weiß jemand wie ich die auslastung meines arbeitsspeichers in VB6 ermitteln kann?

finde nur diesen netten artikel der mir für vb6 nicht wirklich hilft.

lg

jasso

du bist schon auf dem richtigen weg.

der kernel32-export namens GlobalMemoryStatus ist auch in VB einsetzbar, die methoden und properties sind ebenfalls dieselben. du musst die aufrufe nur adaptieren.


Private Type MEMORYSTATUS

    dwLength As Long

    dwMemoryLoad As Long

    dwTotalPhys As Long

    dwAvailPhys As Long

    dwTotalPageFile As Long

    dwAvailPageFile As Long

    dwTotalVirtual As Long

    dwAvailVirtual As Long

End Type


Private Declare Sub GlobalMemoryStatus Lib "kernel32" ( _

            lpBuffer As MEMORYSTATUS)


Private Sub Form_Timer()

    Dim Memoire As MEMORYSTATUS

    GlobalMemoryStatus Memoire

    Me.Totale = Format(Memoire.dwTotalPhys \ 1048576, "#### Mo")

    Me.Libre = Format(Memoire.dwAvailPhys \ 1048576, "#### Mo")

    Me.Pourcent = Int((Memoire.dwAvailPhys / Memoire.dwTotalPhys) * 100) & " %"

    Me.TotaleApp = Format(Memoire.dwTotalVirtual \ 1048576, "#### Mo")

End Sub

s'Amstel

  • Autor

au fein die arbeitsspeicherdaten hab ich damit schon mal.

weißt du auch noch wie ich die:

- eingestellte auslagerungsdateigröße

- aktuell verwenete auslagerungsdateigröße krieg?

danke

jasso

dwTotalPageFile, dwAvailPageFile ... ist in meinem ersten reply eh schon drin, augen auf :P

s'Amstel

  • Autor

die dwTotalPageFile liefert mir einen negativen wert von: -1931743232

und auch die dwAvailPageFile is negativ.

eingestellt hab ich aber einen Maximalwert und eine Anfangsgröße von 1536MB

lg

jasso

  • Autor

ok jetzt wirds suspekt^^

die dwTotalPageFile ist negativ

die dwAvailPageFile ist negativ

aber die differenz stimmt mit dem wert im taskmanager überein (dwTotalPagefile - dwAvailPageFile)

wenn ich allerdings etwas von dem speicher nutze indem ich einfach ein word-document mit ständigen copy-jobs vollpumpe, wird der dwAvailPageFile plötzlich positiv, wordurch die differenz natürlich nicht mehr stimmen kann.

das is echt verwirrend :rolleyes:

fällt dir oder sonstwem dazu was ein?

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.