ms0p+@andrew.cmu.edu (Michael Gordon Shapiro) (06/17/91)
I have an A3000 running 2.01. I use Lattice C 5.11. Whenever I call OpenDiskFont, I get a guru. Anyone care to speculate what giveth?
lkoop@pnet01.cts.com (Lamonte Koop) (06/17/91)
ms0p+@andrew.cmu.edu (Michael Gordon Shapiro) writes: >I have an A3000 running 2.01. I use Lattice C 5.11. Whenever I call >OpenDiskFont, I get a guru. Anyone care to speculate what giveth? Did you remember to open diskfont.library? (and, in result, initialize DiskFontBase with the library base pointer returned by OpenLibrary() ? ) LaMonte Koop Internet: lkoop@pnet01.cts.com ARPA: crash!pnet01!lkoop@nosc.mil UUCP: {hplabs!hp-sdd ucsd nosc}!crash!pnet01!lkoop "It's a dog-eat-dog world...and I'm wearing Milk Bone underwear"--Norm LaMonte Koop Internet: lkoop@crash!pnet01.cts.com
robart@agora.rain.com (Robert Barton) (06/17/91)
In article <1991Jun17.061604.18052@crash.cts.com> lkoop@pnet01.cts.com (Lamonte Koop) writes: >ms0p+@andrew.cmu.edu (Michael Gordon Shapiro) writes: >>I have an A3000 running 2.01. I use Lattice C 5.11. Whenever I call >>OpenDiskFont, I get a guru. Anyone care to speculate what giveth? > >Did you remember to open diskfont.library? (and, in result, initialize >DiskFontBase with the library base pointer returned by OpenLibrary() ? ) According to the RKM's, it is "DiskfontBase" and not "DiskFontBase".
toebes@wonka.unx.sas.com (John Toebes) (06/17/91)
In article <QcL2=5600WB485MkVG@andrew.cmu.edu>, ms0p+@andrew.cmu.edu (Michael Gordon Shapiro) writes: |> I have an A3000 running 2.01. I use Lattice C 5.11. Whenever I call ^^^^^^^^^^^^^^ There is no such thing. The latest version of the SAS/C Development System is 5.10a. (Just trying to head off the calls to book sales on this one...) |> OpenDiskFont, I get a guru. Anyone care to speculate what giveth? It is likely that you either failed to open the library or the library base is the wrong name. -- ========= Working for but not representing SAS Institute Inc. ============ John A. Toebes, VIII toebes@sas.com
peterk@cbmger.UUCP (Peter Kittel GERMANY) (06/17/91)
In article <QcL2=5600WB485MkVG@andrew.cmu.edu> ms0p+@andrew.cmu.edu (Michael Gordon Shapiro) writes: >I have an A3000 running 2.01. I use Lattice C 5.11. Whenever I call >OpenDiskFont, I get a guru. Anyone care to speculate what giveth? Did you open diskfont.library and check for success? If this is ok and you search for a sample program, just look onto the 1.3 Extras disk, the BasicDemos drawer and the program Library. (Yes, it is in Basic, but you get the algorithm.) It uses OpenFont instead of OpenDiskFont, but the calling sequence is the same. -- Best regards, Dr. Peter Kittel // E-Mail to \\ Only my personal opinions... Commodore Frankfurt, Germany \X/ {uunet|pyramid|rutgers}!cbmvax!cbmger!peterk
bj@cbmvax.commodore.com (Brian Jackson) (06/17/91)
In article <QcL2=5600WB485MkVG@andrew.cmu.edu> ms0p+@andrew.cmu.edu (Michael Gordon Shapiro) writes: >I have an A3000 running 2.01. I use Lattice C 5.11. Whenever I call >OpenDiskFont, I get a guru. Anyone care to speculate what giveth? Are you opening the diskfont.library ? Brian ----------------------------------------------------------------------- | Brian Jackson Software Engineer, Commodore-Amiga Inc. GEnie: B.J. | | bj@cbmvax.cbm.commodore.com or ...{uunet|rutgers}!cbmvax!bj | -----------------------------------------------------------------------
darren@cbmvax.commodore.com (Darren Greenwald) (06/19/91)
In article <1376@cbmger.UUCP> peterk@cbmger.UUCP (Peter Kittel GERMANY) writes: >In article <QcL2=5600WB485MkVG@andrew.cmu.edu> ms0p+@andrew.cmu.edu (Michael Gordon Shapiro) writes: >>I have an A3000 running 2.01. I use Lattice C 5.11. Whenever I call >>OpenDiskFont, I get a guru. Anyone care to speculate what giveth? > >Did you open diskfont.library and check for success? >If this is ok and you search for a sample program, just look onto >-- >Best regards, Dr. Peter Kittel // E-Mail to \\ Only my personal opinions... >Commodore Frankfurt, Germany \X/ {uunet|pyramid|rutgers}!cbmvax!cbmger!peterk Another thing to check is the TextAttr structure being passed in. A possible (though obscure problem) is a TextAttr with the TAGGED bit set in ta_Style (its the high bit in the byte), in which case the structure is believed to be extended with a pointer to a tag list. -------------------------------------------------------------- Darren M. Greenwald | Commodore-Amiga Software Engineering | USENET: uunet!cbmvax!darren -------------------------------------------------------------- Quote: "It would be impossible to discuss the subject without a common frame of reference." - Spock
jc@crosfield.co.uk (jerry cullingford) (06/19/91)
In article <QcL2=5600WB485MkVG@andrew.cmu.edu> ms0p+@andrew.cmu.edu (Michael Gordon Shapiro) writes: >I have an A3000 running 2.01. I use Lattice C 5.11. Whenever I call >OpenDiskFont, I get a guru. Anyone care to speculate what giveth? I had a similar problem with Lattice 5.02 - guru 4 (I think) every time. I solved it eventually by adding a #pragma directive, after looking up the offset in (I think) the .FD file. I suspect that amiga.lib (and/or the distribution #pragmas) are using the wrong offset. I'm fairly sure I tried the amiga.lib and the proto.h routes before hacking my own. If you're still stuck, send me some email and I'll dig out the exact incantation. -- +-----------------------------------------------------------------+ | | Jerry Cullingford #include <std.disclaimer> +44 442 230000 | ,-|-- | jc@crosfield.co.uk (was jc@cel.co.uk) or jc@cel.uucp x3203 | \_|__ +-----------------------------------------------------------------+ \___/