Page 1 of 1

Purebasic Executable error on the Mac

Posted: Thu Sep 12, 2019 5:21 pm
by Muzza
Hi

What have I missed. I am using a mac and can run and build from the IDE, with and without debugger, but as soon as I create a Mac Executable and try to run it i get an error. I must be missing something in compiler options.

Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000086
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [1933]


MacOS_mojav 10.14.6

If anyone has any ideas, I shall be most grateful, thanks, M.

Re: Purebasic Executable error on the Mac

Posted: Thu Sep 12, 2019 6:52 pm
by mk-soft
No idea without code and pb version...

Re: Purebasic Executable error on the Mac

Posted: Thu Sep 12, 2019 7:02 pm
by Muzza
Thanks

I've solved it. it was an image file not being put in the contents folder of the app executable package. Ive changed the code to 'continue' if the image is not loaded and just replace it with a dull box

Re: Purebasic Executable error on the Mac

Posted: Thu Sep 12, 2019 9:02 pm
by Shardik
Thank you for posting the solution to your problem. Other users with a similar problem might benefit from your solution.

And welcome to the PureBasic forum! :)

Re: Purebasic Executable error on the Mac

Posted: Thu Sep 12, 2019 9:15 pm
by mk-soft
This tool copy the images and more to the right resources folder inside the app.

Link : MyAppData