home *** CD-ROM | disk | FTP | other *** search
- Path: clobber.unterland.de!not-for-mail
- Newsgroups: comp.sys.amiga.programmer
- From: "Martin Biallas" <billy@clobber.unterland.de>
- Date: Sat, 20 Jan 1996 13:58:58 +0100
- X-NewsReader: IntuiNews 1.3a (7.9.95)
- Subject: Q: Whats so special about RKMs View example?? I need Help!
- Message-ID: <42386127@clobber.unterland.de>
-
- Hello!
-
- In the RKM Libraries on page 556 is the example how you create your own view (in
- fact one viewport for the view).
- This example seemd very interesting to me. So I decided to code it. Because "my"
- language is assembler, I had to translate this whole example.
- Now it is finished, and it works ... very strage! :) Probably I ve made somewhere
- an failure in my translation. But I seeked for an error but I found nothing!
-
- Therefore I would like to ask, if someone is here who can help me. You don t have
- to be an assembler coder to help me, it s enough if you can describe in words what
- a C line means.
-
- As said above, the language C is not familiar to me. Maybe there is somewhere a
- line I had misunderstood ... which line could this be?
-
-
- Perhaps a description of the failure could help ...
- At the beginning everything is ok. I allocate memory for all structure I need and
- for my bitplane (two colors). The bitplane memory is located in chip mem, the other
- things are in pub mem, and every allocated mem is cleared.
- Every library call that returns a value returns the correct one (i.e. no error).
- Somewhere in the middle of my code I call Loadview.
- It seems to work so far; my worbenchscreen disappeares. After I had loaded the old
- view, my wbscreen was back, again.
- The first problem is: my view isn t empty. On the screen is either garbage or there
- is a very distorted picture of an other screen.
- Next problem: When I free all memory I allocated before, the amiga crashes.
-
- The last problem is, in my point of view, the most confusing. But it could indicate
- an error in my code.
- When I start my code over and over again (for that purpose I hadn t freed my
- memory, so the amiga didn t crashes while the code-cleanup), it even crashed a few
- times.
- A closer look with the debugger showed me, that sometimes the MrgCop call fails.
- Somewhere within the routine a priviledge error occurs. (move.w yx,sr).
-
- Thats all.
-
-
- Ok then ... thanks in advance and have a nice day!
-
-
-
- Bye ...
-
- Martin
- billy@clobber.unterland.de
- To get my PGP Pubkey send a mail with Subject 'SendPGP'.
-