Modify

Opened 16 years ago

Closed 16 years ago

#484 closed Bug (Fixed)

ObjGet failures

Reported by: Spiff59 Owned by: Valik
Milestone: 3.2.13.7 Component: AutoIt
Version: 3.2.12.0 Severity: None
Keywords: Cc:

Description

ObjGet doesn't seem to be doing what I expect it to.
I placed files named "test.doc", "test.txt" and "test.xls" in my root folder and used the following code to test:

		
	$file = "C:\" & InputBox("","file?")
	$oExcel = ObjGet($file)
	If @error Then
		msgbox(1,"", "Path Not Found for: " & $file)
	Else
		msgbox(1,"", "Path Found for: " & $file)
	EndIf
	Exit

ObjGet appears to be sometimes functioning like "FileExists", ruturning 0 whether the file is in use or not.
Sometimes ObjGet works the first time a file is referenced, and then continues to report it (after thinking for a few seconds) as active long after the process was closed. Oddly, when referencing a previously opened .txt file, ObjGet consistantly causes autoit3.exe to abend with 0xc0000005 at offset 00042a376. Just with the .txt extension. Weird...

The only other factors that may be in play here that I can think of are that this PC did get the recent SP3 update to XP Pro, and that I'm running my tests interpretively, via SciTE, rather than as compiled stand-alones.

Thanks.

Attachments (0)

Change History (2)

comment:1 in reply to: ↑ description Changed 16 years ago by Valik

Replying to Spiff59:

ObjGet doesn't seem to be doing what I expect it to.

And your expectations are?

I placed files named "test.doc", "test.txt" and "test.xls" in my root folder and used the following code to test:

A text file does not have a COM interface. While it shouldn't crash, you won't get an object from it either.

This is a shitty bug report. You've rambled on a lot and other than a crash (when you use the function wrong, I might add) I don't really know what's happening or what you expect to happen. Tell me what you think ObjGet() does and what you are trying to achieve. Tell me what happens when you run that script with *existing* Excel and Word files.

comment:2 Changed 16 years ago by Valik

  • Milestone set to 3.2.13.7
  • Owner set to Valik
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed in version: 3.2.13.7

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain Valik.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.