Mailing Lists: Apple Mailing Lists

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

Re: CMGetProfileDescriptions problem



I assume CMGetProfileByAVID() returns no error? Otherwise, the "profile" could be garbage and may be the reason the follow-up call fails.

Where does the debugger say the crash occurs?

Kevin G.

Can some please help me find the error in this code:

int main(int argc, char* argv[])
{
OSStatus error;
char aName[256];
UInt32 aCount;
Str255 mName;
ScriptCode mCode;
UniChar uName[256];
UniCharCount uCount;
DisplayIDType mainID;
CMProfileRef profile;


error = DMGetDisplayIDByGDevice( GetMainDevice(), &mainID, true );


error = CMGetProfileByAVID( mainID, &profile );




error = CMGetProfileDescriptions( profile, aName, &aCount, mName, &mCode, uName, &uCount );
}


CMGetProfileDescriptions returns paramErr on PPC. On Intel it always crashes.

TIA,

Jan E. (going crazy)

_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >CMGetProfileDescriptions problem (From: "Jan E. Schotsman" <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.