It sounds like you've caused Datebook to overrun the 64K per segment limit (the
key clue is the phrase 'a little more code...'). You should resegment Datebook
to bring whichever segment is crossing the limit to below 64K. Open your project
settings, open the 68K Linker settings and select 'Generate Link Map'. A .MAP
file will be generated. Open this file in the IDE (it's a text file) and see
which segment is exceeding the figure (each segment's total is listed at the top
of the segment name). You will then need to go to the Segments tab in the
project and rearrange files to bring the size down. Keep in mind the rules for
multi-segmenting:
"The first segment MUST contain the "MSL Runtime Palm OS (xx).lib", your
application's PilotMain() function, and any code that is executed when
PilotMain() receives a launch command other than sysAppLaunchCmdNormalLaunch.
This stipulation is is necessary because A5-relative data is not relocated when
the application is called with any other launch code, causing all global
variable addresses to be incorrect. All other files can be in any other
segment."
There's a handy article in the Palm KB at
http://oasis.palm.com/dev/kb/papers/1469.cfm that with the above info and more.
-- jkl
----- Original Message -----
From: "Larry" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 8:55 PM
Subject: dmErrMemError???
> Hi.
>
> I'm having an odd problem. I'm modifing the datebook app. When I try
> to run the prc on
> the emulator or install it to a device over the console, I get an error
> 0x0201 (dmErrMemError).
> Anyone know what that means? I can usually comment out some code and it
> works, but once
> I add a little more code I get the error again.
>
> The exact error it gives me is
>
> "Could not install the Palm OS file "DateBook.prc" because Palm OS error
> 0x0201 (dmErrMemError)
> occurred.
>
> Thanks for the help
>
> Larry
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/tech/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/