Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Code warrior for Mac > Re: GetDiskFrag...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 2178 of 2228
Post > Topic >>

Re: GetDiskFragment library name limited to 63 chars?

by "bg-greece" <byron@[EMAIL PROTECTED] > Nov 17, 2006 at 11:55 AM

I also tried the following code, using MoreFilesX.c, (I have omitted the
err != noErr and 
other variables). my_Path is a Posix path: "/Users/byron...."


FSRef dirFSRef;
FSSPec fss;
long ID;

err = FSPathMakeRef((const UInt8*)my_Path, &dirFSRef, NULL);
err = FSGetNodeID(&dirFSRef,&ID,NULL);
err = FSMakeFSSpec(0,ID,(const unsigned char*)"\pMyLib",&fss);
err = GetFiskFragment(&fss, 0, kCFragGoesToEOF, (const unsigned char*)"",
kLoadCFrag, 
&implCon, (Ptr*)&CFMFunc);

When my_Path is something like
/Users/byron/Desktop/MyApplication/MyPlugin, 
GetDiskFragment works fine. But when called from inside a Java application
bundle, where 
the path is more than 100 characters, GetFiskFragment fails with -2806. Is
there a 
character limit in the path we pass to FSPathMakeRef? If so, can we
overcome this?

Best
 




 3 Posts in Topic:
GetDiskFragment library name limited to 63 chars?
"bg-greece" <  2006-11-15 12:35:51 
Re: GetDiskFragment library name limited to 63 chars?
Paul Russell <prussell  2006-11-15 10:55:36 
Re: GetDiskFragment library name limited to 63 chars?
"bg-greece" <  2006-11-17 11:55:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Aug 29 13:56:05 CDT 2008.