TweetFollow Us on Twitter

Apr 89 Mousehole
Volume Number:5
Issue Number:4
Column Tag:Mousehole Report

Mousehole Report

By Rusty Hodge & Larry Nedry, Mousehole BBS

From: dbieber (Douglas Bieber, Alta Loma, CA)

Subject: PICT display

HELP!! I am currently using a Mac II w/a Supermac 19" color monitor. I am programming under MPW C 2.0.2. I have been attempting to convert the PICT file Pascal tech-note examples into work-able “C” code. Unfortunately, I have not been successful. I would be interested in any “C” source that reads and displays a PICT-2 file. Any help would be appreciated. Thanks.

From: emmayche (Mark Hartman, Fullerton, CA)

Subject: Re: PICT display

Here’s some Lightspeed C code that I’ve written which does what I think you want to do. This also takes care of picture spooling. I’m not sure how much will be applicable to MPW C.

/* 1 */

int   thePath;
pascal void GetPICTData(dataPtr, byteCount)
 Ptr  dataPtr;
 int  byteCount;
{
 long longCount;
 longCount = byteCount;
 filErr = FSRead(thePath, &longCount, dataPtr);
}
ReadPICTFile(path, window)
 int  path;
 GrafPtrwindow;
{
 QDProcsPtr savedProcs;
 CQDProcs myProcs;
 PicHandlemyPicture;
 long longCount, myEOF, filePos;
 Rect r;
 thePath = path;
 SetStdCProcs(&myProcs);
 myProcs.getPicProc = (Ptr)&GetPICTData;
 savedProcs = window->grafProcs;
 window->grafProcs = (QDProcsPtr)&myProcs;
 SetPort(window);
 myPicture = (PicHandle)NewHandle(sizeof(Picture));
 if (filErr=GetEOF(path, &myEOF))
 return FALSE;
 if (filErr=SetFPos(path, fsFromStart, 512))
 return FALSE;
 longCount = sizeof(Picture);
 if (filErr=FSRead(path, &longCount, (Ptr)*myPicture))
  return FALSE;
 r = (*myPicture)->picFrame;
 DrawPicture(myPicture, &r);
 if (filErr=GetFPos(path, &filePos))
 return FALSE;
 KillPicture(myPicture);
 window->grafProcs = savedProcs;
 if (filePos != myEOF)
  return FALSE;
 return TRUE;
}

Note that there are some casts to QDProcsPtr when you’d think it should really be CQDProcsPtr; don’t worry about these, they work fine and leave the flexibility to return to black-and-white should you ever be crazy enough to do so. “filErr” is a global error code declared in a .h file.

Hope this helps - please let me know. [Another good source is Dave Wilson's Color Paint Example program in his Macintosh II Programming Class Notes, available from the MacTutor Mail Order Store. -ED]

From: andyv (Andrew Voelker, Long Beach, CA)

Subject: Mac II bus error

I wrote a program that works fine on my SE, but it bombs with a bus error on a Mac II. What does a bus error mean on a Mac II?

From: emmayche (Mark Hartman, Fullerton, CA)

Subject: Re: Mac II bus error

It very much depends upon what you’re doing. Generally, a bus error means that somebody (generally the CPU) has asserted an address and nobody lives there (actually, nobody has responded within the time limit of the bus).

If you can figure out about where you’re bombing and post some of the code around that point, it would be helpful in the diagnosis.

From: lsr (Larry Rosenstein, Cupertino, CA)

Subject: Re: Mac II bus error

You can never get a bus error on the Mac SE (or Plus) because of the way the hardware is designed. Your program is still accessing some strange error, but the hardware is mapping that access back to some valid memory address. This means you could be stomping on random memory locations on the SE.

From: dbieber (Douglas Bieber, Alta Loma, CA)

Subject: PICT display again...

The code that emmayche provided worked great! However, I am having two problems:

1) A color picture created by MacDraw II will not appear in color using the aforementioned code. Perhaps further “tweeks” are necessary.

2) A color picture created by Pixel Paint will appear in color. However, the update region (the area of the picture window covered by the SFGetFile dialog) is updated in black & white. I am using CopyBits in my update function. I have retrieved the picture window using GetNewCWindow, and I have defined an off screen PixMap for use with the CopyBits routine. Unfortunately, when I initialize the system, the pixSize variable has a value of zero. I suppose I need to do further “initializations” not previously required for B&W. But what??

Any code and/or suggestions would be appreciated. The February 1988 issue of MacTutor has an excellent article entitled “Macintosh II: Color Screen Dump FKEY”. The use of PixMaps is demonstrated in a Pascal DA. Unfortunately, no update procedures are performed.

From: emmayche (Mark Hartman, Fullerton, CA)

Subject: Re: PICT display again

It is unclear to me how your program is handling the update event that it will receive after the SFGetFile dialog clears away. If you are updating from an off-screen PixMap, you should be sure that the offscreen port is opened with the proper depth, and use the OpenCPort command for it.

I open my palette window first with a GetCWindow call, then steal the depth of that window for document windows. Works fine unless someone makes the screen shallower on you (deeper, we can handle). This is tricky, which is one of the reasons Pixel Paint *requires* 256-color mode to be set. (My program, Photon Paint, is more intelligent, so it’ll operate in 16- or 4-color mode. It’ll do 2-color mode, too, but that gets boring.)

If this doesn’t give you enough help, let me know and maybe we can do something about it off-line.

From: andyv (Andrew Voelker, Long Beach, CA)

Subject: my bus error

I get my bus error on the Mac II in the first instruction of this function:

void  DrawCard(thePile, cardNumber)
struct pile *thePile;
char  cardNumber;
{
 struct cardtheCard;
 theCard = *(thePile->cards[cardNumber]);
}

the following are global variables:

struct card {
 Rect rect
 char   suit, value;
 BooleanfacingUp;
} deck[NUM_OF_CARDS];
struct pile {
 Rect baseRect;
 char numInPile;
 struct Card   *cards[MAX_CARDS_IN_PILES];
} playPile[NUM_OF_PLAY_PILES], accumPile[NUM_OF_ACCUM_PILES], drawPile, 
discardPile;

It doesn’t bomb on a Mac SE.

From: emmayche (Mark Hartman, Fullerton, CA)

Subject: Re: my bus error

Try changing:

 theCard = *(thePile->cards[cardNumber]);

to:

 theCard = *(thePile->cards[(int)cardNumber]);

I think that the byte-wide subscript may be killing you here. It’s probably got some junk in the upper byte(s) which are pointing way-the-heck off somewhere. This is a wild guess - everything else looks fine.

From: dbieber (Douglas Bieber, Alta Loma, CA)

Subject: it’s a start.

Well, nobody has left a message on this board yet. So, I thought I’d start. I’m currently using a Mac II with 19" color monitor. It’s amazing how small the screen on my SE looks when I go home at night. In fact, I almost wish I’d spent the extra money for a Mac II... Too bad the SE doesn’t have color caps besides old Quickdraw...

From: wliao (Willy Liao, Fullerton, CA)

Subject: Re: it’s a start.

Ah, but if you upgrade to the 030 SE it looks like you will have the ability to add a second color monitor to your SE, in a manner analogous to a //x with one 9" monochrome & a 13" (or 19") color. The slot in the 030 SE isn’t NuBus, nor is it the old 96-pin SE slot; it’s been modified for faster access from the 030. Since the ROMs are similar (or identical? Don’t know what’d happen to the slot manager) to the //x’s, you should be able to drive multiple screens if a 3rd party comes out with a card for the slot (or a NuBus chassis, but that would cost extra $$$).

From: ossian1(James Von Schmacht,Santa Ana)

Subject: SE screen wiggle

I just inherited an SE from my company, and have found that it has the “aircraft carrier” fan and the annoying screen shimmy. There used to be a no-cost to the user upgrade which replaced the analog board and the fan unit. Does it still exist? Who should I talk to? What is their number? Should I talk to tech supt at Apple? What is their number? Thanks for any help you can give. The trade I worked out was pretty good too. A Mac Plus, System Saver plus, 800K external drive, A+ optical mouse, and a carrying case for an SE-20 and carrying case, straight across the board...oh yeah, the Plus was a three-plus year old 512k that had been upgraded...tee hee.

From: thecloud (Ken Mcleod, La Habra, CA)

Subject: Re: SE screen wiggle

There is (or was) a service program for free replacement of the fan unit, but it was limited to SE’s with serial numbers less than some magic number, which I don’t have handy at the moment. An Apple dealer should be able to look up the info for you... good luck.

From: rusty (Mr. Rusty Hodge, Orange, CA)

Subject: Re: SE screen wiggle

My fan has been rattling lately, it is truly horrible. I’ll have to get AppleCare I guess.

From: sstaton (Steven R. Staton, Dallas, TX)

Subject: Re: SE screen wiggle

I must inform you, sadly, that there truly was no “no-cost” fix for the SE fan/video wiggle problem. Apple merely acknowledged the problem, fixed it in the SE line, and went about gouging existing owners for fixes.

The Mobius fan can fix the fan noise problem for only $39. I was able to coax my local Apple Dealer into selling me the fix board for the video yoke. It took ten minutes to swap it in. Cost: $17.

From: rusty (Mr. Rusty Hodge, Orange, CA)

Subject: Re: SE screen wiggle

Can someone give some details on the Mobius fan, how it is installed and all that stuff...

From: jr7 (John Rodeffer, Costa Mesa, CA)

Subject: Mac SE/30

PC Week (yes, I have my heresy filter turned on) has an article in the January 23 issue about this machine. Some highlights are:

16 Mhz 68030 Processor with Page Memory Management,Version 6.0.3 OS, 40 or 80 MB Hard Disk w/ 30ms access, FDHD (Floppy Disk High Density) SuperDrive like the Mac IIx, Single Expansion Slot called 030 Direct Slot NOT compatible with “old” SE or the Mac II’s Nubus, 16Mhz bus vs. 8Mhz for “old” SE

Configurations and Pricing

4MB w/ 80MB $6569

1MB w/ 40MB $4869

1MB w/ single 800k Floppy $4369

Evidently 6.0.3 will be required by Apple’s “forthcoming” 32-bit Quickdraw screen drawing software. No mention of any possible upgrade (i.e. Motherboard trade-in) for “old” SE’s. If we make the right noises, maybe Apple will offer it. Mac users’ presence is obviously felt by Apple as illustrated in accompanying article in this same issue: [There is an official upgrade path from both the SE and Mac II to the 030 SE and Mac IIx. It involves a motherboard swap. Ed]

“Experts Pin Apple’s Cuts on Competition, Buyer Pressure” Only four months after raising prices on its full featured Macs, Apple Computer Inc. slashed them last week. While Apple cited reduced costs from falling memory prices as the reason for the cuts, industry analysts said the changes were influenced more by competition and customer resistance to high prices than by memory costs. “They had some problems in the fourth quarter based on price,” said Bill Lempesis, an analyst with market researcher Dataquest, Inc., of San Jose, Calif. Even Allan Loren, president of Apple USA, the sales arm of Apple Computer Inc., said buying patterns shifted to less costly, less fully configured Macs in the fourth quarter. Some analysts say the price cuts don’t go far enough. “Macintosh users would be better served with more powerful computers at lower cost,” said Jonathan Seybold, publisher of the Seybold Reports, in Malibu, Calif. “Apple is going for (profit) margins and responding to shareholders these days. Apple should be going for market share-attracting more users with lower prices-and therefore positioning itself to fend off the challenge of OS/2 and Presentation Manager.”

HEY, APPLE, ARE YOU LISTENING OUT THERE? Users buy Macs, not shareholders.

Let Apple know your feelings on this and maybe we can lower prices to a more realistic level before we have to buy those 386 PS/2’s.

From: macww (Mark Worthington, Worcester, MA)

Subject: 800K external drive

I need to get an 800K floppy drive. Apple’s lists at $429 (gag!). I have ordered and returned “two” CMS 800K drives. Both were defective. I am trying to get a Central Point drive from Programs Plus, but the drives are on backorder and have been for some time. Any recommendations? Thanks.

From: thecloud (Ken Mcleod, La Habra, CA)

Subject: Re: 800K external drive

I would also appreciate info on this. I’m currently running without ANY floppy drives (I’ve used up 3 of ‘em so far; the last one was a typical Apple rebuilt 800K internal --it lasted 3 months), and backups of my hard disk can only occur when I take it over to a friend’s Mac. (I’ve got a drive on order, but I’d like to know if anyone has a “source” for getting broken drives repaired cheaply. Even Computer Quick in La Mirada won’t touch floppy drive repair...)

By the way, all the drives have failed identically: the upper head, which is mounted on a flimsy piece of copper foil, gets caught by a sticking disk shutter and breaks off, rendering the otherwise-sound unit worthless. Does anyone know anyone in the department at Apple where defective floppy drives are returned by dealers? (I’m curious as to what percentage of these failures involve the upper head... bet it’s >90%!)

From: ossian1 (J. Von Schmacht, Santa Ana, CA)

Subject: Re: 800K external drive

How about better disks.....you really gotta watch them there furren imports. Sorry, couldn’t resist...is it possible that the drive cage is not correctly aligned with the insertion slot? I’ve had a 400k then an 800k in my plus for three years, and never encountered this problem. Hope this helps.

From: thecloud (Ken Mcleod, La Habra, CA)

Subject: Re: 800K external drive rec needed

How about better disks.....you really gotta watch them there furren imports. Well, the drive is made by Sony... and I use Sony disks... hmmmm! Also, the drive was correctly mounted... the problem was on the “inside”.

From: cliffh (Cliff Harris, Anaheim, CA)

Subject: Re: 800K external drive rec needed

I have had two Ehman Engineering external drives. After I returned the first drive, which died after three weeks, they sent me a new drive. The new drive wouldn’t format a disk correctly right out of the box. After a week of use it became extremely noisy. I lived with the noise, and then the speed changed so badly that I couldn’t interchange disks written with this drive with those written on the internal drive. I finally solved the problem by buying a demo Apple drive off the bargain table at Heath/Zenith for $250. So far this drive has been perfect. Ehman has apparently changed their name to Cutting Edge (to protect the guilty?). The external appearance of the Cutting Edge drive has changed recently. If the internals have also changed then all of the above comments are of course null and void. I am not surprised that Computer Quick will not fix these drives as all the components are surface mount, which are almost impossible to get and also require special equipment to remove and install.

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Ableton Live 11.3.11 - Record music usin...
Ableton Live lets you create and record music on your Mac. Use digital instruments, pre-recorded sounds, and sampled loops to arrange, produce, and perform your music like never before. Ableton Live... Read more
Affinity Photo 2.2.0 - Digital editing f...
Affinity Photo - redefines the boundaries for professional photo editing software for the Mac. With a meticulous focus on workflow it offers sophisticated tools for enhancing, editing and retouching... Read more
SpamSieve 3.0 - Robust spam filter for m...
SpamSieve is a robust spam filter for major email clients that uses powerful Bayesian spam filtering. SpamSieve understands what your spam looks like in order to block it all, but also learns what... Read more
WhatsApp 2.2338.12 - Desktop client for...
WhatsApp is the desktop client for WhatsApp Messenger, a cross-platform mobile messaging app which allows you to exchange messages without having to pay for SMS. WhatsApp Messenger is available for... Read more
Fantastical 3.8.2 - Create calendar even...
Fantastical is the Mac calendar you'll actually enjoy using. Creating an event with Fantastical is quick, easy, and fun: Open Fantastical with a single click or keystroke Type in your event details... Read more
iShowU Instant 1.4.14 - Full-featured sc...
iShowU Instant gives you real-time screen recording like you've never seen before! It is the fastest, most feature-filled real-time screen capture tool from shinywhitebox yet. All of the features you... Read more
Geekbench 6.2.0 - Measure processor and...
Geekbench provides a comprehensive set of benchmarks engineered to quickly and accurately measure processor and memory performance. Designed to make benchmarks easy to run and easy to understand,... Read more
Quicken 7.2.3 - Complete personal financ...
Quicken makes managing your money easier than ever. Whether paying bills, upgrading from Windows, enjoying more reliable downloads, or getting expert product help, Quicken's new and improved features... Read more
EtreCheckPro 6.8.2 - For troubleshooting...
EtreCheck is an app that displays the important details of your system configuration and allow you to copy that information to the Clipboard. It is meant to be used with Apple Support Communities to... Read more
iMazing 2.17.7 - Complete iOS device man...
iMazing is the world’s favourite iOS device manager for Mac and PC. Millions of users every year leverage its powerful capabilities to make the most of their personal or business iPhone and iPad.... Read more

Latest Forum Discussions

See All

Motorsport legends NASCAR announce an up...
NASCAR often gets a bad reputation outside of America, but there is a certain charm to it with its close side-by-side action and its focus on pure speed, but it never managed to really massively break out internationally. Now, there's a chance... | Read more »
Skullgirls Mobile Version 6.0 Update Rel...
I’ve been covering Marie’s upcoming release from Hidden Variable in Skullgirls Mobile (Free) for a while now across the announcement, gameplay | Read more »
Amanita Design Is Hosting a 20th Anniver...
Amanita Design is celebrating its 20th anniversary (wow I’m old!) with a massive discount across its catalogue on iOS, Android, and Steam for two weeks. The announcement mentions up to 85% off on the games, and it looks like the mobile games that... | Read more »
SwitchArcade Round-Up: ‘Operation Wolf R...
Hello gentle readers, and welcome to the SwitchArcade Round-Up for September 21st, 2023. I got back from the Tokyo Game Show at 8 PM, got to the office here at 9:30 PM, and it is presently 11:30 PM. I’ve done what I can today, and I hope you enjoy... | Read more »
Massive “Dark Rebirth” Update Launches f...
It’s been a couple of months since we last checked in on Diablo Immortal and in that time the game has been doing what it’s been doing since its release in June of last year: Bringing out new seasons with new content and features. | Read more »
‘Samba De Amigo Party-To-Go’ Apple Arcad...
SEGA recently released Samba de Amigo: Party-To-Go () on Apple Arcade and Samba de Amigo: Party Central on Nintendo Switch worldwide as the first new entries in the series in ages. | Read more »
The “Clan of the Eagle” DLC Now Availabl...
Following the last paid DLC and free updates for the game, Playdigious just released a new DLC pack for Northgard ($5.99) on mobile. Today’s new DLC is the “Clan of the Eagle" pack that is available on both iOS and Android for $2.99. | Read more »
Let fly the birds of war as a new Clan d...
Name the most Norse bird you can think of, then give it a twist because Playdigious is introducing not the Raven clan, mostly because they already exist, but the Clan of the Eagle in Northgard’s latest DLC. If you find gathering resources a... | Read more »
Out Now: ‘Ghost Detective’, ‘Thunder Ray...
Each and every day new mobile games are hitting the App Store, and so each week we put together a big old list of all the best new releases of the past seven days. Back in the day the App Store would showcase the same games for a week, and then... | Read more »
Urban Open-World RPG ‘Project Mugen’ Fro...
Last month, NetEase Games revealed a new free to play open world RPG tentatively titled Project Mugen for mobile, PC, and consoles. I’ve liked the setting and aesthetic since its first trailer, and today’s new video has the Game Designer and... | Read more »

Price Scanner via MacPrices.net

Apple AirPods 2 with USB-C now in stock and o...
Amazon has Apple’s 2023 AirPods Pro with USB-C now in stock and on sale for $199.99 including free shipping. Their price is $50 off MSRP, and it’s currently the lowest price available for new AirPods... Read more
New low prices: Apple’s 15″ M2 MacBook Airs w...
Amazon has 15″ MacBook Airs with M2 CPUs and 512GB of storage in stock and on sale for $1249 shipped. That’s $250 off Apple’s MSRP, and it’s the lowest price available for these M2-powered MacBook... Read more
New low price: Clearance 16″ Apple MacBook Pr...
B&H Photo has clearance 16″ M1 Max MacBook Pros, 10-core CPU/32-core GPU/1TB SSD/Space Gray or Silver, in stock today for $2399 including free 1-2 day delivery to most US addresses. Their price... Read more
Switch to Red Pocket Mobile and get a new iPh...
Red Pocket Mobile has new Apple iPhone 15 and 15 Pro models on sale for $300 off MSRP when you switch and open up a new line of service. Red Pocket Mobile is a nationwide service using all the major... Read more
Apple continues to offer a $350 discount on 2...
Apple has Studio Display models available in their Certified Refurbished store for up to $350 off MSRP. Each display comes with Apple’s one-year warranty, with new glass and a case, and ships free.... Read more
Apple’s 16-inch MacBook Pros with M2 Pro CPUs...
Amazon is offering a $250 discount on new Apple 16-inch M2 Pro MacBook Pros for a limited time. Their prices are currently the lowest available for these models from any Apple retailer: – 16″ MacBook... Read more
Closeout Sale: Apple Watch Ultra with Green A...
Adorama haș the Apple Watch Ultra with a Green Alpine Loop on clearance sale for $699 including free shipping. Their price is $100 off original MSRP, and it’s the lowest price we’ve seen for an Apple... Read more
Use this promo code at Verizon to take $150 o...
Verizon is offering a $150 discount on cellular-capable Apple Watch Series 9 and Ultra 2 models for a limited time. Use code WATCH150 at checkout to take advantage of this offer. The fine print: “Up... Read more
New low price: Apple’s 10th generation iPads...
B&H Photo has the 10th generation 64GB WiFi iPad (Blue and Silver colors) in stock and on sale for $379 for a limited time. B&H’s price is $70 off Apple’s MSRP, and it’s the lowest price... Read more
14″ M1 Pro MacBook Pros still available at Ap...
Apple continues to stock Certified Refurbished standard-configuration 14″ MacBook Pros with M1 Pro CPUs for as much as $570 off original MSRP, with models available starting at $1539. Each model... Read more

Jobs Board

Omnichannel Associate - *Apple* Blossom Mal...
Omnichannel Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Cashier - *Apple* Blossom Mall - JCPenney (...
Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom Mall Read more
Operations Associate - *Apple* Blossom Mall...
Operations Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Retail Key Holder- *Apple* Blossom Mall - Ba...
Retail Key Holder- APPLE BLOSSOM MALL Brand: Bath & Body Works Location: Winchester, VA, US Location Type: On-site Job ID: 03YM1 Job Area: Store: Sales and Support Read more
Omnichannel Associate - *Apple* Blossom Mal...
Omnichannel Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.