Foxtable(狐表)用户栏目专家坐堂 → System.OutOfMemoryException”的异常


  共有4088人关注过本帖树形打印复制链接

主题:System.OutOfMemoryException”的异常

帅哥哟,离线,有人找我吗?
有点甜
  31楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2014/9/22 15:36:00 [只看该作者]

If e.DataCol.Name = "产品效果图" Then
    If e.NewValue <> Nothing Then
        Dim file As String = ProjectPath & "Attachments/"  & e.NewValue
        Dim img As image = getImage(file)
        Dim bmp As new bitmap(getImage(file), img.width / 30, img.height / 30)

        file = "d:\天禧家产品缩略图\"  & e.NewValue
        Dim path As String = file.Replace(FileSys.GetName(file),"")
        If FileSys.DirectoryExists(path) = False Then '如果目录C:\MyFolder存在
            FileSys.CreateDirectory(path)
        End If
        bmp.save(file)
       
        bmp.Dispose
    End If
    e.DataRow("缩略图") = e.NewValue
End If


 回到顶部
总数 31 上一页 1 2 3 4