Jump to content

Recommended Posts

Posted (edited)

Well, I'm working on a telnet remote console module for an IRC bot that I'm making, and it's worked just fine for quite a while, until I started doing some overhauling of some old, messy code(It continued to work after the main overhaul, so that doesn't appear to be the problem). As of yesterday, I broke it somehow, and after starting it up through SciTE to see what line is causing the crash, it shows this:

!>20:16:09 AutoIT3.exe ended.rc:-1073741819
+>20:16:11 AutoIt3Wrapper Finished
>Exit code: -1073741819    Time: 22.316

Now, I've never seen anything like that, and it has an exit code of -1073741819...Anyone ever seen this before?

It might be something stupid that I did late last night to break the script without realizing it, but as of right now, I'm stumped :mellow:

EDIT: Oh, yea and I think AutoIt is actually crashing, as the icon stays in the system tray. A normal "crash" throws an error in a message box, tells you what went wrong, and closes properly after pressing Ok, this just dies instantly with that strange error/exit code.

Edited by Kealper
Posted (edited)

Ok, I searched for about an hour and a half, but could not find any definitive answer on what this error is. So I did some real in-depth debugging and finally nailed the problem in my script, and was able to recreate the hard crash with the simple script below. (maybe it can help others find the problem in their programs quicker, should they make the same mistake.)

This hard crashes AutoIt 100% of the time on a WinXP SP2 x86 machine and a Win7 x64 machine.

It appears to happen when you have a ContinueCase on the last case of both a Switch or a Select

For $i = 1 To 3
    Switch $i
        Case 1
            ConsoleWrite("$i = " & $i & @CRLF)
        Case 2
            ConsoleWrite("$i = " & $i & @CRLF)
        Case Else
            If $i = 3 Then ContinueCase
    EndSwitch
Next
Edited by Kealper
Posted (edited)

I would have thought that too, but it will compile fine, show no problems until it gets to that specific thing, then crashes.

EDIT: just checked, passes Tidy and everything :mellow:

Edited by Kealper
  • Developers
Posted

  On 2/21/2010 at 6:52 PM, 'MvGulik said:

Than its most likely a differant problem.

The exit value -1073741819 is not a crash PID, that would be ... to easy.

This number means a 0xC0000005 access violation occured.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

The code is something I found here on the forum while searching how to do it

  Reveal hidden contents

And its happened, with every xvid avi file I tried.

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...