Re: [lazarus] Mac OS X : Picture.Assign causing Access Violation...

2007-11-16 Thread Marc Weustink

Dominique Louis wrote:

Hi,
  Has anyone else encountered a problem on Mac OS X where by when you 
try to perform a TImage.Picture.Assign( my_image ); it causes an access 
violation?


In this case the my_image is a TBitmap, if that makes any difference.
Are there any Bitmap types that Lazarus cannot load?


This doesn't matter since the bitmap is loaded by TBitmap and not 
TImage.Picture.


Do you have a code example on how you are using it ?

Marc


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Mac OS X : Picture.Assign causing Access Violation...

2007-11-16 Thread Leonardo M. Ramé
Mark, are you maintaining a Solaris Sparc version?, I'm looking for a 
Solaris 10 x86 version of FPC to test.


Leonardo


Mark Morgan Lloyd escribió:

Marc Weustink wrote:

Mark Morgan Lloyd wrote:

Dominique Louis wrote:

Hi,
  Has anyone else encountered a problem on Mac OS X where by when 
you try to perform a TImage.Picture.Assign( my_image ); it causes an 
access violation?


In this case the my_image is a TBitmap, if that makes any difference.
Are there any Bitmap types that Lazarus cannot load?


Pardon my ignorance, but is that a bigendian or littlendian 
architecture?


I'm trying to track down what might be the same type of problem on 
SPARC under Linux, but I'm afraid that I've got my hands rather full 
of (off-project) stuff at present.


Is sparc BE ?


Yes.

Working from memory rather than notes a form icon works OK on Win-32 and 
x86-Linux except that it might get turned upside-down (that might be 
specific to BMP rather than XPM). However it causes various exceptions 
in the IDE on SPARC to the extent that a form won't load into the 
designer, although compilation works and the result is runnable. I got 
as far as suspecting that there were related problems.


I must stress that the above might be unreliable since I'm not working 
from a methodical set of experiments and notes, it's something I hope to 
get back onto as soon as I have time.




_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Mac OS X : Picture.Assign causing Access Violation...

2007-11-16 Thread Mark Morgan Lloyd

Dominique Louis wrote:

Hi,
  Has anyone else encountered a problem on Mac OS X where by when you 
try to perform a TImage.Picture.Assign( my_image ); it causes an access 
violation?


In this case the my_image is a TBitmap, if that makes any difference.
Are there any Bitmap types that Lazarus cannot load?


Pardon my ignorance, but is that a bigendian or littlendian architecture?

I'm trying to track down what might be the same type of problem on SPARC under 
Linux, but I'm afraid that I've got my hands rather full of (off-project) 
stuff at present.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Mac OS X : Picture.Assign causing Access Violation...

2007-11-16 Thread Marc Weustink

Mark Morgan Lloyd wrote:

Dominique Louis wrote:

Hi,
  Has anyone else encountered a problem on Mac OS X where by when you 
try to perform a TImage.Picture.Assign( my_image ); it causes an 
access violation?


In this case the my_image is a TBitmap, if that makes any difference.
Are there any Bitmap types that Lazarus cannot load?


Pardon my ignorance, but is that a bigendian or littlendian architecture?

I'm trying to track down what might be the same type of problem on SPARC 
under Linux, but I'm afraid that I've got my hands rather full of 
(off-project) stuff at present.


Is sparc BE ?

Marc



_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Mac OS X : Picture.Assign causing Access Violation...

2007-11-16 Thread Mark Morgan Lloyd

Marc Weustink wrote:

Mark Morgan Lloyd wrote:

Dominique Louis wrote:

Hi,
  Has anyone else encountered a problem on Mac OS X where by when you 
try to perform a TImage.Picture.Assign( my_image ); it causes an 
access violation?


In this case the my_image is a TBitmap, if that makes any difference.
Are there any Bitmap types that Lazarus cannot load?


Pardon my ignorance, but is that a bigendian or littlendian architecture?

I'm trying to track down what might be the same type of problem on 
SPARC under Linux, but I'm afraid that I've got my hands rather full 
of (off-project) stuff at present.


Is sparc BE ?


Yes.

Working from memory rather than notes a form icon works OK on Win-32 and 
x86-Linux except that it might get turned upside-down (that might be specific 
to BMP rather than XPM). However it causes various exceptions in the IDE on 
SPARC to the extent that a form won't load into the designer, although 
compilation works and the result is runnable. I got as far as suspecting that 
there were related problems.


I must stress that the above might be unreliable since I'm not working from a 
methodical set of experiments and notes, it's something I hope to get back 
onto as soon as I have time.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Mac OS X : Picture.Assign causing Access Violation...

2007-11-16 Thread Mark Morgan Lloyd

Leonardo M. Ramé wrote:
Mark, are you maintaining a Solaris Sparc version?, I'm looking for a 
Solaris 10 x86 version of FPC to test.


I'm not maintaining anything at the moment, certainly in terms of being an 
officially-designated maintainer.


I'm trying to build up experience with Lazarus on Linux-SPARC. As I said, I've 
got problems getting Solaris to install on the new SPARC machine and to be 
quite frank I'm not going to spend much more time trying to get round them. 
I've never considered playing with Solaris on x86, I've got quite enough 
problems as it is.


Having said that, my understanding is that the core FPC developer doing SPARC 
work uses Solaris rather than Linux, so that might indicate that the APIs are 
kept up to date. I've just about had FPC (at something like 2.0.0) running on 
Solaris-SPARC but have not had any success using it to compile a newer 
version, so I suspect that to get anything that you can't find on FTP you're 
going to have to work out how to cross-compile.


I'm sure that if you were able to make initial progress getting something 
running we'd all do our best to help. My own opinion is that the more 
platforms a piece of software is tested on the more robust it is which is to 
everybody's benefit.


If you look at (for example) 
http://www.nabble.com/Has-anyone-ported-fpc-pascal-to-Solaris---t4572940.html 
you will see a fairly extensive summary describing what I'd managed to get 
working as of 23rd August. However I'd add that the 2.2.0 compiler is much 
improved, and would suggest that rather than trying to compile Lazarus with 
available older Solaris binaries it would probably be worth focussing on 
getting a 2.2.0 compiler built- and tested- for Solaris on both SPARC and x86.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Mac OS X : Picture.Assign causing Access Violation...

2007-11-16 Thread Marc Weustink

Mark Morgan Lloyd wrote:

Marc Weustink wrote:

Mark Morgan Lloyd wrote:

Dominique Louis wrote:

Hi,
  Has anyone else encountered a problem on Mac OS X where by when 
you try to perform a TImage.Picture.Assign( my_image ); it causes an 
access violation?


In this case the my_image is a TBitmap, if that makes any difference.
Are there any Bitmap types that Lazarus cannot load?


Pardon my ignorance, but is that a bigendian or littlendian 
architecture?


I'm trying to track down what might be the same type of problem on 
SPARC under Linux, but I'm afraid that I've got my hands rather full 
of (off-project) stuff at present.


Is sparc BE ?


Yes.


OK, I couldn't remember. I only remembered the alignment issues florian 
and I had when getting lazarus-sparc to work


Working from memory rather than notes a form icon works OK on Win-32 and 
x86-Linux except that it might get turned upside-down (that might be 
specific to BMP rather than XPM). 


I only know that this is the case for lazarus running on wine (and I 
know the location what causes this, I only need to do some checks).


However it causes various exceptions 
in the IDE on SPARC to the extent that a form won't load into the 
designer, although compilation works and the result is runnable. I got 
as far as suspecting that there were related problems.


Lazarus should run on a BE machine (tested on my ppc mini mac)

I must stress that the above might be unreliable since I'm not working 
from a methodical set of experiments and notes, it's something I hope to 
get back onto as soon as I have time.


:)

Maybe I should find some time to fix my disk issue and fireup my sparc

Marc

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Mac OS X : Picture.Assign causing Access Violation...

2007-11-16 Thread Mark Morgan Lloyd

Marc Weustink wrote:

OK, I couldn't remember. I only remembered the alignment issues florian 
and I had when getting lazarus-sparc to work


And I really do think you've done a great job. I'm impressed.


Maybe I should find some time to fix my disk issue and fireup my sparc


I've managed to lay my hands on an E4500 for development purposes. It's 
connected to a Heath Robinson built around a Compaq disc cage- I've got a good 
stock of discs in Compaq trays :-) Getting this working so that I can justify 
the expenditure has taken quite a lot of my time over the last few days.


Only thing I do notice in my new setup is that Solaris appears to want Genuine 
Sun hardware. There's limits to how much money and space I'm prepared to 
invest, and I think that if I could help the project along on just the 
SPARC/Linux side I might still be doing something worthwhile.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Mac OS X : Picture.Assign causing Access Violation...

2007-11-16 Thread Dominique Louis

Hi Marc and Mark,
  From my tests I have found that the problem is not related to 
TBitmap. I'll investigate further and report back if I find anything.


Dominique.

Marc Weustink wrote:

Dominique Louis wrote:

Hi,
  Has anyone else encountered a problem on Mac OS X where by when you 
try to perform a TImage.Picture.Assign( my_image ); it causes an 
access violation?


In this case the my_image is a TBitmap, if that makes any difference.
Are there any Bitmap types that Lazarus cannot load?


This doesn't matter since the bitmap is loaded by TBitmap and not 
TImage.Picture.


Do you have a code example on how you are using it ?

Marc



_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Mac OS X : Picture.Assign causing Access Violation...

2007-11-15 Thread Dominique Louis

Hi,
  Has anyone else encountered a problem on Mac OS X where by when you 
try to perform a TImage.Picture.Assign( my_image ); it causes an access 
violation?


In this case the my_image is a TBitmap, if that makes any difference.
Are there any Bitmap types that Lazarus cannot load?

Thanks,


Dominique Louis.

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives