Skip to content

Instantly share code, notes, and snippets.

@rdp
Created May 17, 2012 17:23
Show Gist options
  • Select an option

  • Save rdp/2720340 to your computer and use it in GitHub Desktop.

Select an option

Save rdp/2720340 to your computer and use it in GitHub Desktop.
jruby 1.7.0.preview1 (ruby-1.8.7-p357) (2012-05-17 c550df6) (Java HotSpot(TM) Client VM 1.6.0_26) [Windows 7-x86-java]
irb(main):001:0> require 'win32/registry'
=> true
irb(main):002:0> @screen_reg = Win32::Registry::HKEY_CURRENT_USER.create "Software\\os_screen_capture"
=> #<Win32::Registry key="HKEY_CURRENT_USER\\Software\\os_screen_capture">
irb(main):003:0> @screen_reg['width']=3
=> 3
irb(main):004:0> @screen_reg['width']
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0028a9b7, pid=2744, tid=2772
#
# JRE version: 6.0_26-b03
# Java VM: Java HotSpot(TM) Client VM (20.1-b02 mixed mode, sharing windows-x86 )
# Problematic frame:
# C 0x0028a9b7
#
# An error report file with more information is saved as:
# c:\dev\ruby\downloads\jruby\bin\hs_err_pid2744.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment