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

Go from lowly lizard to wicked Wyvern in...
Do you like questing, and do you like dragons? If not then boy is this not the announcement for you, as Loongcheer Game has unveiled Quest Dragon: Idle Mobile Game. Yes, it is amazing Square Enix hasn’t sued them for copyright infringement, but... | Read more »
Aether Gazer unveils Chapter 16 of its m...
After a bit of maintenance, Aether Gazer has released Chapter 16 of its main storyline, titled Night Parade of the Beasts. This big update brings a new character, a special outfit, some special limited-time events, and, of course, an engaging... | Read more »
Challenge those pesky wyverns to a dance...
After recently having you do battle against your foes by wildly flailing Hello Kitty and friends at them, GungHo Online has whipped out another surprising collaboration for Puzzle & Dragons. It is now time to beat your opponents by cha-cha... | Read more »
Pack a magnifying glass and practice you...
Somehow it has already been a year since Torchlight: Infinite launched, and XD Games is celebrating by blending in what sounds like a truly fantastic new update. Fans of Cthulhu rejoice, as Whispering Mist brings some horror elements, and tests... | Read more »
Summon your guild and prepare for war in...
Netmarble is making some pretty big moves with their latest update for Seven Knights Idle Adventure, with a bunch of interesting additions. Two new heroes enter the battle, there are events and bosses abound, and perhaps most interesting, a huge... | Read more »
Make the passage of time your plaything...
While some of us are still waiting for a chance to get our hands on Ash Prime - yes, don’t remind me I could currently buy him this month I’m barely hanging on - Digital Extremes has announced its next anticipated Prime Form for Warframe. Starting... | Read more »
If you can find it and fit through the d...
The holy trinity of amazing company names have come together, to release their equally amazing and adorable mobile game, Hamster Inn. Published by HyperBeard Games, and co-developed by Mum Not Proud and Little Sasquatch Studios, it's time to... | Read more »
Amikin Survival opens for pre-orders on...
Join me on the wonderful trip down the inspiration rabbit hole; much as Palworld seemingly “borrowed” many aspects from the hit Pokemon franchise, it is time for the heavily armed animal survival to also spawn some illegitimate children as Helio... | Read more »
PUBG Mobile teams up with global phenome...
Since launching in 2019, SpyxFamily has exploded to damn near catastrophic popularity, so it was only a matter of time before a mobile game snapped up a collaboration. Enter PUBG Mobile. Until May 12th, players will be able to collect a host of... | Read more »
Embark into the frozen tundra of certain...
Chucklefish, developers of hit action-adventure sandbox game Starbound and owner of one of the cutest logos in gaming, has released their roguelike deck-builder Wildfrost. Created alongside developers Gaziter and Deadpan Games, Wildfrost will... | Read more »

Price Scanner via MacPrices.net

Limited-time sale: 13-inch M3 MacBook Airs fo...
Amazon has the base 13″ M3 MacBook Air (8GB/256GB) in stock and on sale for a limited time for $989 shipped. That’s $110 off MSRP, and it’s the lowest price we’ve seen so far for an M3-powered... Read more
13-inch M2 MacBook Airs in stock today at App...
Apple has 13″ M2 MacBook Airs available for only $849 today in their Certified Refurbished store. These are the cheapest M2-powered MacBooks for sale at Apple. Apple’s one-year warranty is included,... Read more
New today at Apple: Series 9 Watches availabl...
Apple is now offering Certified Refurbished Apple Watch Series 9 models on their online store for up to $80 off MSRP, starting at $339. Each Watch includes Apple’s standard one-year warranty, a new... Read more
The latest Apple iPhone deals from wireless c...
We’ve updated our iPhone Price Tracker with the latest carrier deals on Apple’s iPhone 15 family of smartphones as well as previous models including the iPhone 14, 13, 12, 11, and SE. Use our price... Read more
Boost Mobile will sell you an iPhone 11 for $...
Boost Mobile, an MVNO using AT&T and T-Mobile’s networks, is offering an iPhone 11 for $149.99 when purchased with their $40 Unlimited service plan (12GB of premium data). No trade-in is required... Read more
Free iPhone 15 plus Unlimited service for $60...
Boost Infinite, part of MVNO Boost Mobile using AT&T and T-Mobile’s networks, is offering a free 128GB iPhone 15 for $60 per month including their Unlimited service plan (30GB of premium data).... Read more
$300 off any new iPhone with service at Red P...
Red Pocket Mobile has new Apple iPhones on sale for $300 off MSRP when you switch and open up a new line of service. Red Pocket Mobile is a nationwide MVNO using all the major wireless carrier... Read more
Clearance 13-inch M1 MacBook Airs available a...
Apple has clearance 13″ M1 MacBook Airs, Certified Refurbished, available for $759 for 8-Core CPU/7-Core GPU/256GB models and $929 for 8-Core CPU/8-Core GPU/512GB models. Apple’s one-year warranty is... Read more
Updated Apple MacBook Price Trackers
Our Apple award-winning MacBook Price Trackers are continually updated with the latest information on prices, bundles, and availability for 16″ and 14″ MacBook Pros along with 13″ and 15″ MacBook... Read more
Every model of Apple’s 13-inch M3 MacBook Air...
Best Buy has Apple 13″ MacBook Airs with M3 CPUs in stock and on sale today for $100 off MSRP. Prices start at $999. Their prices are the lowest currently available for new 13″ M3 MacBook Airs among... Read more

Jobs Board

Solutions Engineer - *Apple* - SHI (United...
**Job Summary** An Apple Solution Engineer's primary role is tosupport SHI customers in their efforts to select, deploy, and manage Apple operating systems and Read more
DMR Technician - *Apple* /iOS Systems - Haml...
…relevant point-of-need technology self-help aids are available as appropriate. ** Apple Systems Administration** **:** Develops solutions for supporting, deploying, 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
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
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.