Cmd 将某些文本粘贴到irb控制台窗口会崩溃
当我自己粘贴以下文本时,它会使控制台窗口崩溃。在Taskmanager中,“cmd.exe”仍然显示,但我注意到在事件视图中同时出现了“conhost.exe”的应用程序错误。是否有一些已知的irb或windows 7错误会导致这种情况 ruby 1.9.3p392(2013-02-22)[i386-mingw32] 粘贴的文本:Cmd 将某些文本粘贴到irb控制台窗口会崩溃,cmd,irb,Cmd,Irb,当我自己粘贴以下文本时,它会使控制台窗口崩溃。在Taskmanager中,“cmd.exe”仍然显示,但我注意到在事件视图中同时出现了“conhost.exe”的应用程序错误。是否有一些已知的irb或windows 7错误会导致这种情况 ruby 1.9.3p392(2013-02-22)[i386-mingw32] 粘贴的文本: ffi_convention :stdcall enum :lvm, [:LVM_GETITEMCOUNT, 4100, :LVM_DE
ffi_convention :stdcall
enum :lvm, [:LVM_GETITEMCOUNT, 4100,
:LVM_DELETEALLITEMS, 4105,
:LVM_GETNEXTITEM, 4108,
:LVM_SETITEMPOSITION, 4111,
:LVM_GETITEMPOSITION, 4112,
:LVM_ARRANGE, 4118,
:LVM_UPATE, 4138,
:LVM_GETITEMTEXTA, 4141,
:LVM_SETITEMTEXTA, 4142,
:LVM_SETEXTENDEDLISTVIEWSTYLE, 4150,
:LVM_GETEXTENDEDLISTVIEWSTYLE, 4151 ]
enum :parameter, [:GW_CHILD, 5,
:LVA_SNAPTOGRID, 5,
:LVS_ALIGNLEFT, 2048,
:LVS_EX_SNAPTOGRID, 524288,
:SNAPTOGRID_ON, 365521968,
:SNAPTOGRID_OFF, 364997680,
:WS_POPUP, 0x80000000L ]
# Uses C Function to find the window handle(HWND) of a window with the specified text, in this case 'ProgMan'
attach_function :findWindow,
:FindWindowA, [ :string, :parameter ], :int
# Gets passed in window handle's child window
attach_function :getChildWindow,
:GetWindow, [ :ulong, :parameter], :int
# Sends a message to the passed in window long format
attach_function :SendMessageLong,
:SendMessageA, [ :ulong, :lvm, :parameter, :parameter ], :long
我在另一台电脑上试过,但没有得到这些结果,我也试过重新启动。