OSDN Git Service

アイコンのキャッシュの保存に失敗したときに保存を保留するように変更
authoranis774 <anis774@users.sourceforge.jp>
Thu, 9 Sep 2010 00:29:26 +0000 (00:29 +0000)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sat, 18 Feb 2012 14:15:18 +0000 (23:15 +0900)
git-svn-id: http://svn.sourceforge.jp/svnroot/tween/trunk@833 e39ad16e-3079-482e-bb30-4b4d378143b6

Tween/ImageCacheDictionary.vb

index 742d4cd..723020a 100644 (file)
@@ -199,6 +199,10 @@ Public Class ImageCacheDictionary
                         Me.img.Save(Me.tmpFilePath)
                     Catch ex As InvalidOperationException
                         err = True
+                    Catch ex As Exception
+                        File.Delete(Me.tmpFilePath)
+                        Me.tmpFilePath = Nothing
+                        Exit Sub
                     End Try
                 Loop While err