Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled exception when opening .md file from explorer #229

Closed
tathamoddie opened this issue Apr 27, 2012 · 2 comments
Closed

Unhandled exception when opening .md file from explorer #229

tathamoddie opened this issue Apr 27, 2012 · 2 comments

Comments

@tathamoddie
Copy link

System.ArgumentOutOfRangeException was unhandled
  HResult=-2146233086
  Message=Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  Source=mscorlib
  ParamName=index
  StackTrace:
       at System.ThrowHelper.ThrowArgumentOutOfRangeException()
       at System.Collections.Generic.List`1.RemoveAt(Int32 index)
       at MarkPad.Shell.JumpListIntegration.OpenFileAsync(String openedFile)
       at MarkPad.Shell.JumpListIntegration.<>c__DisplayClass1.<Handle>b__0(Object param0)
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart(Object obj)
  InnerException: 
@JakeGinnivan
Copy link
Member

Just a guess, you have not opened a file through markpad yet? Should be a simple fix.

See if opening a file first in Markpad, then open from explorer should work after that.

Cheers,
Jake

-----Original Message-----
From: Tatham Oddie [mailto:reply@reply.github.com]
Sent: Friday, 27 April 2012 8:48 AM
To: Jake Ginnivan
Subject: [DownmarkerWPF] Unhandled exception when opening .md file from explorer (#229)

System.ArgumentOutOfRangeException was unhandled
HResult=-2146233086
Message=Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Source=mscorlib
ParamName=index
StackTrace:
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.RemoveAt(Int32 index)
at MarkPad.Shell.JumpListIntegration.OpenFileAsync(String openedFile)
at MarkPad.Shell.JumpListIntegration.<>c__DisplayClass1.b__0(Object param0)
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)
InnerException:


Reply to this email directly or view it on GitHub:
#229

@shiftkey
Copy link
Member

If someone wants to investigate, this is where I suspect the issue is occurring: https://github.com/Code52/DownmarkerWPF/blob/master/src/MarkPad/Shell/JumpListIntegration.cs#L49

JakeGinnivan pushed a commit to JakeGinnivan/DownmarkerWPF that referenced this issue May 21, 2012
JakeGinnivan pushed a commit that referenced this issue May 23, 2012
Hopefully fixed crash when openeing from explorer #229
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants