Le 9 févr. 2012 à 14:22 Soir, Christian Schmitz a écrit: > What did you use exactly? This class can be used in several modes.
Yes, you're right, sorry. This is the call: Property CopyObject As CMFO1 'CMFO1 is a subclass of MacFileOperationMBS CopyObject=new CMFO1 CopyObject.MW1=self 'References the copy window, for callback CopyObject.CopyObject(Source,Target,"",2,1) 'Target is the target folder (not file) and is guaranteed to be empty in the beginning of the method. > Also did you check Status property with MacFileOperationStatusMBS class? > There is also an error property. > > Looks like calling CopyObject() sets last error on start of copy, so you know > it's working. If it fails later, you are noticed by StatusChanged event with > error code in status object. Yes. My subclass has this in the StatusChanged event (among other lines): if status.Error<>0 then LastErrorCode=status.Error 'LastErrorCode is a property in the subclass MW1.TH1.Resume 'Resume the copy thread Return end if Then, in the copy method, I check for both LastError and LastErrorCode. I'm also wondering if the two error properties (the one in the MacFileOperationStatusMBS and the one in MacFileOperationMBS) are independent or not. In 10.7.2, I'd get a -36 error code in such case. Now, the copy fails silently. The API could have changed? Thanks _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
