Sign in to follow this  
Followers 0
NS5

_FileReadToArray Bugs on Vista

7 posts in this topic

Hi all was wondering if anyone encountered _FileReadToArray bugs on Vista too?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

What kind of bug do you encounter?

Do you have a working example to reproduce the error?

What version of AutoIt do you use?

That information would help to decide wether it's a bug or not.

Edited by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

If Not _FileReadToArray("REMOVED.ini", $CARDREMOVE) Then
   MsgBox(4096,"Error", " Error reading log to Array     error:" & @error)
   Exit
EndIf

    
    For $i = 1 To $CARDREMOVE[0]
        
        $N = PixelChecksum(907, 135, 957, 161) & "-" & PixelChecksum(934, 198, 1001, 209)

        While $N <> PixelChecksum(907, 135, 957, 161) & "-" & PixelChecksum(934, 198, 1001, 209)
    
            $N = PixelChecksum(907, 135, 957, 161) & "-" & PixelChecksum(934, 198, 1001, 209)
    
        WEnd

        $CADDY = IniRead("REMOVED.INI", "REMOVED", $N, "NOT FOUND")
        
        If $CADDY = $N Then 
            
            ToolTip("TEST", 0, 0)
            Send("{DOWN}")
            Sleep(500)
        
        Else
        
        
        EndIf
                    
    Next

AutoIT v3.3.0.0

WIN XP sp2

When I try and run the code over Vista 32 "Error reading log Array error:0"

Share this post


Link to post
Share on other sites

A reproducer should be short and runnable. Which yours is not. It should have been more like:

#include <File.au3>

Local $CARDREMOVE
If Not _FileReadToArray("REMOVED.ini", $CARDREMOVE) Then MsgBox(4096,"Error", " Error reading log to Array     error:" & @error)

As for your problem.... I have Win7 x64 build 7100 and that gives @error=2 not 0.

If you really want any help on this matter, then you have to givs us a reproducer that can successfully reproduce your symptoms and tell us the conditions necessary to produce them.

Remember that we can only help you as much as you help us help you :D

Share this post


Link to post
Share on other sites

Ok cool problem has been fixed. Thanks guys!

Share this post


Link to post
Share on other sites

Could you please describe in short what the problem was? So this thread can help others with a similar problem.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0