> I have two builds of my prc, a debug and a
> release.
Sounds good. Are you using CodeWarrior? If so, I assume you have two
targets.
> A different prc uses DmGet1Resource('tAIN', 1000) to get the
> prcs name and uses it.
What do you mean "a different prc"? If it's another app, it'll have to open
your apps database before it can access your resources.
> Under debug mode this call doesn't fail but if I
> recompile and link for release mode this function fails. I compared the
> compiler and linkers settings and I can't see a difference.
Check that the resource file with the tAIN 1000 resource is included in both
targets. Switch to the Files tab in the project window. Look for the
bull's-eye column and make sure there's a dot next to your resource file no
matter which target is selected in the pop-up list at the top.
Maybe you're opening another database after your app's database gets opened
by the OS. Try using DmGetResource and see if that makes a difference. Also,
trying inspecting your prcs using Insider or some other on-device resource
viewer/editor.
-
Danny
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/