I found a strange reading error when I create a Music instance and close the application, this error only performs when I run the standalone application (using Ctrl+F5 instead of F5).
I don't know what can be.
Here you can see a minimal code that reproduces this bug:
static void Main(string[] args) {
VideoMode vm = new VideoMode(320, 240);
RenderWindow app = new RenderWindow(vm, "SebaTest SFML");
app.Closed += new EventHandler(app_Closed);
Music mMusic = new Music("music.ogg");
while(app.IsOpened()) {
app.DispatchEvents();
app.Display();
}
}
static void app_Closed(object sender, EventArgs e) {
RenderWindow rw = (RenderWindow)sender;
rw.Close();
}
EDIT:
Now, I test it on my notebook with Windows7, and works. This only happens in my desktop machine for now, and under Windows XP.
EDIT 2:
Now, Again, I'm doing tests on my desktop machine, but under Windows7, and works fine, so looks like the problem was only under my WinXP. Is very strange, because I've already played (and programed) games with openal. :?