Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is there something wrong with the flash importer?



Here's my problem: I create a file "empty.swf". To this file I write just one byte 0x20 (space character).

THen I run the following code:

int main()
{
   InitializeQTML( NULL );
   EnterMovies();

   char strFilePath[1024];
   sprintf( strFilePath, "%s", "empty.swf" );

FSSpec objFileSpec;
NativePathNameToFSSpec( strFilePath, &objFileSpec, kErrorIfFileNotFound );


   Movie objMovie = NULL;
   short intRefNum;
   SInt8 intPerm = fsCurPerm;
   OSErr e = OpenMovieFile( &objFileSpec, &intRefNum, intPerm );

e = NewMovieFromFile( &objMovie, intRefNum, nil, nil, newMovieActive, nil );

   if (e != noErr)
       printf("\nFailed to open");

   if (objMovie)
       DisposeMovie( objMovie );

ExitMovies();
TerminateQTML();
return 0;
}


And it hangs on NewMovieFromFile(). I tried it on a virtual machine and it didn't hang, just returned error -50 ("error in user parameter list", what is it anyway?). Does anyone get similar behaviour?

Thank to all you who read this!!!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.