Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: RandomTiger on January 22, 2004, 06:22:39 pm

Title: Fix to serious -pcx32 bug
Post by: RandomTiger on January 22, 2004, 06:22:39 pm
I've just discovered quite a bad bug I put into fs2_open.
When using -pcx32 bitmaps loaded from pcx would get loaded into memory twice. And only unloaded once.

That could actually account for some of the problems people have been experiencing. Sorry about that.

Heres a fixed exe.

http://mysite.freeserve.com/thomaswhittaker/c_code/freespace/fs2_open_r.rar
Title: Fix to serious -pcx32 bug
Post by: ChronoReverse on January 22, 2004, 08:59:47 pm
As in loaded into main memory (i.e. not graphics memory)?  This could explain the 1gb memory requirement of FS2_open I've been experiencing recently.  As soon as my main computer works again...
Title: Fix to serious -pcx32 bug
Post by: redsniper on January 22, 2004, 10:11:39 pm
Aha! this explains the size of my page file
Title: Fix to serious -pcx32 bug
Post by: Lightspeed on January 23, 2004, 08:24:25 am
this is a modified 20_01_04 build?

You should stick to the naming convention of builds, else this is getting very confusing. :doubt:
Title: Fix to serious -pcx32 bug
Post by: RandomTiger on January 23, 2004, 12:04:46 pm
Turns out its not as bad as I thought, the memory should have been freed OK before mallocing the new one later on in the code.

Was still a bad bug though.