Overpass API developpement

Text archives Help


Re: [overpass] std::bad_alloc runtime error


Chronological Thread 
  • From: Roland Olbricht <roland.olbricht@gmx.de>
  • To: overpass@listes.openstreetmap.fr
  • Subject: Re: [overpass] std::bad_alloc runtime error
  • Date: Tue, 19 Apr 2016 08:17:35 +0200

Hi mmd,

> I'm currently thinking about the following, where "xxx" should be
> replaced by the actual limit previously set via set_limits.
>
>
> } catch (const std::bad_alloc& e) {
> rlimit limit;
> result = getrlimit(RLIMIT_AS, &limit);
> ...
> error_output.runtime_error(std::string("Query exceeded memory
> limit of xxx MB RAM."));
> }

Thakn you for the snippet. See 2587d090b9ba43f7b659e819ba1a4ddb8acf4cee.

Cheers,
Roland




Archive powered by MHonArc 2.6.18.

Top of page