Failed to Queue Buffers Error

Hey! Recently I’ve run into a bizarre error with heaps involving io.

I am trying to write data to file “settings.ini” using:"res/settings.ini",data); 

where data is a string of content. This code compiles fine, but if it is ever executed during debugging
then on the next time I debug I am given the following error…

Failed to queue buffers: A003 (2)

Called from hxd.snd.openal.Driver.queueBuffer (hxd/snd/openal/Driver.hx line 153)
Called from hxd.snd.Manager.queueBuffer (hxd/snd/Manager.hx line 612)
Called from hxd.snd.Manager.update (hxd/snd/Manager.hx line 372)
Called from haxe.$MainLoop.tick (C:\HaxeToolkit\haxe\std/haxe/MainLoop.hx line 204)
Called from haxe.$MainLoop.~injectIntoEventLoop.0 (C:\HaxeToolkit\haxe\std/haxe/MainLoop.hx line 118)
Called from sys.thread.EventLoop.progress (C:\HaxeToolkit\haxe\std/sys/thread/EventLoop.hx line 114)
Called from hxd.$System.runMainLoop (hxd/System.hl.hx line 152)
Called from hxd.$System.runMainLoop (hxd/System.hl.hx line 142)
Called from haxe.$Timer.~delay.0 (C:\HaxeToolkit\haxe\std/haxe/Timer.hx line 144)
Called from haxe.$Timer.~constructor.0 (C:\HaxeToolkit\haxe\std/haxe/Timer.hx line 76)
Called from sys.thread.EventLoop.loop (C:\HaxeToolkit\haxe\std/sys/thread/EventLoop.hx line 150)
Called from sys.thread.Thread.$Thread_Impl.processEvents (C:\HaxeToolkit\haxe\std/hl/_std/sys/thread/Thread.hx line 62)

I am not certain why this error happens, or why it comes from a class related to audio of all things :confused:

Does anyone have any idea how to fix it?