From: Jim I. <ji...@ap...> - 2002-03-22 18:33:17
|
Andreas, I am still confused. ResError should definitely have returned the resource not found error when we went to look up the cfrg resource, and we should never have gotten into the look that was slow for you. Humm... Jim On Thursday, March 21, 2002, at 11:18 PM, Andreas Otto wrote: > > > > Hi, > > I put > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> > resource 'cfrg' (0) { > { > kPowerPCCFragArch, /* runtime environment */ > kIsCompleteCFrag, /* base-level library */ > kNoVersionNum, /* current version number*/ > kNoVersionNum, /* oldest definition version number */ > kDefaultStackSize, /* use default stack size */ > kNoAppSubFolder, /* no library directory */ > kImportLibraryCFrag, /* fragment is a library */ > kDataForkCFragLocator, /* fragment is in the data fork */ > kZeroOffset, /* beginning offset of fragment */ > kCFragGoesToEOF, /* ending offset of fragment */ > "StdLib" /* name of the fragment*/ > } > }; > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< > > in the resource file and it works. > > But CW does not create it I don't know why > > The problem was: > > 1) first the shared Lib was created without resources > -> loading time was fast > > 2) I opened the file with ResEdit > -> ResEdit add an empty resource ( no crfg ) > -> loading time was slow > > 3) the problem was, I had the same libs but sometimes > the loading time was fast and than the loading time was slow > I use a Linux mounted directory for development > ( I work on the same tree in Linux, UNIX, Windows and now Mac) > > 4) If I copy and rename a lib the loading time was fast because the > resource is not part of the lib it is stored in the .AppleDouble > directory > > 5) If you compare the 2 libs on Unix with "cmp" both are absolute > identical > > 6) My brain was stressed to figure out a valid solution which fits > all conditions above > > 7) I add a resource file. CW still does not add the cfrg resource into > the file. All resources from the file were added but crfg not > > 8) after some research on the internet I add the solution above > into the resource file > > ===> that works > > > mfg > > aotto :) > > > -- Jim Ingham ji...@ap... Developer Tools - gdb Apple Computer |