At 22:32 2002-10-9 -0400, you wrote: >This is a debug build so optimizations are turned off. I'd can't change >the constructor for the Contact class since it's being created by the >Sybase Ultralite generator, although I could subclass if that makes any >difference.
I wish I knew what was happening... I just checked the compiler source code from the 8.3 build of the CW 68K compiler, and this compiler error happens when the 68K backend tries to convert an item that isn't four-bytes wide into a pointer. Normally, the compiler front-end should handle making sure that any conversions have the correct types on them going into the back-end, but something slipped through here. Without test source code, its going to be very difficult to tell what's happening and where its going wrong. >I've already thought of several ways to "work around" this bug, but I'd >rather not have to since I have other code that uses similar methods and >that would require making several architectural changes to our design. >I've played around with changing the order of initializing the classes but >that didn't seem to do anything. I was even willing to make the CDatabase >object a global by declaring: > >CDatabase tempDB; > >at the beginning of my CPP file, but that resulted in the internal >compiler error too. Hmmm, this is indicating that there's a problem with generating the constructor for CDatabase. This obviously doesn't happen all the time. Here's a quick question -- are you using 2-byte integers or 4-byte integers? All the POL code is built for 2-byte ints, and using 4-byte ints in your code along with a precompiled header could cause problems. >Unless there are any ideas for "quick" changes that might work, I'll begin >reworking the code. I've already spent a considerable amount of time on >this and even got to the point of changing variable names in the hopes >that some magic variable name would fix things. -- Ben Combee <[EMAIL PROTECTED]> CodeWarrior for Palm OS technical lead Palm OS programming help @ www.palmoswerks.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
