[4.30 x86] any experiences with PB apps under MacOS X x86?

Mac OSX specific forum
Rozek
User
User
Posts: 64
Joined: Thu Jul 05, 2007 12:19 pm
Location: Böblingen (Germany)

[4.30 x86] any experiences with PB apps under MacOS X x86?

Post by Rozek »

Hello!

While my stuff runs fine under Windows, I have severe problems under MacOS X (on a Mac mini Intel running MacOS X 10.4.11).

First, I had linker errors which I could only avoid by reducing the functionality of my program (and I'm talking about functions, which are officially supported under MacOS X - according to the docs).

Now, my program crashes with a "segmentation fault".

If I try to debug my code, the debugger briefly pops up and closes itself immediately - even if I place a breakpoint at the beginning of the program :-(

Now, I have no idea how to proceed - does anybody have more experiences with PB under MacOS X?
Kind regards,

Andreas Rozek
freak
PureBasic Team
PureBasic Team
Posts: 5944
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Keep in mind that the Intel version of PB for OSX is very new, so it could well be a PB bug. This will get better as time goes by.

> If I try to debug my code, the debugger briefly pops up and closes itself immediately - even if I place a breakpoint at the beginning of the program

Try using the console debugger. (best is to start it from a console, but it should also work from the IDE). If there is a problem with the PB startup code, then you may get more useful information from the console.

There is not much more advice i can give without more information or code. The best way is to try to reduce the code in your program to narrow down the source of the problem.

Generally said, Linux and OSX tend to be less forgiving when it comes to memory errors (writing after the end of a buffer, freeing a buffer twice, that sort of thing) than Windows is, so a bug in a program that may be tolerated on Windows can lead to a crash on the other OS.

It is also much easier to develop a program for multiple platforms if you compile/test it on each one during development. Porting a finished program is harder because there is more (untested) code and it is harder to isolate code parts.
quidquid Latine dictum sit altum videtur
Rozek
User
User
Posts: 64
Joined: Thu Jul 05, 2007 12:19 pm
Location: Böblingen (Germany)

Post by Rozek »

Thanks for the immediate response!

I will try the console debugger in the next few days.

Anyway, I did not expect any detailed help but rather general hints (as you actually offered) so I will now try to isolate the error locations - and probably post some more bug reports for MacOS X ;-)
Kind regards,

Andreas Rozek
jamirokwai
Enthusiast
Enthusiast
Posts: 798
Joined: Tue May 20, 2008 2:12 am
Location: Cologne, Germany
Contact:

Re: [4.30 x86] any experiences with PB apps under MacOS X x8

Post by jamirokwai »

Rozek wrote:Now, I have no idea how to proceed - does anybody have more experiences with PB under MacOS X?
Hello,

I am programming for 3/4 year now. I must say, the things I tried work besides minor glitches. I am confident, that PB team will fix everything, so
coding on Mac OS X will be even better. Some things work even better on
Mac OS X than on Windows XP (I bought PB for cross-platforming)

At the moment, I finished about 6 different smaller tools, and a big
application (my Reisekostenrechner), which I plan to sell for Mac OS X
soon. Everything works as expected minus some minor glitches...

I'd recommend PB on Mac OS for starters, but not hardcore-coders. There
are some functions left to implement (the leap from 4.0 to 4.3 was BIG, especially regarding functions). Hope PB team will hunt down more bugs
during the next weeks.

Have a look here:
http://www.quadworks.de/?artikel=2009-0 ... 1-09&ln=en
http://www.quadworks.de/?artikel=2009-01-02/12-00-00 (German only)
Regards,
JamiroKwai
User avatar
Octopus
User
User
Posts: 55
Joined: Sat Jun 13, 2009 6:42 am
Location: Munich (Germany)
Contact:

Re: [4.30 x86] any experiences with PB apps under MacOS X x8

Post by Octopus »

Rozek wrote:... Now, my program crashes with a "segmentation fault". ...
Also mine, as I reported in the Mac Bug OS X section. But this effect occurs randomly, sometimes my example program ends normally, too.
Post Reply