Hi Peter,
The binary image is packed into a PE file structure, whereas in direct execution, the binary image is called directly, and there is no export or resource section.
If your exe crashes, it could be a symptom of memory corruption that did not expose itself in the different environment of direct execution.
Charles