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: Virtual table problems - Solved, but new problem arisen



There is an option within CW which allow's it to either treat enums as ints
or use a data type which fits the size of the enum in your case a char.

Maybe sticking with CW, would be an option ???, and then you can debug your
header files :-).

Mark.

>> The bad access signal is probably because m_ePersonType is out of
>> range. Try adding a
>>
>> printf ("%d", m_ePersonType);
>>
>> immediately before that line. Also, make sure you have initialised
>> m_ePersonType.
>
> Turned out to be that CodeWarrior used chars for enums and gcc used a
> long. The initaliser was putting 0x08000000 into the value instead of
> 0x00000008, and was consequently out of bounds on the array. It looks
> like I have a large number of enums like this being both read and
> written to deal with :/
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.



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.