Want to build the ChatGPT based Apps? Start here
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
Thiago Moraes
0
1
0
Slide Show jpg Pictures C# .NETCF 2.0 "OutOfMemoryException"
Aug 7 2008 3:05 PM
I´m developing a digital portrait photos for my pocket pc in C# whit .NET CF 2.0.
And i have a problem with memory when my board working with high resolution photos in jpg, i have a big problem because my board don´t have graphics aceleration and i need to solve this problem in software.
i was create an array with paths of my pictures in Storage Card.
private void timer1_Tick(object sender, EventArgs e)
{
if (j > pathss.Length - 1)
{
j = 0;
pictureBox1.Image = new Bitmap("" + pathss[j]);
j++;
}
else
{
pictureBox1.Image = new Bitmap("" + pathss[j]);
j++;
}
}
When my board show pictures i have the following error:
OutOfMemoryException
at Microsoft.AGL.Common.MISC.HandleAr()
at System.Drawing.Bitmap._InitFromMemoryStream()
at System.Drawing.Bitmap..ctor()
at PRD1.Form1timer1_Tick()
....
I need some function that resize my pictures in my function to display my photos.
Anybody Could help me in my problems?
Thanks
Regards.
Thiago
Reply
Answers (
2
)
How to Print the Data Content on a Web Page without asking Print dialog window...
Get Owner Name