🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #1234

Re: guru when calling OpenDiskFont

#1234
From: Chuck McManis
Date: Tue, 12 Sep 1989 17:12
22 lines
1494 bytes
In article <1319@jimi.cs.unlv.edu> jack@jimi.cs.unlv.edu (The Prism) writes:
>When I call OpenDiskFont to load a font, I get a guru.

>I have successfully opened the diskfont.library prior to my call to
>OpenDiskFont, and I have a valid TextAttr structure, the pointer to which
>is passed to OpenDiskFont.  Below is my code:

>struct Library *DiskFontBase
		^^^- Bug

I've flame Commodore a bit about this on BIX, you'll probably want to
now as well. Your bug is that the global that OpenDiskFont() is expecting
the library base to be in is "DiskfontBase" and *NOT* "DiskFontBase" (note
the lower case 'f' in 'font'). The more things like this happen, the more
I think there must be a better way for shared libraries to work than with
"magic" global variables.


--Chuck McManis
uucp: {anywhere}!sun!cmcmanis   BIX: cmcmanis  ARPAnet: cmcmanis@sun.com
These opinions are my own and no one elses, but you knew that didn't you.
"If I were driving a Macintosh, I'd have to stop before I could turn the wheel."
Technical Details
Message-ID: <124522@sun.Eng.Sun.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!sun-barr!newstop!sun!pepper!cmcmanis
References: <1319@jimi.cs.unlv.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!sun-barr!newstop!sun!pepper!cmcmanis
From: cmcmanis%pepper@Sun.COM (Chuck McManis)
Newsgroups: comp.sys.amiga.tech
Subject: Re: guru when calling OpenDiskFont
Message-ID: <124522@sun.Eng.Sun.COM>
Date: 12 Sep 89 17:12:44 GMT
References: <1319@jimi.cs.unlv.edu>
Sender: news@sun.Eng.Sun.COM
Reply-To: cmcmanis@sun.UUCP (Chuck McManis)
Organization: Sun Microsystems, Mountain View
Lines: 22