@@ -60,7 +60,7 @@ internal static void RunAsAdministrator(LogController logController)
6060 }
6161 catch ( Exception ex )
6262 {
63- logController . AddLog ( new ApplicationLog ( ex . Message ) ) ;
63+ logController . AddLog ( new ErrorLog ( ex . Message ) ) ;
6464 MessageBox . Show ( ex . Message , "MemPlus" , MessageBoxButton . OK , MessageBoxImage . Error ) ;
6565 }
6666 }
@@ -139,7 +139,7 @@ internal static bool ExportRamSticks(LogController logController)
139139 }
140140 catch ( Exception ex )
141141 {
142- logController . AddLog ( new ApplicationLog ( ex . Message ) ) ;
142+ logController . AddLog ( new ErrorLog ( ex . Message ) ) ;
143143 MessageBox . Show ( ex . Message , "MemPlus" , MessageBoxButton . OK , MessageBoxImage . Error ) ;
144144 }
145145
@@ -189,7 +189,7 @@ internal static bool ExportLogs(LogType? logType, LogController logController)
189189 }
190190 catch ( Exception ex )
191191 {
192- logController . AddLog ( new ApplicationLog ( ex . Message ) ) ;
192+ logController . AddLog ( new ErrorLog ( ex . Message ) ) ;
193193 MessageBox . Show ( ex . Message , "MemPlus" , MessageBoxButton . OK , MessageBoxImage . Error ) ;
194194 }
195195 return false ;
@@ -231,7 +231,7 @@ internal static async Task<bool> ExportProcessDetails(LogController logControlle
231231 }
232232 catch ( Exception ex )
233233 {
234- logController . AddLog ( new ApplicationLog ( ex . Message ) ) ;
234+ logController . AddLog ( new ErrorLog ( ex . Message ) ) ;
235235 MessageBox . Show ( ex . Message , "MemPlus" , MessageBoxButton . OK , MessageBoxImage . Error ) ;
236236 }
237237
@@ -259,13 +259,14 @@ await Task.Run(() =>
259259 ProcessId = p . Id ,
260260 ProcessName = p . ProcessName ,
261261 ProcessLocation = p . MainModule . FileName ,
262- MemoryUsage = ( p . WorkingSet64 / ( 1024 * 1024 ) ) . ToString ( "F2" ) + " MB"
262+ MemoryUsage = ( p . WorkingSet64 / ( 1024 * 1024 ) ) . ToString ( "F2" ) + " MB" ,
263+ MemoryUsageLong = p . WorkingSet64
263264 } ;
264265 processDetailsList . Add ( pd ) ;
265266 }
266267 catch ( Exception ex )
267268 {
268- logController . AddLog ( new ProcessLog ( p . ProcessName + ": " + ex . Message ) ) ;
269+ logController . AddLog ( new ErrorLog ( p . ProcessName + ": " + ex . Message ) ) ;
269270 }
270271 }
271272 } ) ;
0 commit comments