Page 1 of 1

Speichernutzung [German]

Posted: Mon Oct 18, 2004 11:13 am
by Andre
hallo,

beim erstellen einer multipage-tiffdatei ist mir aufgefallen, dass wenn ich ein einzelnes bild im speicher lade das die speichernutzung (Task-Manager) immer größer wird.

diese einzelne datei im speicher wird dann zur multipagedatei addiert,

Code: Select all


  For Ind = 0 To xAnzahl_Bilder - 1                                    
   DoEvents
    Call gflGetDefaultLoadParams(LoadParams)            

    'hier wird ein bild im speicher geladen   
    Ret = gflLoadBitmap(GL_FindFile(Ind), ptrbitmap, LoadParams, Infos)

    If Ret = GFL_NO_ERROR Then                                           'If no error
     Call extGetGflBitmapFromPtr(ptrbitmap, gflbitmap) 
     Call gflFileAddPicture(Handle, gflbitmap)                
     xErgebnis.text = xErgebnis.text & GL_FindFile(Ind) & vbCrLf
    End If
   
    DoEvents
    xErgebnis.Refresh
   
    xStatus.FloodPercent = ((Ind + 1) * 100) \ xAnzahl_Bilder
    If xStatus.FloodPercent > 45 Then
      xStatus.ForeColor = Weiss
     Else
      xStatus.ForeColor = Schwarz
    End If
  Next Ind
frage : wie bekomm ich den speicher wieder frei ??

danke im vorraus andre

Re: Speichernutzung

Posted: Mon Oct 18, 2004 11:46 am
by xnview
Andre wrote:beim erstellen einer multipage-tiffdatei ist mir aufgefallen,
dass wenn ich ein einzelnes bild im speicher lade das
die speichernutzung (Task-Manager) immer größer wird.
Could you write in english, please?

Posted: Thu Oct 21, 2004 1:28 am
by Michal
Hallo Andre

den speicher bekommst du mit der Methode Free; wieder.

gruß
Michael