[BUG] test_win32ole_event.rb in trunk

e$B=uED$G$9!#e(B

Masaki S. wrote:

Cygwine$B$GG[I[$5$l$F$$$ke(B ruby 1.8.7 (2008-06-20 patchlevel 22) [i386-cygwin]
e$B$G$bH/@8$7$^$7$?!#e(B

e$B=uEDe(B e$B2m5*e(B

artone$B$G$9!#e(B

Cygwine$B$He(BVC2005EE e$B$O!"e(Btrunke$B$Ne(B17818e$B$K$7$?>[email protected]$He(BBUGe$B$,:F8=$G$-$J$/$Fe(B
e$B%Q%C%A$J$7$G$b1?0-$/F0$$$F$7$^$$$^$7$?!#e(B
e$B:F8=$5$;$k$K$O!"0J2<$N$h$&[email protected]$1$G==J,$G$9!Je([email protected]$H0c$&$N$+$J!K!#e(B

def test_on_event
  ev = WIN32OLE_EVENT.new(@ie, 'DWebBrowserEvents')
  ev.on_event {|*args| default_handler(*args)}
  @ie.navigate("file:///#{@f}")
  while @ie.busy
    WIN32OLE_EVENT.new(@ie, 'DWebBrowserEvents')   # e$B:[email protected]$1e(B
    GC.start 

e$BB(2s<}e(B

    sleep 0.1
  end
  assert_match(/BeforeNavigate/, @event)
  assert_match(/NavigateComplete/, @event)
end

e$B$G$9$,!"%Q%C%A$"$j$G$bF0:n$9$k$3$H$O3NG’$G$-$^$7$?!#e(B
(OSe$B$O!“e(BWindows XPe$B$G$9!#e(B)
IMessageFilter::MessagePendinge$B$,%P%+$J%3!<%I$K$J$C$F$$$^$9$,!”:G?7$Ne(BMSDN
[email protected]$i!“e(BPENDINGMSG_WAITNOPROCESSe$B0J30$NJVAw$,$^$:$$$h$&$J$3$H$,=q$$$Fe(B
e$B$”$C$?$N$G!"$"$N$h$&$K$7$F$$$^$9!#L5BL$H$$$($PL5BL$J$N$G!"e(Bif
(rb_during_gc) {… } e$B$O:o=|$7$F$bNI$$$H;W$$$^$9!#e(B
[email protected]!“3N$+0JA0!“30It%W%m%;%9%5!<%P!<$NBT$A>uBV$N$H$-$Ke(BMessageFiltere$B$r;He(B
e$B$&OCBj$,$”$C$?$H;W$$$^$9$,!”$3$N4X?t$O$=$l!J$C$F$I$&$7$m$C$F$$$&OC$G$7$?$Ce(B
e$B$1!)!K$r<BAu$9$k$?$a$N%F%s%W%l!<%[email protected]$H;W$C$F$/[email protected]$5$$!#e(B

  •     hr = CoRegisterMessageFilter(&imessage_filter, &previous_filter);
    

e$B$3$l$C$F!“8e;OKv$G!“e(BCoRegisterMessageFilter(NULL, &previous_filter);
e$B$r8F$P$J$/$F$bBg>fIW$J$s$G$7$g$&$+!)e(B
(e$B8F$V%?%$%%s%0$,$"$k$N$+$I$&$+2x$7$$$G$9$,e(B…e$B!#e(B)
e$B8F$V$H$9$l$P!"e(BOleUninitializee$B$ND>A0!Je(Bole_uninitializee$B4X?t$NCf!K$G$9$,!“e(B
e$B!&e(Bole_uninitializee$B$,8F$P$l$J$$%G%C%I%3!<%I$K$J$C$F$$$k!J$H;W$&!Ke(B
e$B!&D>8e$Ke(BOLEe$B%a%C%;!<%8$N<u?.$r$G$-$J$/[email protected]$+$i!“8F$V0UL#$,$J$$e(B
e$B$H$$$&$o$1$G!“8F$S$^$;$s!#$,!”%3!<%I$NBP>[email protected]$+$i$Oe(Bole_uninitizliee$B$NCf$Ge(B
e$B8F$V$N$O$”$j$J$N$G!”=uED$5$s$N9%$
$GJQ$($F$/[email protected]$5$$!#e(B
e$B2r=|$O$”$kFCDj$N=hM}!J$?$H$($P%b!<%@%k%@%$%”%m%0$G%/%j%F%#%+%k$Je(BUIe$B%a%C%;!<e(B
e$B%8=hM}$r$7$?$$$H$+!"$"$k$$$O%5!<%P!<$+$i$N1~Ez$,Mh$k$^$Ge(BUIe$B%a%C%;!<%8$rL5e(B
e$B;k$7$?$$$H$+!K$NHO0O$K8BDj$7$F%U%#%k%?$r$+$1$k>l9g$KMxMQ$9$k$H$$$&G’<1$Ge(B
e$B$9$,!"$?$V$s!"$O$:$7$F$$$J$$$H;W$$$^$9!#e(B

win32ole.ce$B$N%Q%C%A$O$"$j$,$?$/<h$j9~$^$;[email protected]$/$D$b$j$G$9$,!“e(B
e$B$^$:$O!”$=$NA0$Ke(B gc.ce$B$N%Q%C%A$r<h$j9~$s$G$b$i$&$h$&$K$7$^$9!#e(B
e$B$h$m$7$/$*4j$$$7$^$9!#e(B
e$BB?J,!"$3$l$OB>$N3HD%%i%$%V%i%j$G$bI,MW$J$3$H$,$"$k$N$G$O$J$$$+$H;W$$$^$9!#e(B

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs