🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.programmer.codewarrior
Article #1305

Re: Bad problem in MoreFilesExtras?

#1305
From: meeroh
Date: Fri, 08 Dec 2000 21:44
36 lines
2473 bytes
In article <FtcY5.107$ph1.7187@e420r-atl1.usenetserver.com>, "Gordon 
Tillman" <got@mindspring.com> wrote:

>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:

[snip]

>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.

I don't see what the problem is.

PBXGetVolInfoSync can't be called directly from CFM non-Carbon apps on 
Mac OS 8.0 and 8.1. MoreFiles gives you CallPBXGetVolInfoSync glue to 
use in those cases. 

It souns to me like you are running your code on Mac OS 8.0 or 8.1, and 
you are weak-linking against interface lib, and you are either making 
direct calls to PBXGetVolInfoSync, instead of using 
CallPBXGetVolInfoSync, or you are somehow causing MoreFiles to #define 
CallPBXGetVolInfoSync to PBXGetInfoSync (maybe by #defining 
TARGET_API_MAC_CARBON), but then doing something wrong (such as linking 
against InterfaceLib after you defined TARGET_API_MAC_CARBON).

Hth,

meeroh
-- 
To get random signatures put text files into a folder called "Random Signatures" into your Preferences folder.
Technical Details
Message-ID: <macdev-F694B1.16441508122000@news.mit.edu>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!dreaderd!not-for-mail
References: <FtcY5.107$ph1.7187@e420r-atl1.usenetserver.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bcce,f8ac17f58a8273dc
X-Google-Attributes: gid10bcce,public
X-Google-Thread: f635e,f8ac17f58a8273dc
X-Google-Attributes: gidf635e,public
X-Google-ArrivalTime: 2000-12-08 13:44:15 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!dreaderd!not-for-mail
From: meeroh <macdev@meeroh.org>
Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac
Mail-Copies-To: poster
Subject: Re: Bad problem in MoreFilesExtras?
Organization: MIT
References: <FtcY5.107$ph1.7187@e420r-atl1.usenetserver.com>
User-Agent: MT-NewsWatcher/3.0 (PPC)
Date: Fri, 08 Dec 2000 16:44:15 -0500
Message-ID: <macdev-F694B1.16441508122000@news.mit.edu>
Lines: 36
NNTP-Posting-Host: DONT-GRIEVE-ADMIRAL.MIT.EDU
X-Trace: dreaderd 976311854 29571 18.18.1.86