+ Reply to Thread
Results 1 to 3 of 3

Mysterious Excel 2003 crash (suspect problem with "shapes")

  1. #1
    Registered User
    Join Date
    07-23-2008
    Location
    Shanghai
    Posts
    11

    Mysterious Excel 2003 crash (suspect problem with "shapes")

    Hi all,

    I've been working on some customized sparkline add-in for the company recently. But now there's a problem with my implementation, here's how:

    Background:
    While developing my sparkline UDF, I use "rand()" to generate some random data to test the result.
    As we all know, "rand()" is volatile type of function which will refresh upon most of the user operations e.g. hitting "Del" key, auto-fitting row height / column width, workbook save / close, etc...

    Problem:
    Now the problem is: if I consecutively (say, 3 or more times) trigger the "row height autofitting" event (which will cause the "rand()" to refresh and then also refreshs my sparkline UDF), then if I wait for a sec or longer then trigger the refreshing of "rand()" again (by executing any kind of operation), my UDF will also refresh then the Excel crashes...

    Test cases:
    Funny thing is, this kind of crash seems to be caused ONLY by consecutive "row height autofitting". No matter how many times you auto-fitting a column width, Excel won't crash.

    I suspect that the problem is fundamentally caused by the manipulation of "worksheet.shapes", because it will not crash if I comment out all of the statements concerning "shapes".

    I have tried to debug this issue by stepping-in but failed because it seems that Excel only crashed after successfully executing my UDF.

    Environment:
    Windows XP + Office 2003.

    I've attached a sample worksheet for your kind perusal.

    Please help me... TQ.

    Regards,
    YM (puzzled)
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    09-15-2008
    Location
    Paris France
    Posts
    2

    Cool Re: Mysterious Excel 2003 crash (suspect problem with "shapes")

    Have you checked : http://sparklines-excel.blogspot.com/ ?

    maybe you are reinventing the wheel here ?

  3. #3
    Registered User
    Join Date
    07-23-2008
    Location
    Shanghai
    Posts
    11

    Re: Mysterious Excel 2003 crash (suspect problem with "shapes")

    Quote Originally Posted by frimlinger View Post
    Have you checked : http://sparklines-excel.blogspot.com/ ?

    maybe you are reinventing the wheel here ?
    Yes of couse, and most of the work are inspired by this idea.

    However, since there're some specific need so that I'll have to customize some implementation.

    Fabrice's implementation are using an custom event trapper class to handle all the shapes manipulation, which is working just fine.

    My implementation is much simpler (crude ?) since I draw / format shapes pretty much in the UDF itself.

    I have no idea what's the difference and why it's causing the crash that I'm experiencing now ...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1