"N volume bar" Not able to interpret

TimeFrameMode( 2 ); 
TimeFrameSet( 50000 ); // 50'000 share bars.. 
//...do something ... 
TimeFrameRestore();

I got the concept of price compression by Time.

  1. But above example seems to compress price by Volume? I am not able to understand how to interpret it.

First thing comes to mind is: Compress price where Volume > 50K shares?

  1. TimeFrameSet() compresses OHLC V and OL. Does it compress Aux1 and Aux2 vars also?
  1. Yes - your first thought is OK. These are “equivolume” bars
  2. Aux fields are compressed according to rules set in File->Database Settings->Intraday Settings

I tried pasting the above code into the v6.27 editor, then verifying or plotting it, both with and without something meaningful replacing the '//...do something ...' line.
But AB closes down without a message.
After reading the notes about using TimeFrameSet with volume here - AFL Function Reference - TIMEFRAMEMODE - I tried various values such as TimeFrameSet (1000000), TimeFrameSet (10000000), TimeFrameSet (100000000).
The data set being used is the Australian XJO symbol in daily format supplied by Norgate and has volume figures in the 400,000,000 to 800,000,000 range.
Is something else needed to use TimeFrame commands with volume?