Search found 89 matches

  • 1
  • 2
  • 3
  • 4
  • 5
  • 9
by darthmaule2
17 Oct 2019, 16:15
Forum: General Discussion
Replies: 5
Views: 105

Re: Binding errors when clearing a bound ObservableCollection [Manage C# SDK 2.2.4]

This also happens if I just set "MyCollection" to another ObservableCollection.
by darthmaule2
17 Oct 2019, 00:36
Forum: General Discussion
Replies: 5
Views: 105

Binding errors when clearing a bound ObservableCollection [Manage C# SDK 2.2.4]

If I have a List with a bunch of elements... List<string> TestSet1 = new List<string>() { "one", "two", "three", "four", "five", }; And an ObservableCollection initialized to that List of items... public ObservableCollection<string> MyCollection { get; } ... MyCollection = new ObservableCollection<s...
by darthmaule2
22 Sep 2019, 12:07
Forum: General Discussion
Replies: 2
Views: 390

Re: Crash when trying to attach command to storyboard completed event [Managed SDK version 2.2.4]

Here's the stack trace: Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at Noesis.View.Noesis_View_Find(System.Runtime.InteropServices.HandleRef) at Noesis.View.Noesis_View_Find(System.Runtime.Intero...
by darthmaule2
22 Sep 2019, 12:06
Forum: General Discussion
Replies: 6
Views: 638

Re: BitmapImage resources created from images in the filesystem cannot be deleted

I opened a ticket for a way the framework could tell me when it's safe/OK to dispose the FileStream object.
https://noesisengine.com/bugs/view.php?id=1554
by darthmaule2
22 Sep 2019, 11:50
Forum: General Discussion
Replies: 2
Views: 390

Crash when trying to attach command to storyboard completed event [Managed SDK version 2.2.4]

First I tried it this way, as per another forum post I saw: <UserControl x:Class="Controls.SoftButton.SoftButtonControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:Controls.SoftButton" xmlns:i="h...
by darthmaule2
13 Sep 2019, 17:30
Forum: General Discussion
Replies: 1
Views: 78

Touch events not working for me in managed SDK

I have a ListView control defined like this: <ListView x:Name="CurrentDirectoryListView" SelectionMode="Single" Style="{StaticResource FileManagerListViewStyle}" ItemContainerStyle="{StaticResource FileManagerListViewItemStyle}" ItemsSource="{Binding CurrentDirectoryContents}" TouchDown="OnTouchDown...
by darthmaule2
13 Sep 2019, 12:08
Forum: General Discussion
Replies: 6
Views: 638

Re: BitmapImage resources created from images in the filesystem cannot be deleted

Actually no... I'm getting periodic IOExceptions when I try to delete files which I'm displaying as thumbnails in my file manager view. I think you have to explicitly Dispose the stream. Normally I would wrap this line in a using block to ensure it's Disposed when out of scope, but if I do that, it ...
by darthmaule2
11 Sep 2019, 22:08
Forum: General Discussion
Replies: 6
Views: 638

Re: BitmapImage resources created from images in the filesystem cannot be deleted

And 2 minutes later I realized I could add "FileShare.Delete" to the FileStream call:
new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Delete);
by darthmaule2
11 Sep 2019, 22:03
Forum: General Discussion
Replies: 6
Views: 638

BitmapImage resources created from images in the filesystem cannot be deleted

So we have this custom FileTextureProvide which can create resources from the filesystem public class FileSystemTextureProvider : FileTextureProvider { ... public override Stream OpenStream(string path) { ... return new FileStream(path, FileMode.Open, FileAccess.Read); } That code is triggered when ...
  • 1
  • 2
  • 3
  • 4
  • 5
  • 9