It does indeed seem a classic case of modifying the iteration collection
in the iteration block. AR 61154 created to fix it.
>I attached several files to bundle.
>Later, I want remove these files, but get exception in method
>PublishPundleDialog>>updateFiles.
>
>I analize code and:
>
>updateFiles
>
> | pundleModel fileDescriptions |
> pundleModel := self specList first dbPundle.
> fileDescriptions := pundleModel fileDescriptions.
> self fileList do:
> [:each |
> each publish ifTrue:
> [(fileDescriptions contains: [:eachFile | eachFile portableFilename
>asString = each name])
> ifTrue:
> [pundleModel removeFile: each name.
> pundleModel addFile: each name]
> ifFalse: [pundleModel addFile: each name]]].
> fileDescriptions := pundleModel fileDescriptions. (!!!!! get collection.
>Need make copy of collection !!!!)
> fileDescriptions do:
> [:each |
> (self fileList contains: [:eachFile | eachFile name = each
>portableFilename asString]) ifFalse:
> [pundleModel removeFile: each portableFilename asString (!!! remove
>element from collection !!!)]]
>
>
>
>
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc