Jump to content
Sign in to follow this  
jaenster

Floating point error, In an example file au3

Recommended Posts

jaenster

; List all processes
$list = ProcessList()
for $i = 1 to $list[0][0]
  msgbox(0, $list[$i][0], $list[$i][1])
next

; List just notepad.exe processes
$list = ProcessList("notepad.exe")
for $i = 1 to $list[0][0]
  msgbox(0, $list[$i][0], $list[$i][1])
next

I ran this, and i get the normal floatingpoint error:

Posted Image

Edited by jaenster

-jaenster

Share this post


Link to post
Share on other sites
Andreik

This code is correct. Maybe your compiler is bad.


When the words fail... music speaks

Share this post


Link to post
Share on other sites
jaenster

This code is correct. Maybe your compiler is bad.

Have the newst beta and compiler, Be usefull or dont reply


-jaenster

Share this post


Link to post
Share on other sites
Kerros

I modified the code a bit to output items to console instead of messagebox. Everything worked fine for me as well.

Modified code:

; List all processes
$list = ProcessList()
    ConsoleWrite('List ALL processes'&@CRLF)
for $i = 1 to $list[0][0]

  ConsoleWrite($list[$i][0]& ' '& $list[$i][1]&@CRLF)
next
ConsoleWrite('================================'&@CRLF)
; List just notepad.exe processes
$list = ProcessList("notepad.exe")
    ConsoleWrite('List just Notepad processes'&@CRLF)
for $i = 1 to $list[0][0]
  ConsoleWrite($list[$i][0]& ' '& $list[$i][1]&@CRLF)
next

Edit: Just for the sake of trial and error I changed it back to messageboxes and compiled the code. It ran without error,showing the messageboxes.

Edited by Kerros

Kerros===============================================================How to learn scripting: Figure out enough to be dangerous, then ask for assistance.

Share this post


Link to post
Share on other sites
PsaltyDS

; List all processes
$list = ProcessList()
for $i = 1 to $list[0][0]
  msgbox(0, $list[$i][0], $list[$i][1])
next

; List just notepad.exe processes
$list = ProcessList("notepad.exe")
for $i = 1 to $list[0][0]
  msgbox(0, $list[$i][0], $list[$i][1])
next

I ran this, and i get the normal floatingpoint error:

Posted Image

You ran it how? With what version of AutoIt? How did the VC++ runtime get involved?

Have the newst beta and compiler, Be usefull or dont reply

The latest Beta what? The latest beta as of today (3.2.11.12) is older than the current production (3.2.12.0).

:)

Edited by PsaltyDS

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.