# \[Beginner\] Access violation in ~AudioTransportSource

**URL:** <https://forum.juce.com/t/beginner-access-violation-in-audiotransportsource/19000>\
**Category:** Audio Plugins\
**Created:** [September 8, 2016, 10:28am UTC](https://forum.juce.com/t/beginner-access-violation-in-audiotransportsource/19000 "2016-09-08T10:28:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![martinrobinson-2](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/martinrobinson-2/32/630_2.png) [@martinrobinson-2](https://forum.juce.com/u/martinrobinson-2)\
**Post date:** [September 12, 2016, 7:20am UTC](https://forum.juce.com/t/beginner-access-violation-in-audiotransportsource/19000/2 "2016-09-12T07:20:10Z")

</div>

Hi Wire,

Did you try the tutorial in a regular application first?

It looks like it’s crashing in your destructor, what’s happening in there or is it just empty?

BTW this seems related to this post:

> [@Using the AudioBuffer tutorial method in processBlock()](https://forum.juce.com/t/using-the-audiobuffer-tutorial-method-in-processblock/19034):
>
> Im basically wondering if the getNextAudioBlock() code (see below) from the tutorial “Looping audio using the AudioSampleBuffer class,” ([https://www.juce.com/doc/tutorial\_looping\_audio\_sample\_buffer](https://www.juce.com/doc/tutorial_looping_audio_sample_buffer)), can be used in processBlock(). Assuming that it is possible, since getNextAudioBlock() uses AudioSourceChannelInfo and processBlock() uses AudioBuffer, I think that’s where I’m having difficulty. I’ve tried so many different ways of using the AudioBuffer class, specifically with outputSamplesRemain…

---

_[View the full topic](https://forum.juce.com/t/beginner-access-violation-in-audiotransportsource/19000)._
