eltorro Posted July 28, 2006 Share Posted July 28, 2006 (edited) I been fighting with this now for hours.When part of my script includes some code as an included file, it runs as expected.When the code from the include is pasted to the end of the script ( and the #include directive commented out) the the script crashes unexpectedly.The include file is APIFileReadWrite.au3 This is my script. SavePrtScBMP.au3Any Ideas ?eltorro Edited July 28, 2006 by eltorro Regards, [indent]ElTorro[/indent][font="Book"] Decide, Commit, Achieve[/font]_ConfigIO.au3Language Translation --uses Google(tm) MsgBox Move XML wrapper UDF XML2TreeView Zip functionality Split your GUI Save Print ScreenZipPluginEdit In Place listviewSome of my scripts on Google code Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 28, 2006 Moderators Share Posted July 28, 2006 May be a silly question, but did you bother to do any error handling in the DLL Calls? I see it in a few places (SetError(etc, etc), but no return for the errors. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
eltorro Posted July 28, 2006 Author Share Posted July 28, 2006 (edited) May be a silly question, but did you bother to do any error handling in the DLL Calls? I see it in a few places (SetError(etc, etc), but no return for the errors. There's a log file. _BinaryFileWrite($hFile, $FileHead) If $DEBUG Then _FileWriteLog($LOG,"Error Status: "&@error &@LF) _FileWriteLog($LOG,"File header written" & @LF) EndIf Many debug statements. Edited July 28, 2006 by eltorro Regards, [indent]ElTorro[/indent][font="Book"] Decide, Commit, Achieve[/font]_ConfigIO.au3Language Translation --uses Google(tm) MsgBox Move XML wrapper UDF XML2TreeView Zip functionality Split your GUI Save Print ScreenZipPluginEdit In Place listviewSome of my scripts on Google code Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 28, 2006 Moderators Share Posted July 28, 2006 There's a log file. _BinaryFileWrite($hFile, $FileHead) If $DEBUG Then _FileWriteLog($LOG,"Error Status: "&@error &@LF) _FileWriteLog($LOG,"File header written" & @LF) EndIf Many debug statements.Yeah, I noticed that when I looked at the regular file, I hadn't seen anything but the #include file at that point, thus my "May be" statement... I knew you liked to debug after seeing alot of your scripts. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
eltorro Posted July 28, 2006 Author Share Posted July 28, 2006 I knew you liked to debug after seeing alot of your scripts.Better safe than sorry. Regards, [indent]ElTorro[/indent][font="Book"] Decide, Commit, Achieve[/font]_ConfigIO.au3Language Translation --uses Google(tm) MsgBox Move XML wrapper UDF XML2TreeView Zip functionality Split your GUI Save Print ScreenZipPluginEdit In Place listviewSome of my scripts on Google code Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now