[Gambas-user] Return code 245 from SDL

Dominique SIMONART simonart.dominique at ...11...
Wed Nov 16 01:59:38 CET 2005


Le Mercredi 16 Novembre 2005 00:42, Dominique SIMONART a écrit :
> Hi,
> I written a Master Mind program and it work correctly until I want to
> start a newgame. Then I got a message "le programme a retourné 245"
> and it crash. On a window beside, I can read something about a
> 'parachute déployé dans SDL" (Yes, a frenchie here!). The exact place
> where the crash appears is in this precise loop
>
> FOR L = 0 to 9
>   frmJeu.grdElem[L,0].Picture = frmJeu.picImage[71].Picture
> NEXT
>
> when L = 3. This is always at the same place, whatever the first
> game was. These lines ran without problem the first time.
> I don't change anything in the declaration of the 2 things, and they are
> used many times in the first game.
> The code is in a module, the GridView and the Picture array are in
> the main Form. All is running in IDE environment
> I run Gambas 1.6 in SuSE 9.2
> Could you help me?
> Dominique
>
Correction: 
FOR L = 0 TO 9
  frmJeu.grdElem[L,0].Picture = frmJeu.picImage[71+L].Picture
NEXT

note: The array contains 89 pictures (24x24 pixels)
Dominique





More information about the User mailing list