Article View: comp.sys.mac.programmer.codewarrior
Article #1304Bad problem in MoreFilesExtras?
From: Gordon Tillman
Date: Fri, 08 Dec 2000 21:33
Date: Fri, 08 Dec 2000 21:33
46 lines
2735 bytes
2735 bytes
Hi folks, I had some code that was crashing on PPC processors running system 8.0 or 8.1. I tracked it down to my MoreFilesExtras call to XGetVInfo. In that routine it makes a call to CallPBXGetVolInfoSync. In MoreFilesExtras.c they do this: ---- cut here ---- /* ** CallPBXGetVolInfoSync is the glue code needed to make PBXGetVolInfoSync ** File Manager requests from CFM-based programs. Apple added PBXGetVolInfoSync ** to InterfaceLib in Mac OS 8.5, so if __MACOSEIGHTFIVEORLATER is defined, ** CallPBXGetVolInfoSync is defined back to PBXGetVolInfoSync. ** ** Non-CFM 68K programs don't needs this glue (and won't get it) because ** they instead use the inline assembly glue found in the Files.h interface ** file. */ #if TARGET_API_MAC_CARBON || !TARGET_RT_MAC_CFM // Carbon builds and 68K builds don't need this glue #define CallPBXGetVolInfoSync PBXGetVolInfoSync #else // TARGET_API_MAC_CARBON || !TARGET_RT_MAC_CFM ----- cut here ---- Well PBXGetVolInfoSync crashes 8.0 or 8.1 PPC macs. But CallPBXGetVolInfoSync is just being redefined as a call to that function if you are not building for Carbon or not building a CFM app. Furthermore, the comment makes reference to the macro MACOSEIGHTFIVEORLATER, but that macro is not used in this code logic, and I cannot find it anywhere in the MacOS Support folder tree. Has anyone else run into this problem??? What did you do to fix it? Thanks a bunch, Gordon Tillman (got@mindspring.com)
Technical Details
Message-ID:
<FtcY5.107$ph1.7187@e420r-atl1.usenetserver.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!skynet.be!howland.erols.net!cyclone2.usenetserver.com!news-out.usenetserver.com!cyclone1.usenetserver.com!e420r-atl1.usenetserver.com.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10bcce,f8ac17f58a8273dc,start X-Google-Attributes: gid10bcce,public X-Google-Thread: f635e,f8ac17f58a8273dc,start X-Google-Attributes: gidf635e,public X-Google-ArrivalTime: 2000-12-08 13:33:37 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!skynet.be!howland.erols.net!cyclone2.usenetserver.com!news-out.usenetserver.com!cyclone1.usenetserver.com!e420r-atl1.usenetserver.com.POSTED!not-for-mail From: "Gordon Tillman" <got@mindspring.com> Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac Subject: Bad problem in MoreFilesExtras? Lines: 48 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: <FtcY5.107$ph1.7187@e420r-atl1.usenetserver.com> X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly X-Complaints-To: abuse@webusenet.com NNTP-Posting-Date: Fri, 08 Dec 2000 16:34:29 EST Organization: WebUseNet Corp http://www.usenetserver.com - Home of the fastest NNTP servers on the Net. Date: Fri, 8 Dec 2000 15:33:22 -0600