By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,600 Members | 1,666 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,600 IT Pros & Developers. It's quick & easy.

Treeview control works fine on XP but not Win 2k VB6

P: 2
Hi all,

I'm testing new versions of our suite of software products on different Windows platforms and found this strange problem the other day.

When running the test release on a clean Windows XP platform, the program adds nodes to a treeview control which represent records stored in an Access database. When a new document is created using the program (and subsequently this creates a record in the database), it adds the node to the treeview control to represent the record in the database. Now this works fine on XP. But when the test release was run on a Windows 2K platform, the program seems to get into a strange infinite loop within an if-else statement which adds the nodes to the treeview. I tried removing the code from the if-else block to see what would happen, but it just seems to jump back and forth within the if block (unfortunately, I'm not in the office so I can't post the code up at the moment which would probably help explain the problem better but I've written some pseudo code to try and illustrate the problem):

if condition met then

'on Windows 2000, the program seems to get into an infinite loop
'here - if this line is removed, it doesn't matter; it still gets into an infinite
'loop which is whats so strange

else if another condition met then


end if

This is probably going to be very difficult to solve from what i've written here so I'll post the actual code up when I'm back in the office but if anyone has any ideas or knows of any bugs with the treeview control when running a release on Windows 2000 as opposed to XP then I would be very grateful as this stupid problem is driving me nuts!!!!

Thank you
Feb 9 '08 #1
Share this Question
Share on Google+
1 Reply

daniel aristidou
P: 491
All i can say is wierd

Try repairing the frameworks of the 2k .....
Feb 9 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.