Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002380 [Squeak] Files minor always 12-18-05 21:05 12-18-05 22:38
Reporter Eddie Cottongim View Status public  
Assigned To cdegroot
Priority normal Resolution open  
Status assigned   Product Version 3.9
Summary 0002380: [BUG] [in 6905] Can't open Read Only MIDIs from File List
Description I wasn't sure about the category for this one...

Opening read-only midis fails from the file list, apparently because StandardFileStream oldFileNamed: returns nil. This in turns seems to be because oldFileNamed: tries to assert write access to the file.

The file list is using the ScorePlayerMorph>>playMidiFile: class method. This alternative snippet does work to open a midi score:
(ScorePlayerMorph onMIDIFileNamed: 'C:\explode\cd archive June 11 1999\media\midi\ilr6.mid') openInWorld

I'm not sure where the fault lies here.
Additional Information UndefinedObject(Object)>>doesNotUnderstand: #binary
[] in ScorePlayerMorph class>>playMidiFile: {[:midiReader | f := (FileStream oldFileNamed: fullName) binary. score := (...]}
SystemDictionary(Dictionary)>>at:ifPresent:
ScorePlayerMorph class>>playMidiFile:
SimpleServiceEntry>>performServiceFor:
[] in MenuItemMorph>>invokeWithEvent: {[(selArgCount := selector numArgs) = 0 ifTrue: [target perform: selector] ...]}
BlockContext>>ensure:
CursorWithMask(Cursor)>>showWhile:
MenuItemMorph>>invokeWithEvent:
MenuItemMorph>>mouseUp:
MenuItemMorph>>handleMouseUp:
MouseButtonEvent>>sentTo:
MenuItemMorph(Morph)>>handleEvent:
MorphicEventDispatcher>>dispatchDefault:with:
MorphicEventDispatcher>>dispatchEvent:with:
MenuItemMorph(Morph)>>processEvent:using:
MorphicEventDispatcher>>dispatch:toSubmorphsOf:
MorphicEventDispatcher>>dispatchDefault:with:
MorphicEventDispatcher>>dispatchEvent:with:
MenuMorph(Morph)>>processEvent:using:

Attached Files

- Relationships

- Notes
(0003343 - 191 - 203 - 203 - 203 - 203 - 203)
Eddie Cottongim
12-18-05 22:38

A similar problem occurs if you load a file more than once and the file handle hasn't been released. There is probably a problem trying to assert write access twice.

BTW, this is on Win2K.
 

- Issue History
Date Modified Username Field Change
12-18-05 21:05 Eddie Cottongim New Issue
12-18-05 21:05 Eddie Cottongim Status new => assigned
12-18-05 21:05 Eddie Cottongim Assigned To  => cdegroot
12-18-05 22:38 Eddie Cottongim Note Added: 0003343


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
34 total queries executed.
29 unique queries executed.
Powered by Mantis Bugtracker