[Solved] Game can run in editor but packaging fails

Hi everyone,
I’m writing a game for a university project that makes use of some third party libraries, both dynamic and static.

The code compiles in any configuration ( Development, Debug, Shipping ) when playing from the editor. However when trying to package the project the process fails during cooking.

The log reports a SECURE CRT: Invalid parameter detected and then the callstack reports that the last function called in my code before the fail is the std::ifstream constructor.

I’m not sure how to solve this, i have other libraries included that use ifstream without any problem so I’m not sure whether i should look for errors there. Also the code runs in the editor so that doesn’t really makes sense to me.

I’ve included the log of the UAT, thanks in advance for any pointers you can give me.
link text

But your code is not the last on call stack, it goes back to engine code. Please install debug symbols for engine modules, you cna od that in installation options in launcher, this will make function names on engine code display and we might uncover that “Unknown” and help us track down the issue.

You should avoid using C++ standard libraries, i assume this is required as you use some third party library right?

Hi! Thanks that was a really good tip.
I installed the debug symbols for the engine and downloaded the additional .pdb for the other dlls. Turns out opening an ifstream with string.c_str() was a no no but only for the library apparently? I’m not sure.

Anyway C++11 is ok with strings so I changed those and after starting a clean project and migrating the necessary files it cooked no problem. I guess that may have been the cause or maybe not and something else was messed up. Turning it off and on saves the day again.

Thank you again for your help!