DBin_Free

Syntax:

DBin_Free(hMem.l)

Description:

Free memory allocated using DBin_ command.


Example:

#Image=0 
Image=DBin_("MyBin","images\PBLogo.bmp") 
If Image 
  CatchImage(#Image,Image)  
  DBin_Free(Image)  
Else  
  MessageRequester("Error","Image not Found in DBin")  
  End   
EndIf 

If OpenWindow(0,0,0,400,100,"DBin Test",#PB_Window_SystemMenu|#PB_Window_ScreenCentered) 
  If CreateGadgetList(WindowID(0))  
    ImageGadget(1,0,0,300,100,UseImage(#Image))   
  EndIf  
  Repeat  
  Until WaitWindowEvent()=#PB_Event_CloseWindow 
EndIf 


Supported OS:   Windows