Comments (2)
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.
一部修正: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)
- digital pin reporting in Firmata v2 won't work as expected
- Sketches won't exit by hitting a Esc key HOT 1
- Processing library won't work with XBee modems HOT 1
- Processing lib crushes HOT 1
- From a 2nd run, a first pair of button press/release is ignored HOT 1
- fio_simple_scope.rb won't run HOT 1
- 長さが256以上のパケットを受け取れない HOT 2
- "Stream Error" occurs when try to run XBeeTest with Flash CS4
- Some I2C devices have register addresses > 0xFF
- Want to know the RSSI for an end device
- rev 768 seems that com.illposed.osc.* classes were not compiled in latest build HOT 5
- bug in Potentiometer.as HOT 1
- Gainer.MODE7 on processing
- HI ! I have a big problem with my photoresistor ... Help me please ! HOT 1
- Don't try to open a Bluetooth port when the last serial port was not found
- trying to connect a picaxe08m2 controller .... HOT 2
- Processing Llibrary broken with funnel release 801
- add maxPWMValue to Pin object HOT 1
- add analogNumber getter to Pin object HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from funnel.