Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.apple2.programmer > #5482
| From | Stephen Heumann <stephen.heumann@gmail.com> |
|---|---|
| Newsgroups | comp.sys.apple2.programmer |
| Subject | Re: Orca/C malloc |
| Date | 2020-04-05 22:55 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <r6e974$6r0$1@dont-email.me> (permalink) |
| References | <52f15c85-446d-4e31-af9b-a31fb050c756@googlegroups.com> <r6e299$8da$1@dont-email.me> <8404927a-2cd8-4d67-8327-6adc0ed148e1@googlegroups.com> |
On 2020-04-06 03:05:06 +0000, Chris Vavruska said: > I did some deeper diving and think part of the issue is that I am > loading code from a CodeResource and executing it. If I do that > MMStartUp return a zero value where as MMStartup returns a valid value. > I will take a look at the the orca/m release notes to see if I can > figure it out. You will definitely need to have a valid user ID in order to use malloc (since it internally calls NewHandle and needs to provide a user ID). If your code does not automatically get a user ID at startup, you may need to allocate one by calling GetNewID. You could then tell the ORCA libraries to use that ID by calling SystemUserID (documented in the ORCA/C manual or the ORCA/M release notes). -- Stephen Heumann
Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Orca/C malloc Chris Vavruska <vavruska@gmail.com> - 2020-04-05 13:28 -0700
Re: Orca/C malloc Stephen Heumann <stephen.heumann@gmail.com> - 2020-04-05 20:56 -0500
Re: Orca/C malloc Chris Vavruska <vavruska@gmail.com> - 2020-04-05 20:05 -0700
Re: Orca/C malloc Stephen Heumann <stephen.heumann@gmail.com> - 2020-04-05 22:55 -0500
Re: Orca/C malloc Chris Vavruska <vavruska@gmail.com> - 2020-04-06 16:14 -0700
Re: Orca/C malloc Chris Vavruska <vavruska@gmail.com> - 2020-04-06 16:35 -0700
Re: Orca/C malloc Stephen Heumann <stephen.heumann@gmail.com> - 2020-04-06 21:59 -0500
Re: Orca/C malloc Chris Vavruska <vavruska@gmail.com> - 2020-04-08 16:38 -0700
csiph-web