This is a migrated thread and some comments may be shown as answers.

PanAndZoomImage memory issues

1 Answer 24 Views
PanAndZoomImage
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dexterously
Top achievements
Rank 1
Dexterously asked on 25 Mar 2014, 06:35 AM
I am working on an application that has a list of songs, and when they select a song it shows the sheet music for it. The sheet music is in png format and they are included in the app file as Content for build action.

When they select a song, I navigate to a new page just set the PanAndZoomImage source to that file using this code:

var contentFolder = await global::Windows.ApplicationModel.Package.Current.InstalledLocation.GetFolderAsync("Content");
var songAttachmentsFolder = await contentFolder.GetFolderAsync(
"SongAttachments");
var file = await songAttachmentsFolder.GetFileAsync(item.URL);<br><br>BitmapImage bi =
new BitmapImage();
bi.UriSource =
new Uri(file.Path);
image.Source = bi;

Each image file is only about 300KB.

The application crashes after loading between 3-6 times that control.
Changing the control from PanAndZoomImage to just the standard Image control it doesn't cause the crash.

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 27 Mar 2014, 01:48 PM
Hi,

Thank you for writing.

It will be great if you send us a sample project which reproduces the issue, so we can find exactly what's causing the leak.

Please note that you need to open a new support ticket in order to be able to attach files.

Regards,
Todor
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
PanAndZoomImage
Asked by
Dexterously
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or