Displaying 20 results from an estimated 20 matches for "process_ev".
Did you mean:
process_e
2007 Nov 21
2
Is fork { } safe inside of a worker? How else may this be done...
I have a BackgrounDRb worker running every 2 minutes. Here''s the basic idea:
- events = Event.find_all_pending( 2.minutes )
- while( all events have yet to be processed )
---- if( Time.now <= event.time_to_process )
------- fork { process_event }
--- end
--- sleep( 0.25 )
- end
- puts "Done..."
Events that need to be processed within the next 2 minutes are loaded and
iterated over. If its time to process the event, fork and do so. Sleep for
0.25 seconds between loops until all events have been processed.
I have a few questi...
2008 Jan 08
28
1.9.3 release, rakefile
Hi
I''d like to put out a 1.9.3 release perhaps later this week/weekend. If
you have a chance to test the build and samples esp with latest
rubygems, please do.
There are still some bugs on the list, and samples to do, but this
should address all the build/install probs that have come up. And it
would be good to get some testing and feedback on some of the new classes.
A note on the
2015 Aug 11
3
Do I need to enable qemu-ga's guest-suspend: hybrid/suspend-ram/disk/shutdown?
...shutdown domain <vmname>
error: internal error: unable to execute QEMU agent command
'guest-shutdown': child process has failed to shutdown
}}}
debug: read data, count: 59, data: {"execute":"guest-sync",
"arguments":{"id":1439251067706}}
debug: process_event: called
debug: processing command
debug: sending data, count: 26
debug: read data, count: 62, data:
{"execute":"guest-shutdown","arguments":{"mode":"powerdown"}}
debug: process_event: called
debug: processing command
debug: sending data, count:...
2007 Aug 02
3
wxSocket..... or wxRubySocket....
Hey Alex,
I was looking into figuring out a way to create a truely Asynchronis
Socket type for Ruby, and thought I''d go down to the bare minimal
implementation of it, to start creating a socket, and then I got to
thinking. Looking at the wxWidgets C/C++ Code, it doesn''t do much
different then what I''m doing, only in Ruby, so I thought maybe, as a way
to avoid
2008 Nov 07
0
[ wxruby-Bugs-22706 ] BitmapComboBox doesn''t work on Linux GTK+
...froze on Linux.
I use wxRuby 1.9.9, wxGTK 2.8.7, GTK+ 2.12.11, Ruby 1.8.6 and Gentoo Linux.
I clicked BitmapComboBox on Linux and then it was frozen but sometimes these error messages was shown.
app.rb:16:in `get_count'': stack level too deep (SystemStackError)
from app.rb:16:in `process_event''
from app.rb:16:in `get_count''
from app.rb:16:in `process_event''
from app.rb:16:in `main_loop''
from app.rb:16
OR
app.rb:16:in `get_count'': stack level too deep (SystemStackError)
from app.rb:16:in `main_loop...
2006 Dec 18
13
unit testing wxruby GUIs
...se for testing. The only real advantage I can see is being
able to record actions.
2) I think a better way would be to use the wxRuby API to simulate
events directly. Event objects are instantiable like any other, and they
can then be passed to the app objects for handling by using
EvtHandler#process_event or #add_pending_event.
A snippet that works for me (OS X, 0.0.38)
f = Wx::Frame.new(nil, -1, ''test_app'')
b = Wx::Button.new(f, -1, ''click'')
evt_button(b.get_id) { | e | Kernel.raise ''I was clicked'' }
# I got this 10003 id b...
2007 Jul 27
0
[ wxruby-Bugs-12610 ] Possible crash with EvtHandler.add_pending_evemt and custom event class
...If a custom event sets associated client_data using set_client_data, and then the event is queued using EvtHandler#add_pending_event the client_data may be prematurely deleted if GC runs before the event is actually processed.
Temporary workaround is to send the event for immediate processing via process_event.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=12610&group_id=35
2006 Nov 21
0
[ wxruby-Bugs-6809 ] Weird SWIG error when constructing statusbar
...39;
class CrasherApp < Wx::App
def on_init
Wx::init_all_image_handlers
f = Wx::Frame.new(nil, -1, ''crash_app'')
s = Wx::StatusBar.new(f, -1)
f.set_status_bar(s)
f.show
end
end
CrasherApp.new.main_loop
# The exception is:
tests/statusbarerror.rb:9:in `process_event'': Swig director type mismatch in output value of type ''bool'' (TypeError)
from tests/statusbarerror.rb:9:in `show''
from tests/statusbarerror.rb:9:in `on_init''
from tests/statusbarerror.rb:13:in `main_loop''
from tests/statusbarerror.rb:13...
2008 Mar 13
0
[ wxruby-Bugs-18812 ] Wx::HtmlWindow#set_page()
...[Second Instance]-----------------
html_error2.rb:30:in `set_page'': Swig director type mismatch Ruby method failed to return an array. (TypeError)
from html_error2.rb:30:in `initialize''
from html_error2.rb:44:in `call''
from html_error2.rb:44:in `process_event''
from html_error2.rb:44:in `main_loop''
from html_error2.rb:44
It works fine, if no <img> tag is in there, but if there is one, and you call set_page() with this HTML, it segfaults or throws a Swig Error. Attached are the two html_error*.rb files, and t...
2008 Mar 15
0
[ wxruby-Bugs-18848 ] Wizard#get_page_area_sizer
...rsion: 0.0.1 Beta
Ruby Version: 1.8.6
Backtrace:
./lib/ui/ProjWizard.rb:65:in `initialize''
./lib/ui/HomePage.rb:100:in `new''
./lib/ui/HomePage.rb:100:in `on_new_proj''
./lib/ui/HomePage.rb:61:in `initialize''
wxRIDE.rb:103:in `call''
wxRIDE.rb:103:in `process_event''
wxRIDE.rb:103:in `main_loop''
wxRIDE.rb:103
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=18848&group_id=35
2008 Jul 28
12
Segfault with GridCellChoiceEditor
I have a problem.
In my application I have a few Grid objects in a Notebook. The Grid objects
are populated via GridTableBase. Certain Grid cells need to have a choice
interface (I''m artificially enforcing foreign key constraints). All this
works to the point where you try to edit the value for that cell. The
choice box renders (i.e. the drop down arrow appears) then the application
2016 Sep 02
0
Wine release 1.9.18
...st run when installed in new prefix
----------------------------------------------------------------
Changes since 1.9.17:
Akihiro Sagawa (6):
po: Update Japanese translation.
winex11: Return more reliable value from X11DRV_MsgWaitForMultipleObjects.
winex11: Fix log message in process_events().
winex11: Use proper return type for process_events().
user32: Create and destroy the default IME window implicitly.
imm32/tests: Add more default IME window tests with message-only window.
Alexandre Julliard (23):
server: Add separate requests for opening and closing...
2007 May 21
13
First drop of new memory management
Hi
Just a quick update on memory leaks etc. I''ve just dropped a bunch of
patches with a new approach to linking ruby''s GC to Wx''s memory
handling. Still some work to do - eg bigdemo.rb falls over quite quickly
- but working well for me on other samples.
Briefly, it disposes of fixdeleting. For almost all objects that aren''t
Windows, they should now be
2003 Jan 19
1
Applications start with title bar grayed
When I try to start notepad, it starts with a grayed title bar,
like it wasnt active. I cant enter text into the input window.
Strange thing, menus work.
To get it look like active and type text, I must select the system menu
and "About wine".
After closing the new window (that has appeared as active), i see that
notepad appears
active and I can enter text.
Has someone this issue ?
2009 Mar 31
15
Error: undefined method ''calc_min'' for #<Wx::IdleEvent>
...ccasionally had the following error when application in idle state.
Error: undefined method ''calc_min'' for #<Wx::IdleEvent:0xb115e44>
OS: WXMSW
Ruby Version: 1.8.6
wxRuby 2.0.0
Backtrace:
(eval):154:in `calc_min''
(eval):154:in `layout''
(eval):154:in `process_event''
(eval):154:in `on_run''
(eval):154:in `main_loop''
Zhimin
--
Posted via http://www.ruby-forum.com/.
2007 Nov 08
0
configure.ac libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_as_date.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_types.c libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_flv.h
...255bb34 100644
--- a/libswfdec/swfdec_net_stream.c
+++ b/libswfdec/swfdec_net_stream.c
@@ -89,7 +89,7 @@ static void
swfdec_net_stream_video_goto (SwfdecNetStream *stream, guint timestamp)
{
SwfdecBuffer *buffer;
- SwfdecVideoCodec format;
+ guint format;
cairo_surface_t *old;
gboolean process_events;
guint process_events_from;
diff --git a/libswfdec/swfdec_net_stream.h b/libswfdec/swfdec_net_stream.h
index 4af94ca..253f8ce 100644
--- a/libswfdec/swfdec_net_stream.h
+++ b/libswfdec/swfdec_net_stream.h
@@ -57,7 +57,7 @@ struct _SwfdecNetStream
/* video decoding */
guint current_ti...
2001 Nov 19
1
Crash when pressing OK/Cancel in User Preferences - Lotus Notes RNext
Wine version: 20011108
CVS update run this morning
Ran the following commands
make uninstall
make clean
/tools/wineinstall
Lotus Notes RNext running OK with latest CVS (I was having problems where
buttons would not work), however if I go into User Preferences, and then
click on either the OK or Cancel button, a crash occurs producing the
following in the debugger....
WineDbg starting...
2007 Jul 27
0
11 commits - libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c libswfdec/swfdec_sprite_movie_as.c test/trace
...a video
diff --git a/libswfdec/swfdec_net_stream.c b/libswfdec/swfdec_net_stream.c
index 7af040c..2f993c3 100644
--- a/libswfdec/swfdec_net_stream.c
+++ b/libswfdec/swfdec_net_stream.c
@@ -63,15 +63,19 @@ swfdec_net_stream_video_goto (SwfdecNetS
SWFDEC_LOG ("goto %ums", timestamp);
process_events = timestamp == stream->next_time;
process_events_from = MIN (stream->next_time, stream->current_time + 1);
- buffer = swfdec_flv_decoder_get_video (stream->flvdecoder, timestamp,
- FALSE, &format, &stream->current_time, &stream->next_time);
old = stream...
2008 Nov 01
13
wxRuby 1.9.9 released
Hello
I''m happy to announce that wxRuby version 1.9.9 is now available for
download and gem installation:
http://rubyforge.org/frs/?group_id=35&release_id=27842
gem install wxruby
On Linux, the default binary gem is now dynamically linked to wxWidgets.
This means you''ll need to install wxWidgets from your package manager.
See below for more info.
== CHANGES ==
This
2007 Apr 04
0
Branch 'as' - 17 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
...m->buffering = TRUE;
- swfdec_net_stream_onstatus (stream, "NetStream.Buffer.Empty", "status");
+ swfdec_net_stream_onstatus (stream, SWFDEC_AS_STR_NETSTREAM_BUFFER_EMPTY,
+ SWFDEC_AS_STR_STATUS);
}
swfdec_net_stream_update_playing (stream);
}
if (process_events) {
while (process_events_from <= stream->current_time) {
- jsval name, value;
+ SwfdecAsValue name, value;
SwfdecBits bits;
SwfdecBuffer *event = swfdec_flv_decoder_get_data (stream->flvdecoder, process_events_from, &process_events_from);
if (!ev...