You are on page 1of 3

System.IndexOutOfRangeException: Index was outside the bounds of the array.

at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& valu
e)
at DuckGame.Content.GetTex2D(Texture2D tex)
at DuckGame.MTSpriteBatch.DoDrawInternal(Texture2D texture, Vector4 destinati
onRectangle, Nullable`1 sourceRectangle, Color color, Single rotation, Vector2 o
rigin, SpriteEffects effect, Single depth, Boolean autoFlush, Material fx)
at DuckGame.MTSpriteBatch.Draw(Texture2D texture, Vector2 position, Nullable`
1 sourceRectangle, Color color, Single rotation, Vector2 origin, Vector2 scale,
SpriteEffects effect, Single depth)
at DuckGame.Graphics.Draw(Tex2D texture, Vec2 position, Nullable`1 sourceRect
angle, Color color, Single rotation, Vec2 origin, Vec2 scale, SpriteEffects effe
cts, Depth depth)
at DuckGame.SpriteMap.Draw()
at DuckGame.Graphics.Draw(Sprite g, Single x, Single y, Depth depth)
at DuckGame.BitmapFont.Draw(String text, Single xpos, Single ypos, Color c, D
epth deep, InputProfile input, Boolean colorSymbols)
at DuckGame.Graphics.DrawString(String text, Vec2 position, Color color, Dept
h depth, InputProfile pro)
at DuckGame.MonoMain.RunDraw(GameTime gameTime)
at DuckGame.MonoMain.Draw(GameTime gameTime)
at Microsoft.Xna.Framework.Game.DrawFrame()
at Microsoft.Xna.Framework.Game.Tick()
at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
at Microsoft.Xna.Framework.GameHost.OnIdle()
at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, Eve
ntArgs e)
at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.Unsafe
NativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.Uns
afeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int
32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 r
eason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason
, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Microsoft.Xna.Framework.WindowsGameHost.Run()
at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
at DuckGame.Program.Main(String[] args)
Date: 05/26/2015
Time Played: 00:00:11
Special Code: creating DuckGame.SnubbyPistol, DuckGame, Version=1.0.5624.3814, C
ulture=neutral, PublicKeyToken=null
Is Demo: False
Steam INIT Success!
System.InvalidOperationException: A previous Draw call threw an unhandled except
ion. See InnerException for details. ---> System.ObjectDisposedException: Cannot
access a disposed object.
Object name: 'RenderTarget2D'.
at Microsoft.Xna.Framework.Helpers.CheckDisposed(Object obj, IntPtr pComPtr)
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.SetRenderTargets(RenderTar
getBinding* pBindings, Int32 renderTargetCount)
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.SetRenderTarget(RenderTarg
et2D renderTarget)

at DuckGame.Graphics.SetRenderTarget(RenderTarget2D t)
at DuckGame.Layer.Begin(Boolean transparent, Boolean isTargetDraw)
at DuckGame.Layer.Draw(Boolean transparent, Boolean isTargetDraw)
at DuckGame.LayerCore.DrawTargetLayers()
at DuckGame.Level.DoDraw()
at DuckGame.Level.DrawCurrentLevel()
at DuckGame.MonoMain.RunDraw(GameTime gameTime)
at DuckGame.MonoMain.Draw(GameTime gameTime)
at Microsoft.Xna.Framework.Game.DrawFrame()
at Microsoft.Xna.Framework.Game.Paint(Object sender, EventArgs e)
at Microsoft.Xna.Framework.GameWindow.OnPaint()
at Microsoft.Xna.Framework.WindowsGameWindow.mainForm_Paint(Object sender, Pa
intEventArgs e)
--- End of inner exception stack trace --at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, Eve
ntArgs e)
at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.Unsafe
NativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.Uns
afeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int
32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 r
eason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason
, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Microsoft.Xna.Framework.WindowsGameHost.Run()
at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
at DuckGame.Program.Main(String[] args)
Date: 06/04/2015
Version: 1.0.5632.23566
Online: True
Editor: False
Time Played: 00:01:58
Special Code: 209
Is Demo: False
Steam INIT Success!
Steam INIT Success!
Steam INIT Success!
Steam INIT Success!
Steam INIT Success!
Steam INIT Success!
System.NullReferenceException: Object reference not set to an instance of an obj
ect.
at DuckGame.ProfileSelector.Open(Profile p)
at DuckGame.ProfileSelector.EditProfile(Profile p)
at DuckGame.HatSelector.Update()
at DuckGame.Thing.DoUpdate()
at DuckGame.Level.UpdateThings()
at DuckGame.Level.DoUpdate()
at DuckGame.Level.UpdateCurrentLevel()

at DuckGame.MonoMain.RunUpdate(GameTime gameTime)
at DuckGame.MonoMain.Update(GameTime gameTime)
at Microsoft.Xna.Framework.Game.Tick()
at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
at Microsoft.Xna.Framework.GameHost.OnIdle()
at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, Eve
ntArgs e)
at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.Unsafe
NativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.Uns
afeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int
32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 r
eason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason
, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Microsoft.Xna.Framework.WindowsGameHost.Run()
at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
at DuckGame.Program.Main(String[] args)
Date: 06/09/2015
Version: 1.0.5635.7731
Online: True
Editor: False
Time Played: 00:00:59
Special Code: 14
Is Demo: False

You might also like