Please note: this forum is outdated and is available only in read-only mode.
New forum can be found here

I have transfered 20 old user accounts to the new forum,
but they still need to reset password with a registered email.
The list of transfered users can be found here

[ ENG forum · RUS forum ]  
  Welcome Guest [ Register · Log in ] [ New messages · Forum rules · Search ]  

Page 1 of 11
Archive - read only
Old Official Forum » Projects » Video Thumbnails Maker by Scorp » Crash at startup
Crash at startup
AimhereDate: Monday, 2013-11-04, 1:00 PM | Message # 1
Group: Users
Messages: 7
Status: Offline
Hi,

I recently updated my VTM to version 5.0.0.3, but find it always crashes at startup. More specifically, it runs okay the very first time I launch it (and I can use it to make as many thumbnails as I like), but if I exit the app, then the next time I start it I get an "unhandled exception" error. If I click the "Quit" button in the error dialog, it shows another exception (clicking Quit a second time exits VTM). If I choose "Continue" instead in the error dialog, the main VTM window is shown but the user interface is  messed up (and clicking any button just causes yet another error).

Try as I might, I can't get this version VTM to start normally. But oddly, if I reinstall it, it again works correctly the first time it
launches... but not the second or subsequent launches. Until I reinstall it... lather, rinse, repeat. Something in the app is getting corrupted the first time it runs.

If I uninstall 5.0.0.3 and go back to an earlier version (5.0.0.1, the last one I happen to have saved), the older version does NOT exhibit this problem (I can start, exit, and start again without any issues). The crashing is specific to 5.0.0.3. I may be stuck on 5.0.0.1 for the forseeable future if this isn't fixed.

The error dialog has a button that shows the details of the exception. Here is the text of the message from the initial error:

Code
See the end of this message for details on invoking  
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.
    at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
    at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind)
    at Microsoft.Win32.RegistryKey.SetValue(String name, Object value)
    at ..()
    at ..(Object , EventArgs )
    at System.Windows.Forms.CheckBox.OnCheckStateChanged(EventArgs e)
    at System.Windows.Forms.CheckBox.set_CheckState(CheckState value)
    at System.Windows.Forms.CheckBox.set_Checked(Boolean value)
    at ..()
    at ..(Object , EventArgs )
    at System.Windows.Forms.Form.OnShown(EventArgs e)
    at System.Windows.Forms.Form.CallShownEvent()
    at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
    at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
    at System.Threading.ExecutionContext.runTryCode(Object userData)
    at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
    at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

************** Loaded Assemblies **************
mscorlib
     Assembly Version: 2.0.0.0
     Win32 Version: 2.0.50727.5472 (Win7SP1GDR.050727-5400)
     CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
VideoThumbnailsMaker
     Assembly Version: 5.0.0.3
     Win32 Version: 5.0.0.3
     CodeBase: file:///C:/Program%20Files%20(x86)/Video%20Thumbnails%20Maker/VideoThumbnailsMaker.exe
----------------------------------------
System.Windows.Forms
     Assembly Version: 2.0.0.0
     Win32 Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400)
     CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
     Assembly Version: 2.0.0.0
     Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
     CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
     Assembly Version: 2.0.0.0
     Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
     CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
DirectShowLib-2005
     Assembly Version: 2.0.0.0
     Win32 Version: 2.0.0.0
     CodeBase: file:///C:/Program%20Files%20(x86)/Video%20Thumbnails%20Maker/DirectShowLib-2005.DLL
----------------------------------------
System.Management
     Assembly Version: 2.0.0.0
     Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
     CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
     <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

I am running VTM on Windows 7, 64-bit, with Service Pack 1 and all Windows Updates applied. I tried (re)installing .NET Framework 4.0 (which supposedly includes everything in .NET 2.0) but it had no effect on the VTM crashes (and besides, the older version of VTM doesn't crash with the same installed .NET framework).

Added (2013-11-04, 1:00 PM)
---------------------------------------------
I couldn't include the details of the second exception error in the previous post, the message was too long. Here is the text from the second error (after "Quit" is clicked):

CodeSee the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.Collections.ArrayList.ArrayListEnumeratorSimple.MoveNext()
   at System.Windows.Forms.Application.ExitInternal()
   at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at ..ч.ζ(Object , Message& )
   at ..WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5472 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
VideoThumbnailsMaker
    Assembly Version: 5.0.0.3
    Win32 Version: 5.0.0.3
    CodeBase: file:///C:/Program%20Files%20(x86)/Video%20Thumbnails%20Maker/VideoThumbnailsMaker.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
DirectShowLib-2005
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Video%20Thumbnails%20Maker/DirectShowLib-2005.DLL
----------------------------------------
System.Management
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5476 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

 
suu-designDate: Monday, 2013-11-04, 3:17 PM | Message # 2
Admin
Group: Administrators
Messages: 593
Status: Offline
Hello.
1) What is written in the Diag.log file in the program's folder after that crash?
2) Please make sure you run the program with admin rights.
 
AimhereDate: Sunday, 2013-11-10, 10:15 AM | Message # 3
Group: Users
Messages: 7
Status: Offline
Okay, I think I have it working now. After you mentioned admin rights, I decided to try running the installer as Admin, and now 5.0.0.3 works correctly every time it's launched (not just the first time).

Thing is, I never had to deliberately run the installer as Admin before (5.0.0.1 worked just fine when its installer was run normally, not as Admin). So what changed?

For what it's worth, the Diag.log file (after a previous failure of 5.0.0.3) did mention "can't access the Registry (for deleting)" and "Can't load options from Registry", both of which would indicate a permissions issue. But since installing 5.0.0.3 as Admin, and running it successfully, Diag.log has not been updated by the app.


Message edited by Aimhere - Sunday, 2013-11-10, 10:15 AM
 
suu-designDate: Sunday, 2013-11-10, 12:23 PM | Message # 4
Admin
Group: Administrators
Messages: 593
Status: Offline
Thanks for your reply.
I will review the code.
 
suu-designDate: Friday, 2014-06-06, 5:08 PM | Message # 5
Admin
Group: Administrators
Messages: 593
Status: Offline
My advice is to setup VTM into a folder in which current user has permission to write.
 
Old Official Forum » Projects » Video Thumbnails Maker by Scorp » Crash at startup
Page 1 of 11
Search:

Make a free website with uCoz
SUU Design © Copyright 2007-2013