Crash-m / thelastripper

Automatically exported from code.google.com/p/thelastripper
0 stars 0 forks source link

Crash on Windows 7 #212

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Description of the issue:
The application crashes on Windows 7 64bit (I saw it running 32bit no
problem). The moment it starts ripping, it crashes. This application has
performed an illegal operation and closes.

What steps will reproduce the problem?
1. Start the application
2. Log-In
3. Type something and press the Go button

What is the expected output?
Application Crash

GENERAL INFORMATION ABOUT YOUR SYSTEM:

TheLastRipper version? 1.40
Mono/.Net runtime version? 3
Operating system and version? Win 7 64bit

Original issue reported on code.google.com by mpu...@gmail.com on 18 May 2010 at 3:51

GoogleCodeExporter commented 9 years ago
When debugging I get:

(Yes I just have one instance running)

Line 168:
case Win32Native.ERROR_INVALID_PARAMETER: 
                throw new IOException(Win32Native.GetMessage(errorCode),
Win32Native.MakeHRFromErrorCode(errorCode), maybeFullPath);

{"The process cannot access the file 'D:\\Music\\XYZ\\ABC\\01 - BLABLA.mp3' 
because
it is being used by another process."}
System.IO.IOException was unhandled
  Message="The process cannot access the file 'D:\\Music\\XYZ\\ABC\\01 - BLABLA.mp3'
because it is being used by another process."
  Source="mscorlib"
  StackTrace:
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileInfo.Delete()
       at LibLastRip.LastManager.handleError(Boolean resetSong, ErrorEventArgs args)
       at LibLastRip.LastManager.Save(IAsyncResult Res)
       at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(
TryCode
code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,
ContextCallback callback, Object state)
       at System.Net.ContextAwareResult.Complete(IntPtr userToken)
       at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr
userToken)
       at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32
errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
       at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32
errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
  InnerException: 

Original comment by mpu...@gmail.com on 18 May 2010 at 3:56

GoogleCodeExporter commented 9 years ago
Well... i had the same error on a 32bit Windows 7 System.
I changed the saving options from direct to disk to buffering in memory. 
It work's. 
Propably the Stream is still in access of lastripper when he trys to write it 
directly to disk.

Cheers

Original comment by Asekor...@googlemail.com on 19 Jul 2010 at 2:05