Verify Error An Invalid Register Was Accessed

August 30, 2009 by admin
Filed under: Flex 

Other people have already blogged about this, but I didn’t find their posts right away when googling, so I’m adding another post just in case people find it first.

Here are the other blog posts:
http://warappa.wordpress.com/2008/12/19/runtime-error-1025-an-invalid-register-was-accessed/
http://www.adnandoric.com/2009/03/verifyerror-error-1025-an-invalid-register-3-was-accessed/

And here’s my way of saying it:
If you’re getting an error like this:

VerifyError: Error #1025: An invalid register 2 was accessed.

Then it’s worth checking the class ( yes the whole class, not just the method that throws the error ) to see if any xml namespace manipulation is being performed.
If you see anything resembling this:

default xml namespace = myXML.namespace("");

Then ensure that before the method which contains that finishes, it tidies up the xml namespace again like this:

default xml namespace = new Namespace("");

Comments

Feel free to leave a comment...