TweetFollow Us on Twitter

Feb 95 Dialog Box
Volume Number:11
Issue Number:2
Column Tag:Dialog Box

Dialog Box

By Scott T Boyd, Editor

EvenBetterBusError Again?

Your printed copy of EvenBetterBusError in the December issue has a bug. Your constant SizeOfCodeBlock is computed to include only the code, but then is used as if it contained both the code and the constant BuggyCodeWroteToNil. The effective address of the PEA just before _DebugStr in the VBL task is outside the system heap block you obtained with _NewPtr.

Check it out. The effect is that after legitimately dropping into the debugger, one might see almost anything as the debugging string, hardly helpful!

Fix it by moving the EndOfCodeBlock label after the DC, not before. Does your assembler complain about labels with no contents? Fix that by putting another dummy DC after EndOfCodeBlock.

I wish we could ignore the dumbbells who claim their bugs are caused by the detection mechanism, but what if one needs their software!?!

- Emerson Mitchell, 72257.2213@compuserve.com

[Yes, indeed, it’s a bug. It’s also missing an ALIGN to get it on a nice boundary. That’ll teach me to assemble and link without actually installing and running. Another lesson learned. Thanks for the correction. As for the dumbbells, we can’t fix them, but a whole lot of folks now know to use EBBE when testing software (theirs and others). The “culprit” that I wrote about has already rewritten chunks of their product and has a new appreciation for low-level debugging tools. If you see other software that could use fixes along these lines, please drop us a note - Ed stb]

This Is California, And It’s 1994

Scott, 14.4K Internet access? Why bother, when PacBell will install an ISDN line in your home for less than $100, and companies like Internex will give you ISDN access for $49/month?

That’s what I did. With an Ascend router, I get ISDN into my local Ethernet, and we both have high speed access. Whee!

- David Ramsey, ramsey@be.com

[That sounds terrific, but I want to host my own Internet services (Web server, ftp site, and so forth). I can do those now, albeit slowly, with my constant 14.4K connection. A constant ISDN connection in this area would run more than three times what I’m paying now. ISDN equipment costs substantially more than my cheap modem, too. Ascend routers get you up and over the $1000 mark pretty quickly. Of course, these reasons don’t mean I’m not jealous! - Ed stb]

Another Bug?

I just discovered a nasty “gotcha” in a tip I submitted to MacTech, which was printed a few months ago.

If you hack a folder alias with ResEdit to look as if it were an alias to the Desktop Folder, don’t ever ask Finder to “Get Info...” on the hacked alias and then try to “Find Original.” If you do, Finder crashes; dramatically or quietly, depending on its mood at the time.

I hope this doesn’t mean I have to give back the “tip of the month” money for that one, ’cuz I already spent it!

- Lee David Rimar

FTP’s A Good Idea, But

I’d like to thank you for maintaining an ftp-site, and a net-presence in general. I would, however, encourage you to seek a mirror site. I’ve had very little luck connecting to ftp.netcom.com. And most of the few times I have been able to connect, the response time has been unbearably slow.

- Robert Fisher, malirath@zilker.net

[We don’t know what’s up with Netcom, but we’re not happy with it either. We’ll be getting our own site online sometime soon. Thanks for the suggestion about a mirror site - we’ll keep you posted - Ed stb]

Develop and MacTech Editors Read Each Other

In response to Steve Kiene’s letter in the December issue:

I enjoyed Steve Kiene’s well-written letter to MacTech in the December issue - even though I’m the editor of Apple’s own technical journal, develop. We try not to make develop a Stars and Stripes, feel-good magazine either, although we do need to push the company’s technology direction a bit to avoid incompatibilities for developers down the road.

My forthcoming editorial in Issue 21 of develop is on the subject of my own emotional attachment to the Mac, so I especially enjoyed the paragraph on your similar attachment. I hope your attachment remains - and that you’re a develop reader :- )

Regards,

- Caroline Rose, CROSE@applelink.apple.com

List Versus Object In Smalltalk

Kevin O’Neill wrote:

I managed to get the time to read your article in MacTech last night. It was great and I hope to see more.

I’d like to know more about how you decided to use a list to store the drag data rather than an object of a specific class. I found myself flipping back to the stop where you defined the list so that I could be sure what was being referred to in the various ‘data@x’ statements.

Actually it turns out that we should have used a subclass of <List> which we call a <DragPackage> class. At the time it wasn’t clear whether it would be a private data structure for use among a few objects, or whether it would have a public/client API. Since the time that article was written we have concluded that there really should be some behavior attached to the drag-data to enable it to serve a more general usage.

:-) That was good instinct/observation on your part...

Thanks for the comments and feedback.

- Dave S., quasar@qks.com

EvenBetterBusError Yet Again (EBBEYA)

The wrath over EvenBetterBusError (Editor’s Page, November 1994) is directed to the wrong target. The typical Mac developer, struggling against all odds to earn a living from a platform intentionally restrained to single-digit shares of the business market, is not helped by the thought police yelling “bonehead” and “liar” at him. Anyone who says of a block of 68K code, “As you can see, it’s pretty simple” is well out of touch with the real world of business applications programming.

Rather than excoriate the poor developer, why not direct your flame towards the source of the problem, the tool developers? EvenBetterBusError is just one of a scattered set of poorly-documented, poorly-designed and poorly-distributed hacks, each of which is intended to address some gaping problem in Mac development tools. Why can’t the functions of all such debugging aids be bundled with the tools themselves, in a simple-to-use format? Why don’t more development environments automatically (or optionally) check for such detectable “nefarious acts” as using DisposeHandle on a resource, dereferencing NIL, or calling DisposeHandle twice? Why isn’t a simple, high-level form of Discipline standard with all languages? Finally, why do toolmakers treat source-level debugging as unmanly, and therefore of no interest? Some of these hacks give results in a machine level so low as to be useful to only a smattering of programmers - I guess that leaves the rest of us as “boneheads”.

Think Pascal was (as is) fairly good on some of these issues, so why have more recent environments taken steps backwards from that level of assistance? It should not be necessary for the beleaguered Mac developer to conduct a fishing expedition through CDs and online sources to find all of the hacks needed to fix the obvious omissions of the development environments.

- Kevin Killion Stone House Systems, Inc. shs@mcs.com

[Thanks for your excellent letter. A few thoughts came to mind while I was reading your letter, and here they are - Ed stb]

First, someone has (as you may have already noticed in the December issue) put a bunch of the tools together in the form of QC™. They brought together many of the tools, wrapped them together in a nice package, and are doing what they can to get them out to developers. At $100, it’s cheap at twice the price.

Second, I’ll cop to playing the role of thought police. Somebody has to do it. Apple sure isn’t, and, as you pointed out, neither is Symantec or Metrowerks. The aspersions were cast at a vendor who chose to blame the tool rather than address their serious, yet known bug. Ignorance is one thing, but blaming EBBE was a wrong thing to do.

In a followup conversation with that particular vendor, the product manager told me that he was “horrified” once he had read my editorial. The right thing has happened now - the product has been repaired, and we’re a little better off for them better understanding the situation, the available tools, and their responsibility to test their software with whatever tools are available.

Third, let’s not blame someone for the existing tools being poorly documented and poorly distributed. Why? Greg, Bo3b, and others kindly and generously donated tools. Those tools are available on every online service and on Apple’s CDs, as well as our online sites. Sure, their documentation isn’t great, but at least it exists to some degree. I’m sure you didn’t mean to put them down, but, having been there when these tools were written (and having written the beginnings of one of them myself), let’s praise them for not only making us aware of the problems, but also giving us tools (albeit crude) to address the problems.

Third-and-a-half, the three principal problems that DoubleTrouble, DisposeResource, and EBBE address are problems that we (the System 7 team at the time) realized were bigger problems than we had known during the System 7 effort. Greg wrote the tools after he had debugged hundreds of “incompatible” pieces of software. Sometimes it just takes a while to realize the need for a specific tool. Without his debugging efforts, we still wouldn’t have these tools.

Fourth, I totally agree that environment vendors need to provide more and better tools. Some vendors have. For example, QKS SmalltalkAgents knows about various classes of memory, allocates most things for you, and deallocates when your done. It’s nearly impossible to make some of these classic mistakes with an environment like STA.

Finally, I’d say that it’s time to put some blame on Apple. Isn’t it time that they develop a system which makes it nearly impossible to make these kinds of mistakes? Now that we’ve had a decade’s worth of experience, don’t we have a pretty good idea what the common mistakes and failure modes are? Couldn’t we find a way to eliminate some of them? QKS has. Dylan does. NeXT has. Sun is working on it. Taligent has put a lot of effort into it. When is Apple going to step out and take a leadership role in making the developer’s job easier, safer, and more rewarding?

- Ed stb

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

Tokkun Studio unveils alpha trailer for...
We are back on the MMORPG news train, and this time it comes from the sort of international developers Tokkun Studio. They are based in France and Japan, so it counts. Anyway, semantics aside, they have released an alpha trailer for the upcoming... | Read more »
Win a host of exclusive in-game Honor of...
To celebrate its latest Jujutsu Kaisen crossover event, Honor of Kings is offering a bounty of login and achievement rewards kicking off the holiday season early. [Read more] | Read more »
Miraibo GO comes out swinging hard as it...
Having just launched what feels like yesterday, Dreamcube Studio is wasting no time adding events to their open-world survival Miraibo GO. Abyssal Souls arrives relatively in time for the spooky season and brings with it horrifying new partners to... | Read more »
Ditch the heavy binders and high price t...
As fun as the real-world equivalent and the very old Game Boy version are, the Pokemon Trading Card games have historically been received poorly on mobile. It is a very strange and confusing trend, but one that The Pokemon Company is determined to... | Read more »
Peace amongst mobile gamers is now shatt...
Some of the crazy folk tales from gaming have undoubtedly come from the EVE universe. Stories of spying, betrayal, and epic battles have entered history, and now the franchise expands as CCP Games launches EVE Galaxy Conquest, a free-to-play 4x... | Read more »
Lord of Nazarick, the turn-based RPG bas...
Crunchyroll and A PLUS JAPAN have just confirmed that Lord of Nazarick, their turn-based RPG based on the popular OVERLORD anime, is now available for iOS and Android. Starting today at 2PM CET, fans can download the game from Google Play and the... | Read more »
Digital Extremes' recent Devstream...
If you are anything like me you are impatiently waiting for Warframe: 1999 whilst simultaneously cursing the fact Excalibur Prime is permanently Vault locked. To keep us fed during our wait, Digital Extremes hosted a Double Devstream to dish out a... | Read more »
The Frozen Canvas adds a splash of colou...
It is time to grab your gloves and layer up, as Torchlight: Infinite is diving into the frozen tundra in its sixth season. The Frozen Canvas is a colourful new update that brings a stylish flair to the Netherrealm and puts creativity in the... | Read more »
Back When AOL WAS the Internet – The Tou...
In Episode 606 of The TouchArcade Show we kick things off talking about my plans for this weekend, which has resulted in this week’s show being a bit shorter than normal. We also go over some more updates on our Patreon situation, which has been... | Read more »
Creative Assembly's latest mobile p...
The Total War series has been slowly trickling onto mobile, which is a fantastic thing because most, if not all, of them are incredibly great fun. Creative Assembly's latest to get the Feral Interactive treatment into portable form is Total War:... | Read more »

Price Scanner via MacPrices.net

Early Black Friday Deal: Apple’s newly upgrad...
Amazon has Apple 13″ MacBook Airs with M2 CPUs and 16GB of RAM on early Black Friday sale for $200 off MSRP, only $799. Their prices are the lowest currently available for these newly upgraded 13″ M2... Read more
13-inch 8GB M2 MacBook Airs for $749, $250 of...
Best Buy has Apple 13″ MacBook Airs with M2 CPUs and 8GB of RAM in stock and on sale on their online store for $250 off MSRP. Prices start at $749. Their prices are the lowest currently available for... Read more
Amazon is offering an early Black Friday $100...
Amazon is offering early Black Friday discounts on Apple’s new 2024 WiFi iPad minis ranging up to $100 off MSRP, each with free shipping. These are the lowest prices available for new minis anywhere... Read more
Price Drop! Clearance 14-inch M3 MacBook Pros...
Best Buy is offering a $500 discount on clearance 14″ M3 MacBook Pros on their online store this week with prices available starting at only $1099. Prices valid for online orders only, in-store... Read more
Apple AirPods Pro with USB-C on early Black F...
A couple of Apple retailers are offering $70 (28%) discounts on Apple’s AirPods Pro with USB-C (and hearing aid capabilities) this weekend. These are early AirPods Black Friday discounts if you’re... Read more
Price drop! 13-inch M3 MacBook Airs now avail...
With yesterday’s across-the-board MacBook Air upgrade to 16GB of RAM standard, Apple has dropped prices on clearance 13″ 8GB M3 MacBook Airs, Certified Refurbished, to a new low starting at only $829... Read more
Price drop! Apple 15-inch M3 MacBook Airs now...
With yesterday’s release of 15-inch M3 MacBook Airs with 16GB of RAM standard, Apple has dropped prices on clearance Certified Refurbished 15″ 8GB M3 MacBook Airs to a new low starting at only $999.... Read more
Apple has clearance 15-inch M2 MacBook Airs a...
Apple has clearance, Certified Refurbished, 15″ M2 MacBook Airs now available starting at $929 and ranging up to $410 off original MSRP. These are the cheapest 15″ MacBook Airs for sale today at... Read more
Apple drops prices on 13-inch M2 MacBook Airs...
Apple has dropped prices on 13″ M2 MacBook Airs to a new low of only $749 in their Certified Refurbished store. These are the cheapest M2-powered MacBooks for sale at Apple. Apple’s one-year warranty... Read more
Clearance 13-inch M1 MacBook Airs available a...
Apple has clearance 13″ M1 MacBook Airs, Certified Refurbished, now available for $679 for 8-Core CPU/7-Core GPU/256GB models. Apple’s one-year warranty is included, shipping is free, and each... Read more

Jobs Board

Seasonal Cashier - *Apple* Blossom Mall - J...
Seasonal Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Seasonal Fine Jewelry Commission Associate -...
…Fine Jewelry Commission Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) Read more
Seasonal Operations Associate - *Apple* Blo...
Seasonal Operations Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Read more
Hair Stylist - *Apple* Blossom Mall - JCPen...
Hair Stylist - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom 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
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.