SlickEdit Community

SlickEdit Product Discussion => SlickEditĀ® => Slick-CĀ® Macro Programming => Topic started by: Aaron on August 22, 2006, 07:33:29 pm

Title: Any way to disable larage array warning for a macro function?
Post by: Aaron on August 22, 2006, 07:33:29 pm
I have a function that will (intentionally) result in a very large array being created.  Is there any way to tell SlickEdit to bypass the warning so that my macro is not interrupted?
Title: Re: Any way to disable larage array warning for a macro function?
Post by: Dennis on September 22, 2006, 01:55:50 pm
If you haven't upgraded to 11.0.x, that might be a good first step, we increased the threshold tenfold.

But, to disable it temporarily, do this:
Code: [Select]
   // save original setting and set your max to the size array you need
   int orig_max = _default_option(VSOPTION_WARNING_ARRAY_SIZE);
   _default_option(VSOPTION_WARNING_ARRAY_SIZE, new_max);

   // do your thing

   // restore it to previous setting
   _default_option(VSOPTION_WARNING_ARRAY_SIZE, orig_max);