M
mbenetti
Dear Expert,
I've found problems while developing a Visual Basic 6 application that uses
Word.Application objects. In PCs with hyperthreading it works very slowly.
Disabling hyperthreading it works fine. I've found the problem in this test
code:
Public Sub test3()
Dim t As Single
Dim i As Long
Dim oWordDoc As Word.Document
Dim oRange As Word.Range
Set oWordDoc = m_oWordDoc
t = Timer
For i = 1 To 100
Set oRange = oWordDoc.ActiveWindow.Selection.Range
Next
Me.Caption = Me.Caption & " - " & Abs(t - Timer)
End Sub
Thanks in advance,
Stefano
I've found problems while developing a Visual Basic 6 application that uses
Word.Application objects. In PCs with hyperthreading it works very slowly.
Disabling hyperthreading it works fine. I've found the problem in this test
code:
Public Sub test3()
Dim t As Single
Dim i As Long
Dim oWordDoc As Word.Document
Dim oRange As Word.Range
Set oWordDoc = m_oWordDoc
t = Timer
For i = 1 To 100
Set oRange = oWordDoc.ActiveWindow.Selection.Range
Next
Me.Caption = Me.Caption & " - " & Abs(t - Timer)
End Sub
Thanks in advance,
Stefano