I am using bedtools subtract with large datasets and it keeps crashing, giving the following error

    terminate called after throwing an instance of 'std::bad_alloc'

Is there a way to get over this problem in bedtools?

Alternatively is there any other way to find non-overlapping regions for two bed files?

thanks
<p>bedtools intersect -v</p>
