When I run my executable stand-alone, it works fine.
When I run it via intelInspector, it throws bad_alloc exception saying it fails to allocate memory.
What can I do in this case?
Does IntelInspector restrict maximal amount of memory that can be used?
When your program is run under Inspector there is additional overhead, both for record keeping each individual allocation and also as part of our instrumentation. But we do not restrict the max memory.
How many allocations are you doing? Is your process running out of memory?
Might be useful to file an issue here: https://software.intel.com/en-us/articles/how-to-create-a-support-request-at-online-service-center