[quote="Ashley":26q1iwbk]Does the same thing happen with only loading from files and not using any resources at all? i.e. if in the example you sent, you change Load Resource to Load File, and delete all the resources? Does it only crash after separately running and closing the preview a few times? (that would suggest a memory leak)
It works fine for me, loading from files (resources aren't set up right when you move the .cap to another computer)[/quote:26q1iwbk]
Yes, same thing happens when just loading a file with no resources.
Even after turning off my computer yesterday and turning it on right now, the problem is still there. I used to be able to load from an external file, but it will no longer let me no matter what. Now I can't load any
wavs without it crashing on me.
"Does it only crash after separately running and closing the preview a few times?"
Well, I guess. I mean, it worked a few times with each thing after previewing it. I mean, first I had it set up so that it loads the second file from the resource. After previewing the game a few times, that stopped working (instant crash on preview, message saying to report the bug to Scirra). I then thought I could possibly load a third file into the resources to avoid that crash message, but that didn't work.
Then I just decided to load the file externally, and eventually after previewing a few times, that crashed as well and now I can't load a wav from inside or outside Construct at all. It's just crashing no matter what.
Edit: Strangely enough, if I set it up so that it loads an external wav file into a channel when I press a button rather than at the start of the layout, it doesn't crash.
I've somewhat averted this crash like that, for things that require playing a sound effect. For example, I made it so that the "shoot" button both loads the file into a channel then plays it, all in the same event.
Before I had it so that it only loads the file into a channel at the start of the layout, and plays when the button is pressed.
I also tried the way deadeye had it set up in his cap file, where he loaded a wav into a channel when the channel isn't playing.That gives me the "this may be a bug. report it to Scirra" error message.
In fact, here. Here are the error messages depending on how I load the wav into the channel.
Again, these messages are both the first thing that pops up as soon as I click the debug layout button.
Clicking the preview button just gives me an error message saying that an unexpected error occurred and that I should go to the debugger to find more info. Of coarse, when I do that, I get the above messages.