Public ReadOnly Property Image As Image
Get
If Me.img Is Nothing Then
- Me.img = Image.FromFile(Me.tmpFilePath)
+ Try
+ Me.img = Image.FromFile(Me.tmpFilePath)
+ Catch ex As OutOfMemoryException
+ File.Copy(Me.tmpFilePath, Path.Combine(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory), "TweenCache"), Path.GetFileName(Me.tmpFilePath)))
+ Throw ex
+ End Try
End If
Return Me.img
fDialog.Dispose()
UrlDialog.Dispose()
_spaceKeyCanceler.Dispose()
- If TIconDic IsNot Nothing AndAlso TIconDic.Keys.Count > 0 Then
- For Each key As String In TIconDic.Keys
- TIconDic(key).Dispose()
- Next
- TIconDic.Clear()
- End If
DirectCast(TIconDic, IDisposable).Dispose()
If NIconAt IsNot Nothing Then NIconAt.Dispose()
If NIconAtRed IsNot Nothing Then NIconAtRed.Dispose()
End If
'アイコンリスト作成
- TIconDic = New ImageCacheDictionary(3000)
+ TIconDic = New ImageCacheDictionary(50)
tw.DetailIcon = TIconDic