This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Destroy CGapiSurface?


Destroy CGapiSurface?

Postby Karel » Apr 23, 2003 @ 11:11pm

What is the best way to free the memory that is occupied after a CreateSurface call?
I tried to delete just the object that was containing the CGapiSurface but that didn't free anything. Now I call CreateSurface(0,0,0,0); just before I remove the object but there must be a better way I think?
Or should I do a delete on the surface in the destructor but thats only for pointers isn't?
Karel
pm Member
 
Posts: 23
Joined: Feb 25, 2003 @ 3:54pm
Location: The Netherlands


Deletion

Postby warmi » Apr 23, 2003 @ 11:32pm

warmi
pm Insider
 
Posts: 518
Joined: Aug 24, 2002 @ 8:07am
Location: Chicago USA


Postby Karel » Apr 24, 2003 @ 12:04am

Karel
pm Member
 
Posts: 23
Joined: Feb 25, 2003 @ 3:54pm
Location: The Netherlands


Postby Johan » Apr 24, 2003 @ 12:11am

User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby efortier » Apr 24, 2003 @ 12:29am

User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


Postby Johan » Apr 24, 2003 @ 12:34am

User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron