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
Treeview1.Nodes .Add(-----)
else if another condition met then
Treeview1.Nodes .Add(-----)
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
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
Treeview1.Nodes .Add(-----)
else if another condition met then
Treeview1.Nodes .Add(-----)
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
Comment