Amiga.org

The "Not Quite Amiga but still computer related category" => Amiga Emulation => Topic started by: EDanaII on August 22, 2007, 05:00:11 PM

Title: Icon causes system to hang.
Post by: EDanaII on August 22, 2007, 05:00:11 PM
Running on WinUAE, using either an AmiKit config or just a plain OS3.9 configuration, I cannot run a custom program using an icon.

The program runs fine, without an icon, but when I associate it with an icon, it hangs the entire system. When I rename the program to match an pre-existing icon, I get the same results. IconEdit on AmiKit doesn't work, but works on OS3.9 and gives me the same results: system locks.

No clue why this is happening. I may be doing something fatally stupid. Any and all clues appreciated.

Ed.
Title: Re: Icon causes system to hang.
Post by: jj on August 22, 2007, 05:17:24 PM
Stack ?
Title: Re: Icon causes system to hang.
Post by: EDanaII on August 22, 2007, 05:51:24 PM
No. At least I don't think so. The CLI stack is set to 8k. One of the icons I'm trying is also set to 8k. Running from the CLI works, but the icon (still) doesn't.
Title: Re: Icon causes system to hang.
Post by: amipal on August 22, 2007, 06:22:14 PM
Are the any tooltypes associated with the icon that don't get set when run from CLI?
Title: Re: Icon causes system to hang.
Post by: Matt_H on August 22, 2007, 07:20:07 PM
What program is it? Some badly-ported shell tools will crash the machine if run from Workbench. Change the 'Start From:' cycle gadget to Shell and add the tootype DONOTPROMPT if you don't want the 'Execute Command...' dialog to come up.
Title: Re: Icon causes system to hang.
Post by: EDanaII on August 22, 2007, 08:28:43 PM
It's an old workbench based game that I decided to give a face-lift too, so that shouldn't be the issue.


@ amipal

I'm not specifying any tooltypes.

Ed.
Title: Re: Icon causes system to hang.
Post by: AmigaMance on August 22, 2007, 09:05:40 PM
Edit: deleted
 I just noticed Matt_H's post. His advice is good. It should work.
Title: Re: Icon causes system to hang.
Post by: EDanaII on August 22, 2007, 10:22:45 PM
Sorry, but I'm not being clear.

It is a Workbench based program, not CLI, that I can launch from the CLI or the Workbench using a default icon, but I cannot launch it using a ".info" icon. When I launch it from the CLI, I have 8k of stack, so I do not think that is the issue.

The original program, before I upgraded launches from an icon fine. My new version, launches fine, except when I use the original ".info" icon or when I use my own custom ".info" icon. But for that small difference, everything works, without issues.

I, BTW, cannot change the stack in either the original or newer icon. I change the value, then save, quit and then reload the icon and it still contians the original values.

Ed.
Title: Re: Icon causes system to hang.
Post by: Matt_H on August 23, 2007, 02:17:32 AM
If you've been rewriting code, then it seems pretty likely there's a bug hiding somewhere. Try a debugger, or possibly SnoopDos (enable all functions) to see where things are going wrong.

If it is a stack issue, be sure to press Enter after increasing the stack value - sometimes the string gadgets get dumb and only actually change if you do that.
Title: Re: Icon causes system to hang.
Post by: Merc on August 23, 2007, 02:37:12 AM
What if you move your custom icon aside, show the game using show all files, and then drag the default icon into the Information window for the game, and then hit save?

That should give it a real icon with the default icon image -- I wonder if it would launch properly then.

If so maybe you could then load that icon into your icon editor and paste in your custom icon.

That's all pure speculation but it might just work... :-)
Title: Re: Icon causes system to hang.
Post by: EDanaII on August 23, 2007, 06:38:21 AM
No, it's definitely a bug, Merc, just as Matt suggests. I've tried a number of different ways to create an icon and only my program dies when I create one for it.


@ Matt_H

The problem is, I'm using a cross compiler to do the work, so debuging isn't possible. Are there any stand alone debuggers out there?

Ed.
Title: Re: Icon causes system to hang.
Post by: Matt_H on August 23, 2007, 10:21:55 PM
@ EDanall

I'm not sure about what debuggers are available. vbcc and DICE are the only free Amiga C compilers I can think of, but I don't know if they include debuggers.

Maybe start a new thread in the Development forum?
Title: Re: Icon causes system to hang.
Post by: EDanaII on August 25, 2007, 02:47:13 AM
All right, I figured it out. Even though the original program did not use the Icon library, I needed to. Not sure why this is, but everything works as it should. :-)

Ed.
Title: Re: Icon causes system to hang.
Post by: Matt_H on August 25, 2007, 04:51:20 AM
Interesting. Congratulations on getting it working.