I am trying to use Embree for tracing the scene (just for visibility) of an existing project of mine. I can compile the program without giving any errors. However, when I try to run it, it gives an unhandled exception (std::bad_alloc at memory) before even the main function is started to execute. Last thing in the call stack is "KernelBase.dll" called after "embree.dll".
Could you give me an idea about the point I am missing?
Thank you, have a nice day!
Could you please try out if the precompiled Embree library works.
An error occuring before the main function indicates that some intialization of some static variable makes problems.
Please make sure that you do not call any Embree function in the initialization code of any static variable, e.g. do not initialize Embree through a static variable.
Could you give us the full stacktrace, best with debug symbols enabled?