Excel User Group
Microsoft Excel blogs, forums, files. Read, ask questions, provide answers.

Out of Heap Space

Latest post Tue, Jan 22 2008 8:34 PM by Jim Thomlinson. 3 replies.
  • Fri, Jan 11 2008 1:52 PM

    • Jim Thomlinson
    • Top 10 Contributor
    • Joined on Thu, Jan 10 2008
    • Vancouver, Canada
    • Posts 84
    • Points 1,256

    Out of Heap Space

    I recently had an interesting error and I was wondering if anyone else has seen this before. I have 2 queries that each run perfectly. In MS query I unioned them together and it ran great. Then when I exited MS Query to have the data returned to XL after a minute or two of exectution I get an error that the application is out of heap space. I have overflowed the stack more times than I can count but I have never had an issue with heap space. Anyone care to enlighten me...

    • Post Points: 21
  • Sat, Jan 12 2008 3:49 AM In reply to

    • Nick Hodge
    • Top 10 Contributor
    • Joined on Sun, Dec 23 2007
    • Southampton
    • Posts 336
    • Points 5,771
    • MVP

    Jim

    It doesn't help you, but this explains the 'Heap' space in various versions of Excel.

    I've not seen the error you are encountering, anyone?

    Regards
    Nick Hodge
    Microsoft MVP, Excel
    Southampton, UK

    Filed under:
    • Post Points: 21
  • Mon, Jan 14 2008 12:18 PM In reply to

    • Jim Thomlinson
    • Top 10 Contributor
    • Joined on Thu, Jan 10 2008
    • Vancouver, Canada
    • Posts 84
    • Points 1,256

    I have that web site bookmarked on all of my computers. It is a great reference. The part that surprised me was that I would not have expected a query to use up heap space. I did receive a direct e-mail through your site from someone indicating that MS Query does not like unions, but I do unions fairly regularly without issue.

    I resolved the issue by not unioning the queries and just running them seperately, so it is more of a curiosity than a real problem.

    • Post Points: 5
  • Tue, Jan 22 2008 8:34 PM In reply to

    • Jim Thomlinson
    • Top 10 Contributor
    • Joined on Thu, Jan 10 2008
    • Vancouver, Canada
    • Posts 84
    • Points 1,256

    I resolved the issue for good... It was an issue with the DB2 database and not XL. I will get the admins to up the Heap space available on the DB2 application...

    • Post Points: 5
Page 1 of 1 (4 items) | RSS
Copyright Excel User Group and the relevant contributors, 2008. All Trade Marks acknowledged. This site is a peer-to-peer site and NOT affiliated in any way to Microsoft Corp. All rights reserved.