Author Topic: Any way to disable larage array warning for a macro function?  (Read 8062 times)

Aaron

  • Guest
Any way to disable larage array warning for a macro function?
« 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?

Dennis

  • Senior Community Member
  • Posts: 3960
  • Hero Points: 517
Re: Any way to disable larage array warning for a macro function?
« Reply #1 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);