Hi,
  I have a bus error with the following code on a Palm VIIx (PalmOS 3.5.0).
  I do the test on the emulator 3.08a on a Mac with the debug ROM.
  Can anyone help me?

Thanks,
Nourredine



  TGF_UINT32 supportedDepths;
  Err err = WinScreenMode(winScreenModeGetSupportedDepths,
            NULL, NULL, &supportedDepths, NULL);
 
  // Get the best depth
 if (!err)
 {
  if (supportedDepths & 0x80)
  {
   supportedDepths = 8; 
  } 
  else if (supportedDepths & 0x08)
  {
   supportedDepths = 4;
  } 
  else if (supportedDepths & 0x02)
  {
   supportedDepths = 2; 
  } 
  else
  {
   supportedDepths = 1; 
  } 
 }
 err = WinScreenMode(winScreenModeSet, NULL, NULL, &supportedDepths, NULL);

--> Bus error

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to