I'm building the reverb project. Everything is word for word THE same in the book. Everytime I build and load. But once I press PLAY to test with the my audio sample, Â I get this error:
Unhandled exception at 0x086DBFBF (plsWorkReverb.dll) in RackAFX.exe: 0xC0000005: Access violation reading location 0x00000000.
What the ...
Thanks guys, its making me insane.
Appears you are using a NULL pointer or something isn't initialiazed; since it happens at play-time, then it is in processAudioFrame(). I would go into the debugger and place a breakpoint in processAudioFrame() and step through until you hit the line of code that is crashing - should be obvious. In less than a minute you will know what line is causing the crash. Without debugging, all you can do is guess, compile and pray. For a tutorial on debugging, scroll to the bottom of the video tutorial page here:
the very last video at the bottom shows how to debug another common problem where you have a faulty constructor and it crashes during construction time. Just move your area of focus to processAudioFrame() and you'll find it.
Also, you can download the code for all the book projects from the Downloads page and you can check against that code. But you should debug first to find out where the fault occurs.Â
Thanks so much for the quick help.
After checking the solution against your code, I found no differences, so I tried opening your entire reverb project and I got the same error. RackAFX stops working and gives the option to run the debugger which is where I get that error.Â
Could it be VS2012?
I downloaded the code from the Projects page and it compiles and runs fine in both Visual Studio 2008 and Visual Studio 2012 - no errors or faults. I am on Win7 though most of my students are on Win8 and running the reverb project. So, I am not sure where your problem lies though the error message indicates trying to use a NULL pointer or accessing a delay line that does not exist (most reverb components are made of delay lines). You will need to debug and find the line that's breaking for you. If you let me know which line in processAudioFrame breaks the reverb, let me know and I can try to shed light on it. Did you compile and run the code from my website or just do a visual comparison? Also, I am assuming you've built other projects from the book and they run fine? The reverb is a pretty complex one to take on as a first project.
Most Users Ever Online: 152
Currently Browsing this Page:
Guest Posters: 2
Moderators: W Pirkle: 693