More interestingly it was able to detect this condition as "trailer trashed". see the "* DisplayBPP" in the AllocVec... I know thats wrong, i just find it strange that it would trash memory. I'd think its simply a waste of memory (MAX_POLY_VERT was already way more than needed) . unless displayBPP was a floating point between 0 and 1... which its not...
if(areaBuffer = AllocVec(MAX_POLY_VERT * DisplayBPP, MEMF_CLEAR))
{
InitArea(&areaInfo, areaBuffer, MAX_POLY_VERT);
This one has stung me in the past, areaBuffer needs to be 5 times bigger than the number of max number of points, take a look at
http://amiga.sourceforge.net/amigadevhelp/phpwebdev.php?keyword=InitArea&funcgroup=AmigaOS&action=Search So that could give you the trashed trailer. You can confirm this by looking at the memory directly after the areaBuffer where MemLib will put
"\xBB\xBB\xBB\xBB\xBB\xBB\xBB\xBB"
If you keep watching that address in CodeProbe, you should see it change.
I'll use Memlib in the future as it beats my previous method of trying to remember what the chip and fast were before I ran the app.
It's saved a lot of my hair! :-)
billy