File path search causes NilObjectException

I have a program that I made in Xojo which runs fine on my machines. I want to share it with a work collegue but when I do it will crash with:
“An exception of class:NilObjectException was not handled. The application must shut down.”

It seems to do this very early in its runtime and I have deduced that it’s when the program is searching for some filepaths to some Python modules required to perform some of the tasks of the program e.g. /Library/Frameworks/Python.framework/Versions/3.7/bin/TTX

Is there something about this kind of searching that will make the Mac OS kill the program?
I’m running Mojave, my collegue is running Catalina.

If you know the file exists, it might be a permissions issue in Catalina. Give your app full disk access through System Preferences and see what happens.

Thank you very much for that suggestion Kem. We have already tried that amongst other security features in the System Prefs.

Can you do a remote debug on that machine and trace through the code?

Are you sure that /Library/Frameworks/Python.framework/Versions/3.7/bin/TTX exists in that location on 10.15 ?
If it doesnt that might explain the nil object exception

Thank you Kem, I’ll have a go at remote debugging.