Trolltech Home | Qt-jambi-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-jambi-interest Archive, May 2007
issues with static methods and macosx


Message 1 in thread

Hello,

I have some public static utility methods for commonly used stuffs dealing
with QImage.

I call them statically from a QObject and it works fine on windows.

On MacOsX, I get the following crash:

Invalid memory access of location 00000000 eip=073cca77
./run.sh: line 12:  1980 Bus error

If I call the very same methods non-statically from a new instance in the
scope of my QObject class, everything works fine.

There is no other log file created that I could attach.

Do you know about this issue ? Why is that ?

Regards,
Bruno

Message 2 in thread

Bruno Janvier wrote:
> Hello,
> 
> I have some public static utility methods for commonly used stuffs 
> dealing with QImage.
> 
> I call them statically from a QObject and it works fine on windows.
> 
> On MacOsX, I get the following crash:
> 
> Invalid memory access of location 00000000 eip=073cca77
> ./run.sh: line 12:  1980 Bus error              
> 
> If I call the very same methods non-statically from a new instance in 
> the scope of my QObject class, everything works fine.
> 
> There is no other log file created that I could attach.
> 
> Do you know about this issue ? Why is that ?

Hi Bruno,

You are using the -XstartOnFirstThread command line option in your 
run.sh file, right?

Other than that, it doesn't ring a bell... If you could post some 
example code, I could have a closer look and see if I can find something.

-
Gunnar


Message 3 in thread

On 5/4/07, Gunnar Sletta <gunnar@xxxxxxxxxxxxx> wrote:
>
> Bruno Janvier wrote:
> > Hello,
> >
> > I have some public static utility methods for commonly used stuffs
> > dealing with QImage.
> >
> > I call them statically from a QObject and it works fine on windows.
> >
> > On MacOsX, I get the following crash:
> >
> > Invalid memory access of location 00000000 eip=073cca77
> > ./run.sh: line 12:  1980 Bus error
> >
> > If I call the very same methods non-statically from a new instance in
> > the scope of my QObject class, everything works fine.
> >
> > There is no other log file created that I could attach.
> >
> > Do you know about this issue ? Why is that ?
>
> Hi Bruno,
>
> You are using the -XstartOnFirstThread command line option in your
> run.sh file, right?


yes

Other than that, it doesn't ring a bell... If you could post some
> example code, I could have a closer look and see if I can find something.


I will try to do that as soon as I have some time.
Hej!

-
> Gunnar