Hi,
I am using windows7 embedded system, i am getting insufficient memory issue intermittent.
LogEntry><Level>ERROR</Level><DateTime>14/10/2014 09:44:59</DateTime><Logger>Lotus.TILL.Common.Services.LoggingService</Logger><Message>Insufficient memory to continue the execution of the program.</Message><Details>System.OutOfMemoryException:
Insufficient memory to continue the execution of the program.
at System.Windows.Media.Composition.DUCE.Channel.SyncFlush()
at System.Windows.Media.MediaContext.CompleteRender()
at System.Windows.Interop.HwndTarget.OnResize()
at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.HwndSubclass.DefWndProcWrapper(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.SetWindowPos(HandleRef hWnd, HandleRef hWndInsertAfter, Int32 x, Int32 y, Int32 cx, Int32 cy, Int32 flags)
at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
at System.Windows.Window.CreateSourceWindowDuringShow()
at System.Windows.Window.SafeCreateWindowDuringShow()
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Window.Show()
at System.Windows.Window.ShowDialog()
at Lotus.TILL.Infrastructure.UI.Controls.DialogWindow.OpenDialogWindow(Window owner, BaseViewModel content, DialogAnimationType animationType, Object contentData) in d:\TFS Rajnikant\Release\Lotus 0_0_7_15\TILL\Application\LotusTILLInfrastructure\Lotus.TILL.UI\Controls\DialogWindow.xaml.cs:line
65
at Lotus.TILL.UI.ShellViewModel.LoadCustomDialog(Double dialogHeight, Double dialogWidth) in d:\TFS Rajnikant\Release\Lotus 0_0_7_15\TILL\Application\LotusTILLUI\Lotus.TILL.UI\ShellViewModel.cs:line 4615
at Lotus.TILL.UI.ShellViewModel.DiscoverDialog(ToolbarItem selectedToolBarItem, Boolean needToStartPayPointCommitProcess) in d:\TFS Rajnikant\Release\Lotus 0_0_7_15\TILL\Application\LotusTILLUI\Lotus.TILL.UI\ShellViewModel.cs:line 4390</Details><StackTrace> at System.Windows.Media.Composition.DUCE.Channel.SyncFlush()
at System.Windows.Media.MediaContext.CompleteRender()
at System.Windows.Interop.HwndTarget.OnResize()
at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.HwndSubclass.DefWndProcWrapper(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.SetWindowPos(HandleRef hWnd, HandleRef hWndInsertAfter, Int32 x, Int32 y, Int32 cx, Int32 cy, Int32 flags)
at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
at System.Windows.Window.CreateSourceWindowDuringShow()
at System.Windows.Window.SafeCreateWindowDuringShow()
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Window.Show()
at System.Windows.Window.ShowDialog()
at Lotus.TILL.Infrastructure.UI.Controls.DialogWindow.OpenDialogWindow(Window owner, BaseViewModel content, DialogAnimationType animationType, Object contentData) in d:\TFS Rajnikant\Release\Lotus 0_0_7_15\TILL\Application\LotusTILLInfrastructure\Lotus.TILL.UI\Controls\DialogWindow.xaml.cs:line
65
at Lotus.TILL.UI.ShellViewModel.LoadCustomDialog(Double dialogHeight, Double dialogWidth) in d:\TFS Rajnikant\Release\Lotus 0_0_7_15\TILL\Application\LotusTILLUI\Lotus.TILL.UI\ShellViewModel.cs:line 4615
at Lotus.TILL.UI.ShellViewModel.DiscoverDialog(ToolbarItem selectedToolBarItem, Boolean needToStartPayPointCommitProcess) in d:\TFS Rajnikant\Release\Lotus 0_0_7_15\TILL\Application\LotusTILLUI\Lotus.TILL.UI\ShellViewModel.cs:line 4390</StackTrace></LogEntry>
I am no doing any fancy stuff over here.
This is my LoadCustomDialog method
public void OpenDialogWindow(Window owner, BaseViewModel content, DialogAnimationType animationType, object contentData = null)
{
//Set content and owner of the dialog window
Owner = owner;
if (owner != null && owner is DialogWindow)
((DialogWindow)owner).CustomDialogMask.Visibility = System.Windows.Visibility.Visible;
if (contentData != null)
Root.Content = contentData;
else
Root.Content = content;
this.DataContext = content;
//checks whether the current thread is already running window as dialog or not
//if (System.Windows.Interop.ComponentDispatcher.IsThreadModal)
// return;
StartLoadingDialogAnimation(animationType);
ShowDialog();
}
Animations are not enabled.
Thanks,
Rajnikant