Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
110
XamDataCarouselcontrol Memory Leak with on Windows7 64 bit ?
posted

Hi All -

We are using NetAdvantage for Win Client 2009 Vol 1with the latest hotfix (NetAdvantage_WPF_20091.2196) applied. 

We are experiencing a significant memory leak with passing Bitmap images to the XamDataCarouselcontrol. Around 4 MB per image (HD images).

It worked fine when installed on XP 32 bit but the leak appeared when using on Win 7 64 bit and .NET 3.5. No code was changed. Below is a code snippet.  Does anyone have any ideas why this might be happening?

BitmapImage bmpImage = new BitmapImage();
bmpImage.BeginInit();
bmpImage.CreateOptions = BitmapCreateOptions.IgnoreImageCache;
bmpImage.UriSource = new Uri(strbitmapPath);
bmpImage.CacheOption = BitmapCacheOption.OnLoad;
bmpImage.EndInit();
if (bmpImage.CanFreeze)
{
             bmpImage.Freeze();
}
((System.Windows.Controls.Image)objStillsUserControl.FindName("image1")).Source = bmpImage;
albumCarousel.DataItems.Add(objStillsUserControl);

In above code objStillsUserControl is a UserControl which is added in the XamDataCarousel object "albumcarousel".

Thanks,

-Gregg