C (97/257)

From:
Date:09 Feb 2001 at 14:35:52
Subject:Re: Alloc/Free___ Chip memory fragmentation

On Fri, 9 Feb 2001, Sensei wrote:
> Your's attached source code has a lot of bugs and it signals that you aren't
> using real debug utilities like Enforcer or (better) MuGuardianAngel (probably
> because you haven't MMU in your 030 CPU)... I sugest you to buy 040/060
> accelerator ;) It'll help you programming a lot... BTW, reading memory that
> you freed couple lines above isn't a good idea...

one. i'm just trying to grab people's SIMM chuckouts at the moment so
i've got a bit more RAM and also and an internal harddisk. I think i do
have an MMU. It's the Blizzard 1230 mk. IV which i'm pretty sure has
one, although i've never tried any virtual memory stuff really.

trying and sorting it all out. I thought it looked a bit much for what i
was trying to solve.

> BTW double buffering method which you used in attached source code: it very
> old method which was good in AmigaOS v1.x/v2.x... In modern programs (or
> games) you really should use double/multiple buffering provided in AmigaOS
> v3.0+ graphics.library functions or using multiple width/height screen and
> switching visible parts using ScrollVPort() (see autodocs for more
> informations) (it's probably the fastest and the best solution for you, it
> works in RTG systems like CGFX or P96 as well).
>
> Regards!
>

bothered about backwards compatibility. i just want to get it working
first :o). I've been programming in some form since i was about 8 on my
spectrum's BASIC. i have about 10/20 half finished programs which i've
given up on at some point in the last ten years, and have only recently
moved into C++ from Blitz BASIC and Java at uni. I never have any
problems with my uni work, but trying to get something i've written into
the public domain has always proved a problem due to frustration at
unfindable bugs. I'm currently attempting to transfer a Graphic
Adventure engine that i programmed in Blitz Basic last summer, into C++.
As well as the fact that i now much prefer the C/C++/Java
object-oriented style, i want to then write a graphics interface for a
PC (at some point).

i've really been learning from is the old RKMs on the Amiga Developers
CD 2.1, so thank you very much for your time :o).

enforcer many times, but whenever i read the overview of it, i don't
bother installing it. It says that it just checks for illegal memory
allocations. When I run the program from within StormC, i get a load of
error messages there about that anyway.

thanks ever so much

bill

------------------------ Yahoo! Groups Sponsor ---------------------~-~>
eGroups is now Yahoo! Groups
Click here for more details
http://click.egroups.com/1/11231/0/_/451227/_/981725761/
---------------------------------------------------------------------_->