passing an array by value

c_tali
c_tali used Ask the Experts™
on

I am writing some code with a deep recursion, and i have to pass down bi-dimensional arrays, which change through the recursion. I now pass the array be Ref, and at the begining of the function, copy and change as necessary. It takes a long time and a lot of memory.
what good way is there to do so?!

Another thing - while the function is being evaluated, i have a clock that is supposed to time the function, but it seems as though the function blocks the clock, and it doesn't move...
help!

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2012
Commented:
>>Another thing - while the function is being evaluated, i have a clock that is supposed to time the function, but it seems as though the function blocks the clock, and it doesn't move...<<

Use DoEvents

Anthony
backup arrays outer top recursion call, if you can ignor changes in every recursion
Author of the Year 2009

Commented:
Hi c_tali,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept acperkins@devx's comment(s) as an answer.

c_tali, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept THIS comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial