One of the users of my newton dynamics physics SDK wrapper informed me that the wrapper crashes every time it starts. After pinpointing the location of the crash we realized that the crash comes after calling NewtonCreate(), which is very unusual. It works on my Windows 10 platform and on the platforms of other Windows 10 users, but calling NewtonCreate() crashes on the contactee's Windows 10. The contactee also informed me that Minecraft crashes on his system too, which may indicate that there is something wrong with his windows 10 system. However, one of my initial versions of the wrapper didn't crash on the contactee's system.
In my new and previous wrapper, I defined DG_USE_THREAD_EMULATION as threads are not stable on windows... Unlike on my previous wrapper, on my new wrapper I have some defines modified. Here is the list of modified defines:
dgContact.h: DG_MAX_CONTATCS from 128 to 4096
dgBroadPhase.h: DG_BROADPHASE_MAX_STACK_DEPTH from 256 to 4096
dgWorldDynamicUpdate.h: DG_MAX_SKELETON_JOINT_COUNT from 256 to 4096
dgWorldDynamicUpdate.cpp DG_PARALLEL_JOINT_COUNT_CUT_OFF from 256 to 4096
There are many other differences between the previous and the new wrapper, like the previous uses Newton 3.13 and a lot less developed than the new wrapper, which uses of the most recent builds of 3.14.
I was wondering what are the potential reasons that calling NewtonCreate could lead to a crash on a windows machine. Just looking one level deep into the function, NewtonCreate is a place where memory allocation occurs. I was wondering maybe it could be related to the fact that increasing values of some defines demands an increase in the RAM usage, which might surplus the limit of the RAM memory available on the contactee's Windows 10 system and lead to a crash. Does anyone have any implications of what are the potential reasons that calling NewtonCreate could result in a crash on a Windows 10 operating system?
I would change the defines back to original values and see if it still crashes on the contactee's machine, but I still want some descent feedback and insight on this (if anyone has any).
Thanks,
Anton