--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+u...@googlegroups.com.
To post to this group, send email to exce...@googlegroups.com.
Visit this group at http://groups.google.com/group/exceldna.
For more options, visit https://groups.google.com/d/optout.
Hi David,
As an example of the mysteries of Excel memory management, you might like to make a macro (in VBA or whatever) that pastes different unique strings into a single cell. This VBA would work:
Sub Test()
For i = 1 To 1000000
[A1] = "Test" & i
If i Mod 100 = 0 Then DoEvents
Next
End Sub
Now monitor the process memory while the macro is running.
Excel seems to have some kind of internal string cache, so as you set different strings, the memory usage increases. Only when you close the sheet is the memory reclaimed.
-Govert
--
Hi David,
My point was mainly that Excel’s memory management can be quirky.
It doesn’t seem like you are running into problems related to Excel-DNA. I’d still suggest you use the ExcelRtdServer base class for your RTD server, since it gives you a thread-safe RTD update implementation, which is required and can be tricky to implement.
How often do your RTD topics need to change in practice?
I’d be very interested if you find another implementation that behaves differently.
Regards,
Govert
From: exce...@googlegroups.com [mailto:exce...@googlegroups.com]
On Behalf Of David Lee
Sent: 23 April 2014 16:41
To: exce...@googlegroups.com
Subject: Re: [ExcelDna] ExcelDNA function for changing parameters
Hi Govert,
--