Historique des modifications - Message

Message #11812

Sujet: Problème de création de pointeur


Type Date Auteur Contenu
Dernière modification 22-05-2017 21:35:43 Magun
edit: ok ! smile
ps:
You don't check if play2D returns a valid pointer. According to the docs Only returns a pointer to an ISound if the parameters 'track', 'startPaused' or 'enableSoundEffects' have been set to true. Note: if this method returns an ISound as result, you HAVE to call ISound::drop() after you don't need the ISound interface anymore. Otherwise this will cause memory waste. This method also may return 0 altough 'track', 'startPaused' or 'enableSoundEffects' have been set to true, if the sound could not be played.
Création du message 22-05-2017 21:32:25 Magun
edit: ok ! smile
ps:
You don't check if play2D returns a valid pointer. According to the docs Only returns a pointer to an ISound if the parameters 'track', 'startPaused' or 'enableSoundEffects' have been set to true. Note: if this method returns an ISound as result, you HAVE to call ISound::drop() after you don't need the ISound interface anymore. Otherwise this will cause memory waste. This method also may return 0 altough 'track', 'startPaused' or 'enableSoundEffects' have been set to true, if the sound could not be played.

Retour

Options Liens officiels Caractéristiques Statistiques Communauté
Préférences cookies
Corrections
irrlicht
irrklang
irredit
irrxml
Propulsé par Django
xhtml 1.0
css 2.1
884 membres
1440 sujets
11337 messages
Dernier membre inscrit: Saidov17
131 invités en ligne
membre en ligne: -
RSS Feed