Ben Darnell wrote:
>
> I've commented out the call to ErrFatalDisplayIf() containing this
> message, and now everything works as expected. That fixes my problem,
> but the fact that the string was put in the wrong place should
> definitely be looked into. The code in question is:
> err=DmDatabaseInfo(...);
> ErrFatalDisplayIf(err, "Error from DmDatabaseInfo");
> I commented out the ErrFatalDisplayIf line, and it works. Is that
> string attempting to go into global space? Can string literals be used
> safely in hacks, or do they have to be loaded from resources?
No, literals cannot be used in hacks because they live in the
globals' space. Either you can load them as string resources with
DmGetResource or SysCopyStringResource, or allocate them locally,
a la
char error[] = "Error from DmDatabaseInfo";
(if you have enough space on the stack).
I'm not sure what error 4275 is, though...
Regards,
Daniel.