🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #892

Re: How to check that Bitmap is valid?

#892
From: Mark Linton
Date: Mon, 15 Apr 1991 15:35
15 lines
1235 bytes
In article <9104121357.AA03653@control.lth.se>, dag@CONTROL.LTH.SE (Dag Bruck) writes:
|> Environment: InterViews 2.6 with patches, Sun-4, SunOS 4.1.1, Cfront 2.1.
|> 
|> I create bitmap objects using the constructor
|> 
|> 	Bitmap(const char* filename);
|> 
|> However, if the given filename doesn't refer to a valid bitmap file,
|> I get some strange X protocol error later on.
|> 
|> QUESTION: How do I check that the created Bitmap object really refers
|> to a valid bitmap?

This is a bug.  3.0 no longer has that constructor, but instead has a static member
function "open" that returns a Bitmap* if the file is found or nil otherwise.
Technical Details
Message-ID: <1991Apr15.153520.16312@odin.corp.sgi.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!sgi!shinobu!odin!marktwain.rad.sgi.com!linton
References: <9104121357.AA03653@control.lth.se>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!sgi!shinobu!odin!marktwain.rad.sgi.com!linton
From: linton@marktwain.rad.sgi.com (Mark Linton)
Newsgroups: comp.windows.interviews
Subject: Re: How to check that Bitmap is valid?
Message-ID: <1991Apr15.153520.16312@odin.corp.sgi.com>
Date: 15 Apr 91 15:35:20 GMT
References: <9104121357.AA03653@control.lth.se>
Sender: news@odin.corp.sgi.com (Net News)
Reply-To: linton@marktwain.rad.sgi.com (Mark Linton)
Organization: sgi
Lines: 15