You are getting this error because during object creation new[]
fail to allocate the requested storage space.
So, either your hardware can not support the simulation which you are trying to run, or you forget to free up memory allocated previously, so your machine runs out of memory.
Here is a useful post: "std::bad_alloc": am I using too much memory?.
Based on the OMNeT++ guide:
Profiling support is based on the valgrind program,
http://valgrind.org. Valgrind is a suite of tools for debugging and
profiling on Linux. It can automatically detect various memory access
and memory management bugs, and perform detailed profiling of your
program. Valgrind support is brought into the OMNeT++ IDE by the Linux
Tools Project of Eclipse, currently in incubation state.
So the initial suggestion would be to switch to a Linux machine -- maybe virtual machine, to get your work done. In the long run, using OMNeT++ on Linux will benefit you much more.
Obviously, you are looking for a quick (and possibly dirty) solution, so you can refer to this: Windows Eclipse CDT profiler