[Gambas-user] Why I meet "illegal instruction" ?

Swee Kwang Tan sktan007 at ...43...
Sat Aug 8 04:33:14 CEST 2009


My Dear,
I'm a fortune teller, writing a predict fortune program. 

dim gan as TienGan     'TienGan is a Class
dim dx as ShiXing       'ShiXing is a Class
dim fd as FlowData     'FlowData is a Class, it have defined many constant.

gan = new TienGan(3, fd)
dx = new ShiXing(gan.GetValue(), fd)
why " dx = new ..." this line wrong ? gambas said "illegal instruction" .
Thank you


--- 09/7/28 (二),gambas-user-request at lists.sourceforge.net <gambas-user-request at lists.sourceforge.net> 寫道:

寄件者: gambas-user-request at lists.sourceforge.net <gambas-user-request at lists.sourceforge.net>
主旨: Gambas-user Digest, Vol 38, Issue 50
收件者: gambas-user at lists.sourceforge.net
日期: 2009年7月28日,二,下午11:40

Send Gambas-user mailing list submissions to
    gambas-user at lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
    https://lists.sourceforge.net/lists/listinfo/gambas-user
or, via email, send a message with subject or body 'help' to
    gambas-user-request at lists.sourceforge.net

You can reach the person managing the list at
    gambas-user-owner at lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Gambas-user digest..."


Today's Topics:

   1. Re: Background color for Textbox (richard terry)
   2. Procedure new() (craf)
   3. Re: Background color for Textbox (craf)
   4. Re: Background color for Textbox (Beno?t Minisini)
   5. DrawingArea (nic)
   6. Re: Background color for Textbox (Beno?t Minisini)
   7. Re: DrawingArea (Beno?t Minisini)
   8. Re: Background color for Textbox (craf)
   9. Re: DrawingArea (nic)
  10. Re: Background color for Textbox (Beno?t Minisini)


----------------------------------------------------------------------

Message: 1
Date: Wed, 29 Jul 2009 07:29:25 +1000
From: richard terry <rterry at ...1946...>
Subject: Re: [Gambas-user] Background color for Textbox
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Message-ID: <200907290729.25740.rterry at ...1946...>
Content-Type: text/plain;  charset="utf-8"

On Wed, 29 Jul 2009 05:41:11 am craf wrote:
> Hello.
>
> When selecting a background color for a textbox only allows me to select
> any of them. For example to select the color blue shown by the arrow,
> shows me a completely different color. Are there certain colors in
> Gambas?. Is this normal?.
>
>
> Select a color for the background 0080ff text box
>
>
> But this shows me another pink
>
>
> Regards

Any color including those of  your imagination. HOwever I agree that setting 
it doesn't always work properly.

If you used the pop-up dialog box  


In my version if you type in the hex, nothing changes automatically. Also if 
you click on the color gradient anywhere, the square containing the colour 
dosn't change to indicate - you need to move the brightless slighter at the 
right.

I've raised these things with Benoit before.

Regards

Richard



------------------------------

Message: 2
Date: Tue, 28 Jul 2009 17:32:42 -0400
From: craf <prog at ...2177...>
Subject: [Gambas-user] Procedure new()
To: Lista Gambas Ingles <gambas-user at lists.sourceforge.net>
Message-ID: <1248816762.3590.24.camel at ...651...>
Content-Type: text/plain

Hi.

What are the roles in the general procedure new ()? 
What difference has the procedure Form_Open ()

Regards


------------------------------

Message: 3
Date: Tue, 28 Jul 2009 17:45:46 -0400
From: craf <prog at ...2177...>
Subject: Re: [Gambas-user] Background color for Textbox
To: richard terry <rterry at ...1946...>,    mailing list for gambas
    users <gambas-user at lists.sourceforge.net>
Message-ID: <1248817546.3590.25.camel at ...651...>
Content-Type: text/plain

Ok. Thanks.

-----Mensaje original-----
De: richard terry <rterry at ...1946...>
Reply-to: richard terry <rterry at ...1946...>, mailing list for gambas
users <gambas-user at lists.sourceforge.net>
Para: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Asunto: Re: [Gambas-user] Background color for Textbox
Fecha: Wed, 29 Jul 2009 07:29:25 +1000


On Wed, 29 Jul 2009 05:41:11 am craf wrote:
> Hello.
>
> When selecting a background color for a textbox only allows me to select
> any of them. For example to select the color blue shown by the arrow,
> shows me a completely different color. Are there certain colors in
> Gambas?. Is this normal?.
>
>
> Select a color for the background 0080ff text box
>
>
> But this shows me another pink
>
>
> Regards

Any color including those of  your imagination. HOwever I agree that setting 
it doesn't always work properly.

If you used the pop-up dialog box  


In my version if you type in the hex, nothing changes automatically. Also if 
you click on the color gradient anywhere, the square containing the colour 
dosn't change to indicate - you need to move the brightless slighter at the 
right.

I've raised these things with Benoit before.

Regards

Richard

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


------------------------------

Message: 4
Date: Tue, 28 Jul 2009 23:50:18 +0200
From: Beno?t Minisini <gambas at ...1...>
Subject: Re: [Gambas-user] Background color for Textbox
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Message-ID: <200907282350.18516.gambas at ...1...>
Content-Type: Text/Plain;  charset="utf-8"

> Hello.
>
> When selecting a background color for a textbox only allows me to select
> any of them. For example to select the color blue shown by the arrow,
> shows me a completely different color. Are there certain colors in
> Gambas?. Is this normal?.
>
>
> Select a color for the background 0080ff text box
>
>
> But this shows me another pink
>
>
> Regards

This is a bug I am currently investigate...

-- 
Beno?t



------------------------------

Message: 5
Date: Tue, 28 Jul 2009 14:54:34 -0700
From: nic <dent.nic at ...626...>
Subject: [Gambas-user] DrawingArea
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Message-ID:
    <c7c60e520907281454n4c127dd6yf8dbc3b4b067fdd4 at ...2259...>
Content-Type: text/plain; charset=ISO-8859-1

How do I draw a circle (any size, I will modify it) in a drawing area?


------------------------------

Message: 6
Date: Wed, 29 Jul 2009 00:03:46 +0200
From: Beno?t Minisini <gambas at ...1...>
Subject: Re: [Gambas-user] Background color for Textbox
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Message-ID: <200907290003.46513.gambas at ...1...>
Content-Type: Text/Plain;  charset="utf-8"

> > Hello.
> >
> > When selecting a background color for a textbox only allows me to select
> > any of them. For example to select the color blue shown by the arrow,
> > shows me a completely different color. Are there certain colors in
> > Gambas?. Is this normal?.
> >
> >
> > Select a color for the background 0080ff text box
> >
> >
> > But this shows me another pink
> >
> >
> > Regards
>
> This is a bug I am currently investigate...

OK, the bug is fixed in revision #2186. This was a fix in Val() for Gambas 3 
that I forgot to backport in Gambas 2.

I will make a 2.15.2 as soon as possible.

Regards,

-- 
Beno?t



------------------------------

Message: 7
Date: Wed, 29 Jul 2009 00:05:59 +0200
From: Beno?t Minisini <gambas at ...1...>
Subject: Re: [Gambas-user] DrawingArea
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Message-ID: <200907290005.59306.gambas at ...1...>
Content-Type: Text/Plain;  charset="utf-8"

> How do I draw a circle (any size, I will modify it) in a drawing area?

in the DrawingArea Draw event handler:

Draw.Circle(XCenter, YCenter, Radius)

Regards,

-- 
Beno?t



------------------------------

Message: 8
Date: Tue, 28 Jul 2009 18:20:11 -0400
From: craf <prog at ...2177...>
Subject: Re: [Gambas-user] Background color for Textbox
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Message-ID: <1248819611.3590.26.camel at ...651...>
Content-Type: text/plain; charset="UTF-8"

Ok. Thanks very much, Benoit

Regards

-----Mensaje original-----
De: Beno?t Minisini <gambas at ...1...>
Reply-to: mailing list for gambas users
<gambas-user at lists.sourceforge.net>
Para: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Asunto: Re: [Gambas-user] Background color for Textbox
Fecha: Wed, 29 Jul 2009 00:03:46 +0200


> > Hello.
> >
> > When selecting a background color for a textbox only allows me to select
> > any of them. For example to select the color blue shown by the arrow,
> > shows me a completely different color. Are there certain colors in
> > Gambas?. Is this normal?.
> >
> >
> > Select a color for the background 0080ff text box
> >
> >
> > But this shows me another pink
> >
> >
> > Regards
>
> This is a bug I am currently investigate...

OK, the bug is fixed in revision #2186. This was a fix in Val() for Gambas 3 
that I forgot to backport in Gambas 2.

I will make a 2.15.2 as soon as possible.

Regards,



------------------------------

Message: 9
Date: Tue, 28 Jul 2009 15:27:58 -0700
From: nic <dent.nic at ...626...>
Subject: Re: [Gambas-user] DrawingArea
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Message-ID:
    <c7c60e520907281527t402c76a4udcf833dadb137162 at ...2259...>
Content-Type: text/plain; charset=ISO-8859-1

Is there a way I could define a symbol (I don't know how to do that) for the
X,Y, and radius? That way my code could actively modify the circle while the
programming is running.
Thanks again!

2009/7/28 Beno?t Minisini <gambas at ...1...>

> > How do I draw a circle (any size, I will modify it) in a drawing area?
>
> in the DrawingArea Draw event handler:
>
> Draw.Circle(XCenter, YCenter, Radius)
>
> Regards,
>
> --
> Beno?t
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


------------------------------

Message: 10
Date: Wed, 29 Jul 2009 01:39:39 +0200
From: Beno?t Minisini <gambas at ...1...>
Subject: Re: [Gambas-user] Background color for Textbox
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Message-ID: <200907290139.39425.gambas at ...1...>
Content-Type: Text/Plain;  charset="utf-8"

> > > Hello.
> > >
> > > When selecting a background color for a textbox only allows me to
> > > select any of them. For example to select the color blue shown by the
> > > arrow, shows me a completely different color. Are there certain colors
> > > in Gambas?. Is this normal?.
> > >
> > >
> > > Select a color for the background 0080ff text box
> > >
> > >
> > > But this shows me another pink
> > >
> > >
> > > Regards
> >
> > This is a bug I am currently investigate...
>
> OK, the bug is fixed in revision #2186. This was a fix in Val() for Gambas
> 3 that I forgot to backport in Gambas 2.
>
> I will make a 2.15.2 as soon as possible.
>
> Regards,

The 2.15.2 package has been uploaded to sourceforge, but apparently it is not 
available immediately for downloading.

We can just wait and pray...

-- 
Beno?t



------------------------------

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

------------------------------

_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


End of Gambas-user Digest, Vol 38, Issue 50
*******************************************


_______________________________________
 辣茩妏蚚閉湮⺍講捇誥蚘眊 
 http://cn.mail.yahoo.com 


More information about the User mailing list