English Amiga Board

Go Back   English Amiga Board > Coders > Coders. System

Thread Tools
Old 14 December 2018, 22:48   #1
Hardware Designer

Join Date: Aug 2018
Location: Bialystok/Poland
Age: 46
Posts: 42
GfxFree() surprise

I've written following code:
struct MonitorSpec *msp;

if (msp = (struct MonitorSpec*)GfxNew(MONITOR_SPEC_TYPE))
  GfxFree((struct ExtendedNode*)msp);
This code unexpectedly generates recoverable guru $0200000D. I have decided to disassemble GfxFree() from my Kickstart 39.106. Guess what, the code only supports VIEV_EXTRA_TYPE and VIEVPORT_EXTRA_TYPE. Two other structures are not handled and explicitly call Alert().

My guess is they simply forgot to add the later two moving from KS 2 to 3. It probably went unnoticed because usually monitor spec structures are never freed. I wonder if it has been fixed in KS 3.1.
Krashan is offline  
Old 15 December 2018, 04:46   #2
Minuous's Avatar
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 1,987
Yes, this was fixed for KS3.1.
Minuous is offline  

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unexpected surprise inside A500 gunni support.Hardware 20 25 August 2011 21:14
What a surprise ^^ dlfrsilver Retrogaming General Discussion 8 02 June 2006 13:59
Surprise!! Steve project.SPS (was CAPS) 2 22 April 2003 02:29
surprise productions thinlega Amiga websites reviews 2 31 December 2002 20:48
WHD patch for Fireforce (What a surprise!) MethodGit Amiga scene 5 13 August 2001 00:16

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 01:13.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.05959 seconds with 13 queries