Opened on Oct 1, 2010 at 3:48:52 AM
Closed on Oct 1, 2010 at 7:41:39 PM
#1776 closed Bug (No Bug)
Strange MustDeclareVars Behavior
| Reported by: | Owned by: | ||
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.6.1 | Severity: | None |
| Keywords: | mustdeclarevars func runtime | Cc: |
Description
When Opt("MustDeclareVars",1) is in effect, under certain conditions which I can not accurately reproduce yet, a runtime error is given when constructing a function such like
Opt("MustDeclareVars",1)
Func FName($badlytriggered)
Return
EndFunc
I have worked around this bug by simply declaring the variable in question as global:
; Awkward but necessary bug fix Global $badlytriggered
I'll keep trying to accurately reproduce this bug, it won't just reproduce easily. Something in a simple local budget tracking application is causing the trigger.
Attachments (0)
Change History (2)
comment:2 by , on Oct 1, 2010 at 7:41:39 PM
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
You do not have a bug to report so you should not be reporting a bug. You need the support forum until you can clearly demonstrate otherwise.

Try stripping down your code(copy) while preserving the error.
But only that target error, correct all other before the next removal step.
Adding a dummy function that can be used as a substitute for function code that you remove could help.