Yonatan of  yonatan_avraham at hotmail.com humbly asked again:

> Regarding Botp's configuration using Windows XP...
> 
> "Pe, Botp" <botp / delmonte-phil.com> wrote in message 
> news:<1030AB5FAD0A3847B7B1F7B93332AFB501E181F0 / bgmail00.delmon
te-phil.com>...
> Yonatan of yonatan_avraham at hotmail.com humbly asked:
> 
> > I'm trying to do some WMI stuff with Ruby.  I found this
> > simple example somewhere.  It works -- until the program 
> > exists that is. 
> > Then Windows pops up a "ruby.exe - Application Error" message 
> > box due to inappropriate memory access.
> > 
> > require 'win32ole'
> > 
> > mgmt = WIN32OLE.connect('winmgmts:\\\\.')
> > mgmt.InstancesOf("win32_process").each{ |proc| 
> >    puts proc.name
> > }
> > `pause`
> > 
> > Does anyone know how to solve the problem?  I'm running "ruby 1.8.0
> > (2003-08-04) [i386-mswin32]" on Windows 2000.
                                    ^^^^^^^^^^^^
> 
> I cannot solve it but I can compare it w mine.
> 
> c:\family\ruby>ver
> Microsoft Windows XP [Version 5.1.2600]
            ^^^^^^^^^^
> 

>....I just installed Ruby 1.8 on an Windows XP box and the WMI example
works 
>fine.  I then installed it on another Windows 2000 box and the WMI example 
>crashes.  Any ideas?
>

fwiw.


F:\usr\bin>ver

Microsoft Windows 2000 [Version 5.00.2195]

F:\usr\bin>ruby -vw test3.rb
ruby 1.8.1 (2003-12-25) [i386-mswin32]
test3.rb:4: warning: class variable ARGV of Object is overridden by WIN32OLE
System Idle Process
System
SMSS.EXE
CSRSS.EXE
WINLOGON.EXE
SERVICES.EXE
LSASS.EXE
svchost.exe
spoolsv.exe
SpntSvc.exe
StWatchDog.exe
StOPP.exe
AntigenMonitor.
EarthAgent.exe
svchost.exe
IIs5Recycle.exe
iisrstas.exe
ofcservice.exe
regsvc.exe
LOCATOR.EXE
mstask.exe
cm.exe
mspmspsv.exe
WUSyncSvc.exe
mrf.exe
AntigenService.
LWDMServer.exe
DNS.EXE
inetinfo.exe
MAD.EXE
DSAMAIN.EXE
AntigenIMC.exe
AntigenStore.ex
STORE.EXE
EMSMTA.EXE
AntigenRealtime
MSEXCIMC.EXE
AntigenInternet
MAPISP32.EXE
svchost.exe
explorer.exe
CTFMON.EXE
getright.exe
IEXPLORE.EXE
CMD.EXE
WinMgmt.exe
WinMgmt.exe
EntityMain.exe
ruby.exe

F:\usr\bin>

note: win2k sp 4

>
>Thanks,
>Yonatan
>

kind regards -botp