Giter Club home page Giter Club logo

Comments (2)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
The simple class with dispose method works as expected. So this bug should be 
not in
action-coding side but in Funnel library side.

def setup
 size 200, 200
 frameRate 1
 @hoge = Hoge.new(self)
end

def draw
 @hoge.fugo #typo
end

if defined? IRP then
 begin
   # Load action-coding related libraries
   require 'java'
   require 'rplib.jar'
   include_class 'processing.core.PApplet'
   include_class 'IPAppletAdapter'
   puts "INFO: Ready to use the action-coding environment"
 rescue LoadError
   # It seems that action-coding environment is not available
 end
end

class Hoge
 include IPAppletAdapter if defined? IRP

 def initialize(applet)
   if applet != nil then
     puts applet
     @applet = applet
     @applet.registerDispose(self)
   end
 end

 def fuga
   puts "fuga called"
 end

 def dispose
   puts "INFO: Disposing..."
   sleep 1
   puts "INFO: Disposed!"
 end
end


INFO: Ready to use the action-coding environment
org.jruby.proxy.processing.core.PApplet$Proxy2[panel0,0,0,200x200,invalid,layout
=java.awt.FlowLayout]
Error while running applet.
(eval):8:in `draw': #<NameError::Message:0xf23f8b> (NoMethodError)
       from :1
       ...internal jruby stack elided...
(eval):8:in `draw': #<NameError::Message:0xf23f8b> (NoMethodError)
       from :1
       ...internal jruby stack elided...
INFO: Disposing...
INFO: Disposed!

Original comment by [email protected] on 10 Aug 2008 at 1:00

  • Changed state: Started

from funnel.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
一部修正:r420

元々のコードがリロード後にどこで停止しているのかにつ��
�て調べたところ、IOSystemのコン
ストラクタ中で/resetコマンドを送信し、その返事を待って��
�る部分であることがわかった。
ここでは、Queue.popのブロックをtimeoutに渡してタイムアウト�
��るようにしていたが、実際
にはタイムアウトは期待したようには動作していなかった��
�そこで、timeoutではなくnon-
blockingでpopするようにして自前の判定ルーチンでタイムアウ
トを処理するようにしたとこ
ろ、少なくともユーザから見て無反応になることはなくな��
�た。

しかし、何故disposeメソッドが呼ばれないのかに関しては相�
��わらず謎である。

Original comment by [email protected] on 10 Aug 2008 at 2:23

from funnel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.