Speichernutzung [German]

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: helmut, XnTriq, xnview

Post Reply
Andre

Speichernutzung [German]

Post 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
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Speichernutzung

Post 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?
Pierre.
Michal
Posts: 1
Joined: Thu Oct 21, 2004 1:23 am

Post by Michal »

Hallo Andre

den speicher bekommst du mit der Methode Free; wieder.

gruß
Michael
Post Reply