James Posted May 29, 2011 Posted May 29, 2011 But as least we don't have to worry about running another program on our code to check for these sorts of errors, eh, James? (Edit: Or was it Richard who made that comment? I forget)Richard.I'm fully pro-debuggers and stuff Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
Richard Robertson Posted May 29, 2011 Posted May 29, 2011 Maybe you should write a regular expression to search the entire source for variable declarations.See how many of them don't get initialized to something (like 0).
Valik Posted May 29, 2011 Posted May 29, 2011 Richard is sort of on the right track. Jon, I believe the Code Analysis thing has customizable rules. You might look around when you're bored and see if the community has made any rule packages that we could use to catch some more common errors.By the way Richard, uninitialized variables are only an issue when the type is either a pointer or non-class type. Initializing a class object without explicitly assigning it a value is not an error but a regular expression is too simple to understand that and would complain.
Richard Robertson Posted May 29, 2011 Posted May 29, 2011 I didn't think you'd be storing any class objects on the local stack. I always refer to classes by pointers. I've found it alleviates a number of problems people run in to.
Valik Posted May 29, 2011 Posted May 29, 2011 You know those dumb things you say? This is one of them. I'm not really interested in giving up automatic object destruction when it goes out of scope in exchange for storing things on the heap and releasing them explicitly when the stack will do.
GEOSoft Posted May 29, 2011 Posted May 29, 2011 And let those who would complain about no recent beta releases be silenced. Thanks Jon. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
AdmiralAlkex Posted May 30, 2011 Posted May 30, 2011 What happened with #1573? First Jpm fixes it but it doesn't work (nor is included in the changelog) and now Jon reopened it and three others (all by Jpm). Also I find this interesting: AutoIt Changelog ================ 3.3.8.0 (some day, 2010) (Release)Jon has a time-machine in his backyard? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
GEOSoft Posted May 30, 2011 Posted May 30, 2011 Sounds like they weren't fixed properly. That would be my first guess anyway. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
Administrators Jon Posted May 30, 2011 Author Administrators Posted May 30, 2011 Short answer, I didn't like the look of the fixes at first glance and reverted them. They may be ok and reintroduced at some point. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
Administrators Jon Posted May 30, 2011 Author Administrators Posted May 30, 2011 Jon, I believe the Code Analysis thing has customizable rules. You might look around when you're bored and see if the community has made any rule packages that we could use to catch some more common errors.I had a quick look. When you go into the rules they are all managed code related so it seems like when you run on a c++ project you are getting generic rules. That's why MS Minimum vs MS All Rules was giving the same output. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
Administrators Jon Posted May 31, 2011 Author Administrators Posted May 31, 2011 (edited) 3.3.7.7 (31st May, 2011) (Beta)Also now being compiled with VC10 profiling so should be faster than previous betas and faster than 3.3.6.1.AutoIt:- Fixed #1586: DllStructSetData(char, 1, string-with-NUL-character), junk data(?)- Fixed #1633: Second AdlibRegister function starts at once when first function is too slow.Au3Info:- Added: Option "Use Spy++ control detection logic" toggle added to Au3Info (this was the mode always used in recent releases, but the very old method that used to be used is useful in certain applications (for example, putty.exe)- Fixed #1746: Option "Use Spy++ control detection logic" toggle added to Au3Info.Misc:- x64 installer options tweaked. Edited May 31, 2011 by Jon Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
Valik Posted May 31, 2011 Posted May 31, 2011 Since Jon didn't mention it, I will. Test @CPUArch. Anyone reading this create a quick script with MsgBox(4096, "", @CPUArch) in it and let us know if it works.
Mat Posted May 31, 2011 Posted May 31, 2011 (edited) I'm showing X64 on a 32 bit system. Edit: But @OSArch returns X86. Maybe I've got a x64 cpu and never knew XD Edited May 31, 2011 by Mat AutoIt Project Listing
Administrators Jon Posted May 31, 2011 Author Administrators Posted May 31, 2011 I'm showing X64 on a 32 bit system.Edit: But @OSArch returns X86. Maybe I've got a x64 cpu and never knew XDMost CPUs from the last few years are x64 capable (Test vs. 3.3.6.1 to be sure) Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
water Posted May 31, 2011 Posted May 31, 2011 I get "x64" with 3.3.6.1, 3.3.7.6 and 3.3.7.7 (installed for both X86 and X64 OS support). My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Mat Posted May 31, 2011 Posted May 31, 2011 (edited) Most CPUs from the last few years are x64 capable (Test vs. 3.3.6.1 to be sure)Same result Wow. I've always just used @OSArch.Edit: Just double checked systeminfo and it's right Now I'm off to install a 64 bit operating system and try it out Edited May 31, 2011 by Mat AutoIt Project Listing
jchd Posted May 31, 2011 Posted May 31, 2011 I get a correct X64 for this Intel Core Duo E8400 running x86 XP This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)
Zedna Posted May 31, 2011 Posted May 31, 2011 (edited) Correct value X86/X86 for @OSArch/@CPUArch on my WINXP/P4 NorthWood without EMT64 Edited May 31, 2011 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
jaberwacky Posted May 31, 2011 Posted May 31, 2011 Correct value: X64 for both @CPUArch & @OSArch Windows 7 Professional 64 AMD Athlon 64 X2 5000+ Black Edition Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum?
danielkza Posted May 31, 2011 Posted May 31, 2011 (edited) I get correct results too from both @CPUArch and @OSArch on 3.3.7.7 (Both X64 on Windows 7 x64 SP1 + Core i5 2500K). Edited May 31, 2011 by danielkza
Recommended Posts