aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples
diff options
context:
space:
mode:
Diffstat (limited to 'Samples')
-rw-r--r--Samples/BasicTests/BasicTests.cs6
-rw-r--r--Samples/common/SampleBase.cs2
2 files changed, 6 insertions, 2 deletions
diff --git a/Samples/BasicTests/BasicTests.cs b/Samples/BasicTests/BasicTests.cs
index fba4b70a..1a9340d5 100644
--- a/Samples/BasicTests/BasicTests.cs
+++ b/Samples/BasicTests/BasicTests.cs
@@ -15,6 +15,7 @@ namespace tests
#if NETCOREAPP3_1
DllMapCore.Resolve.Enable (true);
#endif
+
using (BasicTests app = new BasicTests ()) {
app.Run ();
}
@@ -98,8 +99,11 @@ namespace tests
else if (idx < 0)
idx = testFiles.Length - 1;
+#if NETCOREAPP3_1
Console.WriteLine ($"Loading {testFiles [idx]}. {AppDomain.CurrentDomain.MonitoringSurvivedMemorySize}");
-
+#else
+ Console.WriteLine ($"Loading {testFiles [idx]}. {GC.GetTotalMemory(true)}");
+#endif
Load (testFiles [idx]).DataSource = this;
} catch (Exception ex) {
(LoadIMLFragment ($"<Label Background='Red' Foreground='White' Height='Fit' Width='Stretched' Multiline='true' VerticalAlignment='Bottom' Margin='5' />") as Label).Text = ex.ToString();
diff --git a/Samples/common/SampleBase.cs b/Samples/common/SampleBase.cs
index 6800e9ef..0007fc23 100644
--- a/Samples/common/SampleBase.cs
+++ b/Samples/common/SampleBase.cs
@@ -12,7 +12,7 @@ namespace Crow
public Version CrowVersion => Assembly.GetAssembly (typeof (Widget)).GetName ().Version;
#region Test values for Binding
- public List<Crow.Command> Commands;
+ public List<Command> Commands;
public int intValue = 500;
VerticalAlignment currentVAlign;