P
Patrice Dargenton
Hello, I am trying to fix this bug : sometime (for very few computers), OWC9
is very slow for writing value in cells. I noticed that if a background task
is running, for example compressing a big file, the bug disappears totally !
Then I was wondering if this bug has something to do with Garbage collector
: If Garbage collector does not have time to run, then the bug disappears :
does anybody have a solution or a strategy to find one ? Can I disable
Garbage collector for a while ?
Is there a framework setting that I can tune ? A regional setting ?
Thanks.
Sample speed test : less than 1 second in normal case, and 10 seconds with
the bug :
oXL.EnableUndo = False
oXL.EnableEvents = False
oXL.ScreenUpdating = False
oXL.ActiveSheet.Protection.Enabled = False
Dim i%, j%
For i = 1 To 10
For j = 1 To 5
oXL.Cells(i, j) = (i + j).ToString
Next
Next
oXL.EnableUndo = True
oXL.EnableEvents = True
oXL.ScreenUpdating = True
oXL.ActiveSheet.Protection.Enabled = True
is very slow for writing value in cells. I noticed that if a background task
is running, for example compressing a big file, the bug disappears totally !
Then I was wondering if this bug has something to do with Garbage collector
: If Garbage collector does not have time to run, then the bug disappears :
does anybody have a solution or a strategy to find one ? Can I disable
Garbage collector for a while ?
Is there a framework setting that I can tune ? A regional setting ?
Thanks.
Sample speed test : less than 1 second in normal case, and 10 seconds with
the bug :
oXL.EnableUndo = False
oXL.EnableEvents = False
oXL.ScreenUpdating = False
oXL.ActiveSheet.Protection.Enabled = False
Dim i%, j%
For i = 1 To 10
For j = 1 To 5
oXL.Cells(i, j) = (i + j).ToString
Next
Next
oXL.EnableUndo = True
oXL.EnableEvents = True
oXL.ScreenUpdating = True
oXL.ActiveSheet.Protection.Enabled = True