Thanks for the quick reply guys.

I turned the BREAK and DEBUG ON.

Here is what I found out. There is a infinite loop here:

code:
do
$hive=enumvalue($regkey,ubound($hivelist)+1)
? $hive
if not @ERROR
redim preserve $hivelist[ubound($hivelist)+1]
$hivelist[ubound($hivelist)]=$hive
endif
? $hive
? @ERROR
until $hive=259 or @ERROR

At the end of the loop, $hive has a value of nothing (nothing gets printed) and @ERROR remains at 0.

Why do it check if $hive equals 259?

Any idea on how to fix this. I am new at Kix and don't understand the logic. Any help would be great.

Thanks