View unanswered posts | View active topics


Reply to topic  [ 7 posts ] 
Throw in constructor 
Author Message
Member

Joined: Fri Jul 17, 2009 7:55 am
Posts: 33
Location: France
Post Throw in constructor
Hello, I have a freeze when I puts a throw in a constructor, then a savage break is required.

Code:
package
{
   public class TestError
   {
      public function TestError()
      {
         throw new Error();
      }
   }
}

Code:
package
{
   public class Tests extends Sprite
   {
      public function Tests()
      {
         var e:TestError = new TestError();
      }
   }
}


Project Properties > Compiler Options > Additionnal Compiler Options > -default-script-limits 1000 10

_________________
[/frenglish]


Thu Mar 29, 2012 5:03 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 10726
Location: Paris, France
Post Re: Throw in constructor
I don't understand...
In any constructor or just this one? is it called when the SWF starts or later?
What are you trying to do?


Sun Apr 01, 2012 9:14 pm
Profile WWW
Member

Joined: Fri Jul 17, 2009 7:55 am
Posts: 33
Location: France
Post Re: Throw in constructor
Sorry for the delay.
I have at each time this bug during the compilation but only in debug mode. In this case it's for example for an abstract class, if i don't want an instanciation of this class. I don't use the debugging features but i need of the traces. Here Tests is an as3 project (not AIR).

_________________
[/frenglish]


Thu Apr 05, 2012 9:46 pm
Profile
Member

Joined: Mon Oct 16, 2006 12:02 am
Posts: 332
Location: Lviv, Ukraine
Post Re: Throw in constructor
May be flashplayer's exception window exists behind the FD.
Check this topic
viewtopic.php?f=9&t=7338&hilit=+constructor


Sat Apr 07, 2012 4:06 pm
Profile WWW
Member

Joined: Fri Jul 17, 2009 7:55 am
Posts: 33
Location: France
Post Re: Throw in constructor
I think that it's not the same problem but i have it too now.
Finally i have found a solution, we must choose all excepted 'Open in Popup' and 'Open in new Tab' in the project properties.

_________________
[/frenglish]


Sun Apr 08, 2012 8:05 am
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 10726
Location: Paris, France
Post Re: Throw in constructor
Popup/Tab test modes are fine for AS2 but are not stable enough for AS3 debugging.


Sun Apr 08, 2012 1:18 pm
Profile WWW
Member

Joined: Fri Jul 17, 2009 7:55 am
Posts: 33
Location: France
Post Re: Throw in constructor
It is noted.

_________________
[/frenglish]


Sun Apr 08, 2012 8:50 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.