[SOLUTION] IE web control treeview bug???

A

Andy

Hi all,

The problem (I think) was sourced down to the onfocus
event of the treeview. It was firing in an never ending
loop.

The solution to this problem was to take this line of code
out of the DoFocus() event in the Treeview.htc:

g_bFocus = true; // sometimes we just call dofocus()
without going through onfocus()

This line of code is at the top of the dofocus event and i
just commented it out. The bug behavious stopped after
this. Still do fully understand why this caused the
behaviour.
 
S

Steve Guidi

I am able to reproduce this infinite loop with or without the g_bFocus =
true statement.

The problem I have involves two tree controls on the same page, each
containing their repsective node hierarchies. After expanding a node on one
control, I switch focus to another application. Then I switch the focus
back to the browser by expanding a node in the second control. This causes
the onfocus event fire endlessly and the browser users 99% of the CPU.

Has anyone encountered and resolved this problem? It sounds like the source
of this bug is the cause of all our problems.


Steve Guidi
 

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top