Skip to Content.
Sympa Menu

overpass - Re: [overpass] std::bad_alloc runtime error

Subject: Overpass API developpement

List archive

Re: [overpass] std::bad_alloc runtime error


Chronological Thread 
  • From: Roland Olbricht <>
  • To:
  • 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