Thore
-------- Original-Nachricht --------
> Datum: Sat, 25 Jun 2011 20:14:28 +0200
> Von: "Thore Sittly" <TSi...@gmx.de>
> An: jam...@googlegroups.com
> Betreff: Thread.sleep causes crash
--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
I finally fixed this problem!
The problem was CreateNewProcTags creats 68k Processes on MorphOS, so I added PPC specific parameters. Also I added typecasts to avoid nasty warning messages.
Now TestWindow.class will run on MorphOS version without changing the class!
Here my changes for MorphOS:
In JAmigaNotifyProcess:
struct Process *me = FindTask(0);
struct NotifyProcessData *npd = me->pr_ExitData; /* via parent */
changed to:
struct Process *me = (struct Process *)FindTask(NULL);
struct NotifyProcessData *npd = (struct NotifyProcessData *)me->pr_ExitData; /* via parent */
And in JAmigaWaitTime added a MorphOS section:
....
TAG_END);
#elif (JA_TARGETOS == JA_MORPHOS)
subProc = CreateNewProcTags(
NP_Entry, (int)&JAmigaNotifyProcess,
NP_Name, "JAmigaNotifyProcess",
NP_ExitData, &npd, /* share data with children. */
NP_CodeType, CODETYPE_PPC,
NP_PPCStackSize, 32768,
TAG_END);
#else
subProc = CreateNewProcTags(
....
Jamiga becomes fun on MorphOS now :)
Regards
Thore
-------- Original-Nachricht --------
> Datum: Sun, 26 Jun 2011 13:38:23 +0200
> Von: "Thore Sittly" <TSi...@gmx.de>
> An: jam...@googlegroups.com
> Betreff: Re: Thread.sleep causes crash