Newsgroups: comp.sys.amiga.programmer
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!bronze!silver!faheyr
From: faheyr@silver.ucs.indiana.edu (Bob Fahey)
Subject: opening diskfont.library
Message-ID: <faheyr.670381151@silver>
Sender: news@bronze.ucs.indiana.edu (USENET News System)
Organization: Indiana University
Date: 31 Mar 91 00:59:11 GMT
Lines: 25

I'm having an unusual problem when opening diskfont.library...

Actually, there is no problem in opening it, IF it exists in the libs:
dir. But, if it isn't in libs:, my system crashes with nice guru 00000004.
(illegal instr). 

Could someone tell me what I am doing wrong? Here's the code I am using:

if (!(diskfontbase = OpenLibrary("diskfont.library", 33L)))
{
	alert(0); /* my routine to display an alert which DOES work correctly*/
	Close_All(); /*closes all opened libraries, windows, etc*/
	exit(FALSE);
}

diskfontbase is of type struct Library... Control never makes it out of the
if... line if diskfont.library doesn't exist, but works fine if it finds it.

Any ideas? Thanks.
Bob
|      ///| a.k.a. NECR0SIS     faheyr@cssun.cs.indiana.edu  -or-            |
|  \\\///_|                     faheyr@silver.ucs.indiana.edu -or-           |
|   \XX/  |  M  I  G  A         faheyr@rose.ucs.indiana.edu                  |
|	      "'Ere long done do does did..."  - The Smiths                  |
|             "...life is seen through the eyes of a dog..."  - Skinny Puppy |
