Class code as2, deleted long ago (sometimes), is executed with traces of the log

I have a problem where legacy code, long-deleted code in the ActionScript 2 class, sometimes runs. I can say this in that the application fails, and the traced trace statements have long gone into the console.

The closest match I came across is this message:

Flash CS4 refuses to let go

Here is what I tried

  • I was looking for all the source code in the project to record the trace. He's not there.
  • I was looking for an uncompressed version with debugging support for recording traces. He's not there.
  • I decompiled the compiled version and searched it. He's not there.
  • I deleted all ASO files and tried to recompile.
  • I could not reliably reproduce the conditions in which the situation arises. I have a test 700 times in a row (yes - seven hundred times - this is a project with a high profile), and this will not happen. Then checked again, and it happened. No difference in my testing approach.
  • I collected on another, just installed computer. No difference.
  • I ruled out that it might refer to timestamps as I tried to compile locally and without version control.
  • I tried to scream, cry, beg, ignore and threaten Flash with indescribable actions, but to no avail.
  • It seems to be isolated from one class. All other classes behave as expected, and everything is fine until I get into the class in question. Then failure is around.

However - sometimes I see code that has been deleted long ago, and executable trace instructions that no longer exist are logged, while others that should appear do not work.

This is a critical issue that I need to solve.

Any help would be greatly appreciated.

Thanks in advance,

Thomas

+4
source share
1 answer

Please do not despair. Things like this have happened to all of us before, and ultimately we find a problem (usually ours).

The best advice I can give you is to set a breakpoint for crazy trace statements and hope that debugging goes through them.

As you said, you were looking for trace instructions, would it be possible for them to be on the action bar (timeline code)?

How is your code and .fla organized? Is everything in external .as files or is it built into the timeline?

And finally, do you perform some kind of reflection, for example getClassByName () (in as2 eval ("_ global." + ClassName))?

Also, to make sure that this is not a caching problem, copy only the .fla files and their associated .as files and move them to a new computer or to a new folder and compile it using another Windows user (assuming u 're, using windows), this should be enough to get rid of all caching crazy flashes.

0
source

Source: https://habr.com/ru/post/1380744/


All Articles