3.1.2 crash when reading sprites - SOLVED (probably)

Started by EnterTheStory (aka tolworthy), Sun 31/01/2010 23:42:30

Previous topic - Next topic

EnterTheStory (aka tolworthy)

I'm on day 2 of converting my games from 2.72 to 3.12, and the editor tends to crash when trying to access some sprites. Maybe 1 out of every 500 sprites is affected. The sprites work fine in 2.72, and I can't change or remove them in 3.1.2 because whenever I open the sprite manager to see them the whole thing falls over. Any suggestions?
Code: ags
---------------------------
Application Error
---------------------------
An unexpected error occurred. See below for details.

System.ComponentModel.Win32Exception: Error creating window handle.

   at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)

   at System.Windows.Forms.Control.CreateHandle()

   at System.Windows.Forms.ToolStripDropDown.CreateHandle()

   at System.Windows.Forms.Control.get_Handle()

   at System.Windows.Forms.ToolStripManager.ModalMenuFilter.PreFilterMessage(Message& m)

   at System.Windows.Forms.Application.ThreadContext.ProcessFilters(MSG& msg, Boolean& modified)

   at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)

   at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FPreTranslateMessage(MSG& msg)

   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)

   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)

   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)

   at System.Windows.Forms.Application.Run(Form mainForm)

   at AGS.Editor.Program.RunApplication(String[] args)
---------------------------
OK   
---------------------------

SSH

Have you set up the program to use for editing the sprites in the AGS preferences? Becuase that looks to be that AGS is trying to launch your sprite editor program when you double click a sprite and its perhaps not configured properly if you're only just upgrading?
12

EnterTheStory (aka tolworthy)

Ah that sounds likely. (I'm ever so impressed that you can read that code - it's all sanskrit to me. Your avatar shows someone on a swing. I feel like I'm the toddler at the swing park looking up enviously).

When I converted the next game I paid extra special attention to any sprite warnings. The exact same sprites were listed as "not found" when converting games. Yet this time I looked straightaway, and the "not found" sprites were there. Later I loaded the original crashed game, and this time it found the missing sprites as if nothing was ever wrong. I think the tech gods are just playing with my feelings. :(

On the bright side, I know that I only post here to moan and complain, but 3.1.2 looks pretty good so far. The deal maker for me was the ability to change translations on the fly - this was turning out to be a much bigger problem than I expected in 2.72. And a big thank you to Electroshokker for the Linux runtime - that was the main reason for my not upgrading before. Now I just need to persuade all users to download the games one more time. Hopefully the new graphics filters and different approach to blocking won't cause unexpected challenges.

Pumaman

Quote
System.ComponentModel.Win32Exception: Error creating window handle.

Hmm strange, I don't think I've seen this error reported before. Has anyone else had this problem?

SMF spam blocked by CleanTalk