Hi, I have searched for information and the behaviour of appending data to a file seems to involve a function called SetEOF, do you have any other information to provide, thanks.
Hi all, I was wondering why there aren't any emulators that can emulate PB and I was hoping to touch on this.
All I know is that it uses the 68000 PMU ASC and I would like to know how much it differs from the Mac Classic and if I can continue this work based on the MacSE emulation. Thanks guys.
Thank you, it works, what I meant was that malloc works fine without the need for an L after the number. on a side note, it's been a long time since I've seen code that needed an L after a number, I'm spoilt by modern compilers. LOL
Hi, I checked the SIZE, it's 1024, here is my code, I put NewPtr at the top of main, it doesn't complain about any errors, but once I use this space it triggers a system 25 error, which I know means out of memory :
MaxApplZone();
buff = (unsigned char*)NewPtr(128 * 1024);
if(buff == NULL)...
There is no code other than some window initialisation, no recursion or anything else.
By the way, is there a compiler that supports the C99 standard on a classic Mac? Declaring variables at the beginning is very cumbersome.
Hi, I have set the partition to 1024 but NewPtr and NewHandle both fail with the error message Insufficient Memory. My environment is SE with 4MB of RAM. in the end I was just hoping to get a 32KB space and it still fails.
Oh, and I've used MaxApplZone at the beginning of the programme.
Hi, I wrote just a small tool that implements the same functionality as ImportFl for minivmac, which I use because of the large amount of information linking NewPtr and malloc. Well, I set the Partition to 1024,it still doesn't work, what should I do to get 128K of space using NewPtr?
Sorry, I'm using Think C and I'm not sure how I should set the size of the allocated memory.
NewHandle also fails, which is a bit strange.
The reason I'm using 128K of RAM is that I have a homebrew emulator, but lack a way to import files, and I'm going to make that happen with this RAM.
Is this an emulator? I'm writing a software that uses large chunks of RAM, and I'm glad to see your post, by the way, I would really like to have a real Mac, but such machines don't exist in my area.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.