Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6686061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:07:43+00:00 2026-05-26T05:07:43+00:00

I’m encountering the ubiquitous EXC_BAD_ACCESS error in Microsoft Office for Mac 2011 on OSX

  • 0

I’m encountering the ubiquitous EXC_BAD_ACCESS error in Microsoft Office for Mac 2011 on OSX 10.7 (Lion). Latest office update installed too (14.3 I believe it was)

I’m running a (rather large) macro … Porting it from PC Office.

The error is happening when adding an element to a collection. Nothing fancy and doing it a zillion other places as well without a problem. (And haven’t modified it from the working PC version).

So, while that may be the point of the error, I suspect it has to do with memory of the collection – eg, perhaps it’s doing a realloc behind the scenes during this particular insert.

In particular, it’s inserting the 2nd element into the collection. No user defined type. Nothing special. Adding a string element. Data being inserted is kosher. The key ID is unique. Bread and butter collection use.

Another possible suspect might be variable scope(???) … Ie, it might be using a similarly named variable from another sub-routine or something wacky.

Or possibly the temporary string used in the sub-routine is the nominal culprit?

If I comment this line out, the rest of the macro runs okay (aside from the glitch of the missing data from the container … Which can be empty in normal operation so that’s handled okay)

I’m seeking suggestions on how to go about tracking down the issue. And tips towards resolving it.

Is the memory page 64k on mac like it is on PC?

Could it be physical ram / virtual memory / swapping? (Seems too consistent to be system os related)

Perhaps excel has a memory limit cap for macros?

How might I utilize the core dump on the exception to trace the problem?

(Experienced programmer, just unfamiliar with OSX … And missing all my PC dev tools sigh)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:07:44+00:00Added an answer on May 26, 2026 at 5:07 am

    Resolved.

    It wasn’t the collection.

    Through some “printf” debuggging, tracked down the issue. Or, at least, found a solution.

    The following is somewhat speculative on what was happening.

    Earlier a variant array was created, populated, and passed to a subroutine …

    Dim nameList(50) As Variant
    ... populated ...
    Call SomeSub(nameList)
    ...
    sub SomeSub(nameList)
    

    In the Sub, the variant array was then iterated using a “For Each” loop (which crashed)

    For outerLoopIndex=0 To 100
    
        Dim currName
        For Each currName In nameList
            If testName Like currName Then
                addToBucket = True
                Exit For ' skip any others since found a site of interest
            End If
        Next currName
    
    Next outerLoopIndex
    

    It worked correctly on the first pass of the outer loop. However, data becomes corrupted such that, on the second pass through the outer loop, the EXC_BAD_ACCESS crash occurred.

    The “fix” was to explicitly declare as Variant:

        Dim currName As Variant
        For Each currName In nameList
            ... 
    

    Perhaps this will help others running into similar issues. Try explicitly declaring variables. Mac Excel seems to be more sensitive to such things. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.