nodrock / apparat

Automatically exported from code.google.com/p/apparat
0 stars 0 forks source link

__cint always returns 0 #50

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
--
When I debug my application, I can clearly see, that __cint function returns 0, 
no matter what the input is.
I can see that function declaration is like this (in __cint.as):
public function __cint(value: *): int {return 0;}

What is the expected output? What do you see instead?
--
I excpected int value, and I get 0.

What version of the product are you using? On what operating system?
--
RC9, Windows 7

Original issue reported on code.google.com by aurelia....@gmail.com on 4 Sep 2011 at 7:25

GoogleCodeExporter commented 8 years ago
You have to use TDSI with the SWF so __cint will be replaced with the 
appropriate bytecodes.

One could change __cint to return the value or throw an exception.

Original comment by joaebert on 4 Sep 2011 at 7:54

GoogleCodeExporter commented 8 years ago
No problem. @joa what do you prefer throw or return ?

Original comment by leclech.patrick on 4 Sep 2011 at 7:59

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Unfortunately, when i try to use TDSI with my swf, I get the following 
exception:

C:\tools\apparat>tdsi -i detector.swf -o detector_out.swf 
java.lang.VerifyError: (class: 
apparat/tools/tdsi/TurboDieselSportInjection$TDSITool, method: run signature: 
()V) Incomp 
atible argument to function 
        at apparat.tools.tdsi.TurboDieselSportInjection$.main(TurboDieselSportInjection.scala:40) 
        at apparat.tools.tdsi.TurboDieselSportInjection.main(TurboDieselSportInjection.scala) 
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
        at java.lang.reflect.Method.invoke(Method.java:597) 
        at scala.tools.nsc.util.ScalaClassLoader$$anonfun$run$1.apply(ScalaClassLoader.scala:78) 
        at scala.tools.nsc.util.ScalaClassLoader$class.asContext(ScalaClassLoader.scala:24) 
        at scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.asContext(ScalaClassLoader.scala:88) 
        at scala.tools.nsc.util.ScalaClassLoader$class.run(ScalaClassLoader.scala:78) 
        at scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.run(ScalaClassLoader.scala:101) 
        at scala.tools.nsc.ObjectRunner$.run(ObjectRunner.scala:33) 
        at scala.tools.nsc.ObjectRunner$.runAndCatch(ObjectRunner.scala:40) 
        at scala.tools.nsc.MainGenericRunner.runTarget$1(MainGenericRunner.scala:56) 
        at scala.tools.nsc.MainGenericRunner.process(MainGenericRunner.scala:80) 
        at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:89) 
        at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala) 

Am I doing something wrong? I have scala in 2.9.1 version.

Original comment by aurelia....@gmail.com on 4 Sep 2011 at 8:18

GoogleCodeExporter commented 8 years ago
Apparat was built against Scala 2.8.1 so unfortunately it is not compatible to 
2.9.1 at the moment.

Original comment by joaebert on 4 Sep 2011 at 8:24

GoogleCodeExporter commented 8 years ago
Thank you very much for great support :) Now everything works like a charm.

Original comment by aurelia....@gmail.com on 5 Sep 2011 at 5:16