Recent

Author Topic: Dbase on Power PC  (Read 21912 times)

freddynerk

  • Jr. Member
  • **
  • Posts: 96
Dbase on Power PC
« on: August 31, 2009, 05:17:42 am »
I am writing a database program for a client on her PowerPC.
It uses TDBF for all databases. On my Intel machine all is fine.
It compiles to Powerpc without errors.
On her machine the program opens and works until
she selects Inv.dbf in a OpenDialog.
She then gets an Access Violation error.

Does her mac need anything extra to run.

This is the most basic of database design.

I have a powerpc only version on my web site.
Could someone with a powerpc test this for me please.

http://www.ctd.com.au/mac.html

thanks in advance
Tom

freddynerk

  • Jr. Member
  • **
  • Posts: 96
Re: Dbase on Power PC
« Reply #1 on: August 31, 2009, 05:56:24 am »
Forgot to mention.
When the program starts press open and find the Data/Inv.dbf then open.
This will locate the folder for all databases.

Tom

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1071
Re: Dbase on Power PC
« Reply #2 on: August 31, 2009, 01:17:05 pm »
Forgot to mention.
When the program starts press open and find the Data/Inv.dbf then open.
This will locate the folder for all databases.

For me it does not start up on my machine (a G5 running 10.5.7). If I run it from the command line, I get:

Code: [Select]
./Theory_can_be_fun.app/Contents/MacOS/Theory_can_be_fun
[FORMS.PP] ExceptionOccurred
  Sender=EPrinter
  Exception=Printer " " does't exists.
  Stack trace:
  $003DFDD0  TPRINTER__SETPRINTER,  line 440 of printers.pas
  $003E3C30  TCARBONPRINTER__UPDATEPRINTER,  line 295 of osprinters.pas
  $003E3878  TCARBONPRINTER__CREATE,  line 250 of osprinters.pas
  $003E4D98  _OSPRINTERS_init,  line 565 of osprinters.pas
TApplication.HandleException Printer " " does't exists.
  Stack trace:
  $003DFDD0  TPRINTER__SETPRINTER,  line 440 of printers.pas
  $003E3C30  TCARBONPRINTER__UPDATEPRINTER,  line 295 of osprinters.pas
  $003E3878  TCARBONPRINTER__CREATE,  line 250 of osprinters.pas
  $003E4D98  _OSPRINTERS_init,  line 565 of osprinters.pas
exception at 003DFDD0:
Printer " " does't exists.

I remember reading about that error and afaik it's supposedly solvable by configuring a printer, but I have a printer configured. Maybe the problem is that the printer name contains a space? I can't rename it though, it's a network printer of the department.

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1071
Re: Dbase on Power PC
« Reply #3 on: August 31, 2009, 01:25:03 pm »
I am writing a database program for a client on her PowerPC.
It uses TDBF for all databases. On my Intel machine all is fine.

I've found a post stating that tdbf does not work on big endian machines: http://forum.lazarus.freepascal.org/index.php?topic=1259.0

Edit: it turns out that post is outdated, see below.
« Last Edit: August 31, 2009, 02:52:21 pm by jmaebe »

freddynerk

  • Jr. Member
  • **
  • Posts: 96
Re: Dbase on Power PC
« Reply #4 on: August 31, 2009, 01:35:56 pm »
Does this mean that I have to go back to square 1 with with my design.
I used Tdbf since I thought it was the most stable and idiot proof (silly me)

OH Well what can I use now.
My sister is not a happy person. (I'm not either)

Tom

freddynerk

  • Jr. Member
  • **
  • Posts: 96
Re: Dbase on Power PC
« Reply #5 on: August 31, 2009, 01:38:03 pm »
How about Tsdf or Fixed format.
I assume one is a csv type file.

Tom

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1071
Re: Dbase on Power PC
« Reply #6 on: August 31, 2009, 02:14:15 pm »
How about Tsdf or Fixed format.
I assume one is a csv type file.

I think it's best to ask that in this forum: http://forum.lazarus.freepascal.org/index.php/board,16.0.html

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1071
Re: Dbase on Power PC
« Reply #7 on: August 31, 2009, 02:51:44 pm »
I am writing a database program for a client on her PowerPC.
It uses TDBF for all databases. On my Intel machine all is fine.

I've found a post stating that tdbf does not work on big endian machines: http://forum.lazarus.freepascal.org/index.php?topic=1259.0

I'll disable it for the 2.4.0 release for big endian targets, since it is misleading to ship units for a platform where they are known to be broken.

Actually, it seems that information is outdated. According to the release notes, it should work on big endian systems nowadays: http://svn.freepascal.org/svn/fpc/tags/release_2_2_4/packages/fcl-db/src/dbase/history.txt (see the fourth entry for V6.9.1).

Are you using FPC 2.2.4?
« Last Edit: August 31, 2009, 03:01:45 pm by jmaebe »

freddynerk

  • Jr. Member
  • **
  • Posts: 96
Re: Dbase on Power PC
« Reply #8 on: August 31, 2009, 03:07:37 pm »
Yes I am using 2.2.4
and Lazarus 0.9.29 beta

Maybe there is hope.

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1071
Re: Dbase on Power PC
« Reply #9 on: August 31, 2009, 03:37:19 pm »
Yes I am using 2.2.4
and Lazarus 0.9.29 beta

Lazarus 0.9.29 beta from which svn revision? (see Help->About Lazarus or Lazarus->About Lazarus depending on from when your version is).

Can you try with the latest 0.9.29 beta? You're not using the latest version, since osprinters.pas no longer has a line 295 anymore (which is where an exception is raised in my case)
« Last Edit: August 31, 2009, 03:41:21 pm by jmaebe »

freddynerk

  • Jr. Member
  • **
  • Posts: 96
Re: Dbase on Power PC
« Reply #10 on: August 31, 2009, 03:41:47 pm »
Just had a look
The SVN is blank.
I have had problems with svn.
Should I get the latest Daily snapshot or grab something else.

Tom

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1071
Re: Dbase on Power PC
« Reply #11 on: August 31, 2009, 03:53:33 pm »
Should I get the latest Daily snapshot or grab something else.
Try the latest 0.9.27 snapshot.

The osprinters.pas reorganisation seems to have happened somewhere in 2008 however, so I don't understand how you can have Lazarus 0.9.29 beta with such an old LCL. Somehow it seems that you are using a new Lazarus together with a very old LCL.

I'm no expert on Lazarus/LCL issues though, so maybe one of the Lazarus experts can chime in.

laguna

  • Sr. Member
  • ****
  • Posts: 329
Re: Dbase on Power PC
« Reply #12 on: August 31, 2009, 03:55:15 pm »
Just had a look
The SVN is blank.
I have had problems with svn.
Should I get the latest Daily snapshot or grab something else.

Tom

tom, svn2 (vers. 1.6.x)


freddynerk

  • Jr. Member
  • **
  • Posts: 96
Re: Dbase on Power PC
« Reply #13 on: August 31, 2009, 04:04:28 pm »
I am downloading the Daily snapshots.
Also I am using a set of components from Brazil called ajlaz-ctrls.
Maybe it is using an earlier printer file.
I will delete anything to do with printers from the package.
It has some nice components that I would like to keep.

Tom

freddynerk

  • Jr. Member
  • **
  • Posts: 96
Re: Dbase on Power PC
« Reply #14 on: August 31, 2009, 04:49:20 pm »
I have just uploaded a new version at

http://www.ctd.com.au/mac.html

It has the latest daily snapshots.

I am of to sleep now.
I hope when I get up I will have happy news that someone has tested it and found it works.

Thanks again.

Tom

 

TinyPortal © 2005-2018