Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
rdeigsler  
#1 Posted : Wednesday, September 21, 2005 7:57:13 AM(UTC)
rdeigsler

Rank: Member

Groups: Member
Joined: 8/20/2005(UTC)
Posts: 8

I am having a big memory problem. When I use a web page that has a BitmapViewer, the memory is never released. I dispose of the objects that are created. Below are code snippets. When the page loads:
Code:
		private void Page_Load(object sender, System.EventArgs e)
		{
			try
			{
				if(Request.QueryString["id"] != null)
				{
					fileID = Convert.ToInt32(Request.QueryString["id"]);
					if(Request.QueryString["id"] != "0")
					{
						objCurrentFile = Files.GetFile(fileID); 
						bitmap = new Bitmap();
						bitmap.Timeout = 60;
						bitmap.Load(Server.MapPath(Config.GalleryDirectory + objCurrentFile.Path));
						bmvEditor.Bitmap.Create(bitmap);
						bitmap.Dispose();
					}
					bmvEditor.BackColor = System.Drawing.Color.FromArgb(192, 192, 192);
					bmvEditor.Bitmap.UndoRedoEnabled = true;
				}
			}
			catch(System.Exception ex)
			{
				SSP.ExceptionManager.Publish(ex.ToString());
			}
		}
And when the page closes I call this remotely and have verified that it executes:
Code:

		[RemoteScriptingMethod]
		public void DisposeBitmap()
		{
			if(bitmap != null)
				bitmap.Dispose();
			bmvEditor.Bitmap.Dispose();
			bmvEditor.Dispose();
		}
Thank you for your help! Rick Deigsler

Edited by user Sunday, December 23, 2007 5:32:53 PM(UTC)  | Reason: Not specified

Dmitry  
#2 Posted : Wednesday, September 21, 2005 6:33:50 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello Rick, How much memory is commited by IIS, does amount of commited memory increase? Try to wait for some time after the first request page comes to the server (some minutes), garbage collector needs for some time to accumulate memory usage statistics.
Sincerely yours, Dmitry Sevostyanov UserPostedImage Follow Aurigma on Twitter!
rdeigsler  
#3 Posted : Wednesday, September 21, 2005 10:30:00 PM(UTC)
rdeigsler

Rank: Member

Groups: Member
Joined: 8/20/2005(UTC)
Posts: 8

The memory never gets released, I have looked at the memory the next day and it will still be the same.
rdeigsler  
#4 Posted : Thursday, September 22, 2005 1:10:29 AM(UTC)
rdeigsler

Rank: Member

Groups: Member
Joined: 8/20/2005(UTC)
Posts: 8

Oh, and yes, the committed memory keeps increasing.
Dmitry  
#5 Posted : Friday, September 23, 2005 3:46:10 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Could you tell which version of Graphics Mill for .NET do you use, which IIS and windows server? And it will be highly appreciated if you provide us with more specified sample and strict instructions how you merge commited memory.
Sincerely yours, Dmitry Sevostyanov UserPostedImage Follow Aurigma on Twitter!
rdeigsler  
#6 Posted : Friday, September 23, 2005 8:21:36 PM(UTC)
rdeigsler

Rank: Member

Groups: Member
Joined: 8/20/2005(UTC)
Posts: 8

I am using GraphicsMill 3.1. For local development the platform is Windows XP with IIS 5.1. For production the platform is Windows Server 2003 Web Edition with IIS 6. The same problem is occuring on both. I have simplified the code to just what is in the above snippet. I am not that familiar with programmatic image manipulation. What exactly is merging committed memory? Thank you, Rick Deigsler
Dmitry  
#7 Posted : Tuesday, September 27, 2005 2:57:55 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Please submit case and we provide you with new compilation of the library for test purpose.

Edited by user Friday, May 23, 2008 2:35:30 PM(UTC)  | Reason: Not specified

Sincerely yours, Dmitry Sevostyanov UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.