rowyn: (Me 2012)
[personal profile] rowyn

Hrmph. My report gets through about 10 iterations, then crashes with a stack-overflow error. Which appears to be caused by Excel VBA call stack filling up with my auto-generated macro calls. Googling about for "how to clear the call stack" has not made me optimistic about my odds of getting around this via VBA.  x.x

Date: 2015-04-28 09:34 pm (UTC)
From: [identity profile] terrycloth.livejournal.com
Okay, so the problem is probably that the event call doesn't exit until the fetch is complete, which means that all the events are still on the stack until the last one finishes.

Could you move the 'get a new different batch' step into the outer loop, with some sort of delay so that it didn't try to fetch multiple batches concurrently? Or it could wait on a variable that you set in the event handler (checking the variable every X time period until it's true, then fetch a new batch).
Edited Date: 2015-04-28 09:35 pm (UTC)

January 2026

S M T W T F S
    12 3
45678910
11121314151617
18 192021222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 26th, 2026 09:41 am
Powered by Dreamwidth Studios