McoreD / ShareXmod

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

crash on send-to #94

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.tried to right click send-to a .txt file
2.program gave me a crash report
3.

What is the expected output? What do you see instead?
sent to sharexmod and then remote uploaded, got a crash

What version of the product are you using? On what operating system?
7.2r336

Please provide any additional information below.

System.NullReferenceException: Object reference not set to an instance of an 
object.
   at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
   at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
   at System.Windows.Forms.Control.Invoke(Delegate method)
   at ShareX.Program.SingleInstanceCallback(Object sender, InstanceCallbackEventArgs args) in d:\Dev\ShareXmod\trunk\ShareX\Program.cs:line 276
   at SingleInstanceApplication.ApplicationInstanceManager.WaitOrTimerCallback(Object state, Boolean timedOut)
   at System.Threading._ThreadPoolWaitOrTimerCallback.WaitOrTimerCallback_Context(Object state, Boolean timedOut)
   at System.Threading._ThreadPoolWaitOrTimerCallback.WaitOrTimerCallback_Context_f(Object state)
   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, Boolean ignoreSyncCtx)
   at System.Threading._ThreadPoolWaitOrTimerCallback.PerformWaitOrTimerCallback(Object state, Boolean timedOut)

Original issue reported on code.google.com by madL...@gmail.com on 17 Apr 2013 at 1:37

GoogleCodeExporter commented 9 years ago
@mcored: Add this line to ShareXmod Program.cs:
https://dl.dropbox.com/u/14076298/ShareX/2013/04/Xs6hhmCLDx.png
I can't add myself because ShareXmod solution not compileable because of reason 
i told you in commit comments before.

Original comment by flexy...@gmail.com on 27 Apr 2013 at 4:15

GoogleCodeExporter commented 9 years ago
Thanks Berk; however, I did not think it was necessary to do the 
null/isDisposed check because in my get property for MainForm I do check it: 

        public static MainForm Main
        {
            get
            {
                if (_MainForm == null || _MainForm.IsDisposed)
                    _MainForm = new MainForm() { Icon = Resources.ShareX };

                return _MainForm;
            }
            set
            {
                _MainForm = value;
            }
        }

It is strange. 

Original comment by mcored on 27 Apr 2013 at 9:10

GoogleCodeExporter commented 9 years ago

Original comment by mcored on 28 Apr 2013 at 1:27

GoogleCodeExporter commented 9 years ago
madLyfe, try this: 
https://dl.dropbox.com/u/25501373/ShareXmod/2013-04/27/ShareXmod-7.2.3.348-setup
.exe

It should not happen again. If it does, please let us know!

Original comment by mcored on 28 Apr 2013 at 8:15