Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
1 user currently in Rom Hacking: hukka | 2 guests
Acmlm's Board - I2 Archive - Rom Hacking - Editor programming - Graphics? | |
Pages: 1 2Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
Parasyte

Bullet Bill
Level: 35

Posts: 299/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 02-14-05 05:15 AM Link | Quote
Yes, it is necessary. You must select the old object back into the device context during the cleanup phase. And no, XP doesn't do much GDI cleaning up. You're creating memory leaks. ;D

To clean up Disch's code, you would use something like this:

SelectObject(mDC,oldbmp);
DeleteObject(bmp);
DeleteDC(mDC);



[I didn't notice that Disch included clean up code in his post. Oh well, doesn't hurt to post again.]


(edited by Parasyte on 02-14-05 01:18 AM)
HyperLamer
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people

Sesshomaru
Tamaranian

Level: 118

Posts: 3291/8210
EXP: 18171887
For next: 211027

Since: 03-15-04
From: Canada, w00t!
LOL FAD

Since last post: 2 hours
Last activity: 2 hours
Posted on 02-14-05 06:50 PM Link | Quote
Shoot, no wonder they kept lagging those old school computers.
Pages: 1 2Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Rom Hacking - Editor programming - Graphics? | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.024 seconds.