You are here: Home

XNA Community Thailand

XNA Webboard
ยินดีต้อนรับ, ผู้เยี่ยมชม
กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน.    ลืมรหัสผ่าน?
System.StackOverflowException occurred in Microsoft.Xna.Framework.Game.dll มีวิธีแก้มั๊ยค่ะ (1 viewing) (1) ผู้เยี่ยมชม
Go to bottom รายการถูกบันทึก: 0
หัวข้อ: System.StackOverflowException occurred in Microsoft.Xna.Framework.Game.dll มีวิธีแก้มั๊ยค่ะ
#1461
NgooNgi (สมาชิก)
Junior Boarder
กระทู้: 22
graphgraph
สมาชิกที่ไม่ได้ออนไลน์ Click here to see the profile of this user
System.StackOverflowException occurred in Microsoft.Xna.Framework.Game.dll มีวิธีแก้มั๊ยค่ะ 7 เดือน ที่ผ่านมา กรรม: 0  
System.StackOverflowException occurred in Microsoft.Xna.Framework.Game.dll
เป็น error ที่เกิดจากการ run ผล หลังจากการปิด application แล้วค่ะ พอจะมีวิธีแก้มั๊ยค่ะ
 
การบันทึก การบันทึก  
  The administrator has disabled public write access.
#1462
mankajib (ผู้ดูแลระบบ)
Moderator
กระทู้: 320
graph
สมาชิกที่ไม่ได้ออนไลน์ Click here to see the profile of this user
Re:System.StackOverflowException occurred in Microsoft.Xna.Framework.Game.dll มีวิธีแก้มั๊ยค่ะ 7 เดือน ที่ผ่านมา กรรม: 3  
ลองเช็คดูว่าใน method ==> Update() หรือ Draw()

มีการสร้าง object ในเมธอดนั้นหรือป่าว เพราะว่ามันวนลูปอยู่ตลอด
 
การบันทึก การบันทึก  
  The administrator has disabled public write access.
#1463
mighe (สมาชิก)
Fresh Boarder
กระทู้: 14
graphgraph
สมาชิกที่ไม่ได้ออนไลน์ Click here to see the profile of this user
Re:System.StackOverflowException occurred in Microsoft.Xna.Framework.Game.dll มีวิธีแก้มั๊ยค่ะ 7 เดือน ที่ผ่านมา กรรม: 0  
ชื่อก่อบอกล่ะว่า over แสดงว่าไปทำการวนลูปอะไรสักอย่างเอามากๆๆๆ จะ stack มันเต็ม
หาเองน่ะไม่เห็นโค้ด
ถ้าเห็นก็น่าช่วยได้มากกว่านี้
 
การบันทึก การบันทึก  
  The administrator has disabled public write access.
#1467
NgooNgi (สมาชิก)
Junior Boarder
กระทู้: 22
graphgraph
สมาชิกที่ไม่ได้ออนไลน์ Click here to see the profile of this user
Re:System.StackOverflowException occurred in Microsoft.Xna.Framework.Game.dll มีวิธีแก้มั๊ยค่ะ 6 เดือน, 4 วัน ที่ผ่านมา กรรม: 0  
ขอบคุณม๊ากกค่ะ ... สำหรับคำแนะนำ ตอนนี้แก้ไขได้แล้วค่ะ

มันผิดตรงบรรทัดนี้อ่ะค่ะ this.Exiting += new System.EventHandler(OnExiting); ใน Game1()

พอเอาบรรทัดนี้ออก มันก็ไม่ฟ้อง error แล้วอ่ะค่ะ
 
การบันทึก การบันทึก  
  The administrator has disabled public write access.
Go to top