Exceptions was: Exception locking surface - lockCanvas() returns a null?

by Ward Willats » Sat, 11 Apr 2009 22:49:39 GMT


Sponsored Links
 


Hi Stoyan:

What is your reasoning here? Why would  it be preferred to make the 
runtime setup two exception frames? That has to be more expensive 
than a simple test against null?

I mean, I see there is some exception type safety in the two frame 
approach, but is there some horrible hole in the single frame method? 
or is two frames just "taste" ?

-- Ward

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. ALSA sound lib

hi...

i installed the alsa_sound and alsa-lib on android. now i can't boot.

someone know that?

that's my error message when i boot

[42949578.080000] snd_imx_pcm_open Playback stream @:
0xd39cbb00
[42949578.090000] imx_ssi_get_dma_tx_channel =
13
[42949578.090000] playback
supported


the logcat is:

E/ALSALib ( 1975): external/alsa-lib/src/control/control.c:909:
(snd_ctl_open_noupdate) Invalid CTL
AndroidPlayback
E/AudioHardwareALSA( 1975): Unable to attach mixer to device
AndroidPlayback: No such file or
directory
E/ALSALib ( 1975): external/alsa-lib/src/control/control.c:909:
(snd_ctl_open_noupdate) Invalid CTL
AndroidRecord
E/AudioHardwareALSA( 1975): Unable to attach mixer to device
AndroidRecord: No such file or
directory
D/AudioHardwareALSA( 1975): Mixer: element name:
'Master'
D/AudioHardwareALSA( 1975): Mixer: master 'PCM' not
found.
D/AudioHardwareALSA( 1975): Mixer: route 'Earpiece' not
found.
D/AudioHardwareALSA( 1975): Mixer: route 'Speaker' not
found.
D/AudioHardwareALSA( 1975): Mixer: route 'Bluetooth' not
found.
D/AudioHardwareALSA( 1975): Mixer: route 'Headphone' not
found.
D/AudioHardwareALS[42949658.580000] snd_imx_pcm_open Playback stream
@:
0xd39cbb00
A( 1975): Mixer: route 'Bluetoot[42949658.590000]
imx_ssi_get_dma_tx_channel =
13
h A2DP' not
found.
D/AudioHardw[42949658.600000] playback
supported
areALSA( 1975): Mixer: master 'Capture' not
found.
D/AudioHardwareALSA( 1975): Mixer: route 'Capture' not
found.
D/AudioHardwareALSA( 1975): Mixer: route '' not
found.
D/AudioHardwareALSA( 1975): Mixer: route 'Bluetooth Capture' not
found.
D/AudioHardwareALSA( 1975): Mixer: route 'Capture' not
found.
D/AudioHardwareALSA( 1975): Mixer: route 'Bluetooth A2DP Capture' not
found.
D/AudioHardwareALSA( 1975): mixer
initialized.
E/ALSALib ( 1975): external/alsa-lib/src/pcm/pcm.c:2201:
(snd_pcm_open_noupdate) Unknown PCM
AndroidPlayback
I/AudioHardwareALSA( 1975): Initialized ALSA PLAYBACK device hw:
00,0
D/AudioHardwareALSA( 1975): Set PLAYBACK PCM format to S16_LE (Signed
16 bit Little
Endian)
D/AudioHardwareALSA( 1975): Using 2 channels for
PLAYBACK.
D/AudioHardwareALSA( 1975): Set PLAYBACK sample rate to 44100
HZ
E/AudioHardwareALSA( 1975): Unable to set buffer size to 16384:
Invalid argument
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. zoomcontrol position in a mapView

Could we with the 1.5 sdk change the position of the zoomcontrol in a
mapView as The setBuidInZoomControls (different of getControl()method
is not a child of a view?

thanks

--~--~---------~--~----~------------~-------~--~----~

3. global variable and get website address question

4. Is Calendar App exists in Android SDK 1.5?

5. DALVIK only - porting on new arch

6. Book: Web On-The-Go

7. Activity not found... sometimes!