Bugs: Browse | Submit New | Admin

[#4753] Bug Segmentation fault with MSScriptControl

Date:
2006-06-13 13:32
Priority:
3
Submitted By:
W C (wkc)
Assigned To:
Shyouhei Urabe (shyouhei)
Category:
External APIs / Interfacing
State:
Open
Platform:
 
Summary:
Bug Segmentation fault with MSScriptControl

Detailed description
I am attempting to use the MSScriptcontrol with rubyscript:

	objShell = WIN32OLE.new("WScript.Shell")

	com1 = WIN32OLE.new('comobject.name')
  	script = WIN32OLE.new("MSScriptControl.ScriptControl")
	script.language = "RubyScript"

	script.addObject("com1",comObject,true)

However the following error occurs:
[Bug] Segmentation fault
ruby 1.8.4 (2005-12-24) [i386-mswin32]

Any ideas? Or am I doing something wrong here?

Add A Comment: Notepad

Please login


Followup

Message
Date: 2006-06-18 11:56
Sender: Masaki Suketa

I test your script and I got following error.
  unknown OLE server: `comobject.name' (WIN32OLERuntimeError)

How can I get comobject.name OLE server?

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
assigned_tonone2007-06-12 01:21zenspider
category_idMisc / Other Standard Library2007-05-29 21:00zenspider
category_idLanguage / Runtime / Core Libraries2007-05-29 15:54zenspider