Hyperthreading problem

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top