Article View: comp.sys.amiga.tech
Article #711Help with Multitasking and Multiple Windows
From: Flynn D. Fishman
Date: Fri, 04 Aug 1989 01:27
Date: Fri, 04 Aug 1989 01:27
47 lines
2750 bytes
2750 bytes
I have finally gotten around to cleaning up (finishing) some of my current
projects. One program in particular has become a real pain in the...
This program opens a screen and then spawns several tasks which in turn
open windows on the new screen.
The major problem is that the more tasks (actually process) I have running
the better chance I have of guruing (completely, no system message or
anything just a grey screen or fire workds)
If I put forbids or permits in key locations I can reduce this problem
(If I put a forbid at the start of each process the problem goes away). I am
currently hypothesing that some of the graphics routines I use have
some kind of contention. But this does not make sense to me since they
all use the rastport and therefore the Layers library which should lock
when necessary. The routines that I am using are:
RectFill, SetRast, SetAPen, Text, Move, Draw, WritePixel.
I also notice that sometimes when I refresh my gadgets in several windows at
the same time, not all of the gadgets text is updated.
I am using Manx 3.6a. I use no special flags except +c for the main line
of the processes (so I can safely do a geta4() ) and +cd in the link stage
since I have two images.
On this same topic are there any Manx commands that should be avoided when
multitasking? I notice that ran() sometimes returns a string of zeros when
multiple processes (with common memory) try to use it simultaneously
I also have suspicions about malloc. Are there any Manx functions
that should not be used in a Multitasking program?
Another question. If I have a borderless window with no Amiga gadgets and
set the NEWSIZE flag in the window, then when I call Size() I should
get a RESIZE message from Intuition. Why don't I?
If I am lucky I will get a REFRESH message but never a RESIZE one.
--
Since I am here anyways... I would just like to thank all those who
have posted to the net and have supplied me help in the past. I am
going to lose this account in about a week and do not know if I will
every have net access again (although I would really like to).
Good Bye and Thanks to all the net (even though none of you know who I am)
--
Flynn D. Fishman
ffishman @ lion @ watmath @ { ihnp4 | utzoo | A bunch more I can't remember }
The man without a signature or a home.
Technical Details
Message-ID:
<15645@watdragon.waterloo.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!watdragon!lion!ffishmanShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!watdragon!lion!ffishman From: ffishman@lion.waterloo.edu (Flynn D. Fishman) Newsgroups: comp.sys.amiga.tech Subject: Help with Multitasking and Multiple Windows Keywords: To many windows cause my program to smoke Message-ID: <15645@watdragon.waterloo.edu> Date: 4 Aug 89 01:27:11 GMT Sender: daemon@watdragon.waterloo.edu Distribution: comp Lines: 47