[Gambas-user] sdl2 application

T Lee Davidson t.lee.davidson at gmail.com
Wed May 4 03:30:19 CEST 2022

On 5/3/22 15:15, Charles Bukowski wrote:
> Hi, I have tried your code but I am getting "Null Object" error at runtime at line  "audio.play(sample)", after selecting file 
> in Dialog.OpenFile().

Did you create the 'audio' object in the TestAudioPlay form's Open event?

If yes, then immediately prior to "audio.play(sample)", insert the following two lines:
   Debug "sample is null:";; IsNull(sample)
   Debug "audio is null:";; IsNull(audio)

What is the output?


More information about the User mailing list