DDS out of memory

Hello, I've kinda learned how to program a bit using Patrice Pellands book and I tried to make a program.this was my problem. I had an out of memory exception. Here was the code:

 

Public Class Form1

 

Private Sub open_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles open.Click

OpenFileDialog1.Filter = "DDS Texture (*.dds)|*.dds"

If OpenFileDialog1.ShowDialog() = DialogResult.OK Then

PictureBox1.Image = System.Drawing.Image.FromFile _

(OpenFileDialog1.FileName)

End If

End Sub

End Class

 

Ok, I run the program then when I choose a DDS file, the Out of Memory Exception occurs in this line of code, it says it has no memory how can i fix this

PictureBox1.Image = System.Drawing.Image.FromFile _

(OpenFileDialog1.FileName)

It's supposed to open and display DDS Images or Direct Draw Surface

can anybody help thanks.




Answer this question

DDS out of memory

  • DennisLonndon

    guys please i just wnat help

  • chakira

    I do not think that file type is supported

    in VB EE.

    See:

    ms-help://MS.VSExpressCC.v80/MS.NETFramework.v20.en/dv_fxmclignrl/html/6be085a2-2c13-47c8-b80a-c18b32777d8d.htm



  • BG22

    Anybody does any1 know this

  • prabashmi

    I am having the same problem!


  • DDS out of memory