Les membres ayant 30 points peuvent parler sur les canaux annonces, projets et hs du chat.
La shoutbox n'est pas chargée par défaut pour des raisons de performances. Cliquez pour charger.

Forum Casio - Autres questions


Index du Forum » Autres questions » stack memory and getkey()


simnon Invité

stack memory and getkey()

Posté le 05/04/2025 20:55

I'm trying to learn the casio SDK to make some games for my 9860giii but when i use a while loop and don't put GetKey() inside it, i get error 28 (out of stack memory)

I could just use getkey to avoid this but it has to wait for input and i am trying to make a real-time game so i can't

i'm sorry for posting so much here but i am really hopeless and really want to learn the library


Lephenixnoir Hors ligne Administrateur Points: 24993 Défis: 174 Message

Citer : Posté le 05/04/2025 21:03 | #


If you're using the old fx-9860G SDK, then there is a known OS problem where if you don't call GetKey() at all during the entirety of the execution you get a crash after leaving the program. This can be bypassed by calling once like when leaving the add-in.

But you mention the G-III and the old SDK isn't particularly compatible with it. Plus I don't know what program, runtime or SDK uses the name "error 28" for a stack overflow. Please provide more detail about what tools you're using, and a MWE would be very helpful.

Edit: Just saw your other topic, looks like the problem from above.
Mon graphe (28 Janvier): (MPM ; serial gint ; (Rogue Life || HH2) ; PythonExtra ; ? ; Boson X ; passe gint 3 ; ...) || (shoutbox v5 ; v5)
Simnon Hors ligne Membre Points: 19 Défis: 0 Message

Citer : Posté le 05/04/2025 21:13 | #


yeah i'm using the old one (i think so it looks old), is there a different one?

and i don't know what MWE means
also im on win 10 if that's important
Lephenixnoir Hors ligne Administrateur Points: 24993 Défis: 174 Message

Citer : Posté le 05/04/2025 21:29 | #


This is the old one:


And yes there is a "modern" alternative with different tools and libraries, which I happen to maintain; see the fxSDK topic.

In any case; "MWE" means "Minimal Working Example", i.e. a small program that showcases the issue. You have that on the other topic, actually. But if my hunch is right just add GetKey() once before leaving the program and that should solve the bug for now.
Mon graphe (28 Janvier): (MPM ; serial gint ; (Rogue Life || HH2) ; PythonExtra ; ? ; Boson X ; passe gint 3 ; ...) || (shoutbox v5 ; v5)
Simnon Hors ligne Membre Points: 19 Défis: 0 Message

Citer : Posté le 05/04/2025 22:23 | #


thanks for the help, i tried downloading the fxsdk, and it doesnt have any GUI? is it supposed to not have any or am i missing something?
Lephenixnoir Hors ligne Administrateur Points: 24993 Défis: 174 Message

Citer : Posté le 05/04/2025 22:25 | #


Eeeeh correct it's all command-line. I ought to have mentioned that. xD
Mon graphe (28 Janvier): (MPM ; serial gint ; (Rogue Life || HH2) ; PythonExtra ; ? ; Boson X ; passe gint 3 ; ...) || (shoutbox v5 ; v5)
Simnon Hors ligne Membre Points: 19 Défis: 0 Message

Citer : Posté le 05/04/2025 22:26 | #


is it worth getting into it? i dont know how to use stuff like this at all and the french doesnt really help
Lephenixnoir Hors ligne Administrateur Points: 24993 Défis: 174 Message

Citer : Posté le 05/04/2025 22:29 | #


It depends really. If you just want to make some programs, test the waters, maybe not. The fxSDK is more powerful (more libraries, more models supported) but also takes more effort to use. As for the French, I believe you can machine-translate the pages and be fine; I've checked on multiple occasions, so it shouldn't be too bad. Overall, it's difficult for me to assess fairly because I've been working on the thing 10 years now. x) At a first glance, I'd say you might want to keep it simple and defer a switch to if and when you find out the old stuff isn't enough for you.
Mon graphe (28 Janvier): (MPM ; serial gint ; (Rogue Life || HH2) ; PythonExtra ; ? ; Boson X ; passe gint 3 ; ...) || (shoutbox v5 ; v5)
Simnon Hors ligne Membre Points: 19 Défis: 0 Message

Citer : Posté le 05/04/2025 22:32 | #


ight ill think about it thanks

LienAjouter une imageAjouter une vidéoAjouter un lien vers un profilAjouter du codeCiterAjouter un spoiler(texte affichable/masquable par un clic)Ajouter une barre de progressionItaliqueGrasSoulignéAfficher du texte barréCentréJustifiéPlus petitPlus grandPlus de smileys !
Cliquez pour épingler Cliquez pour détacher Cliquez pour fermer
Alignement de l'image: Redimensionnement de l'image (en pixel):
Afficher la liste des membres
:bow: :cool: :good: :love: ^^
:omg: :fusil: :aie: :argh: :mdr:
:boulet2: :thx: :champ: :whistle: :bounce:
valider
 :)  ;)  :D  :p
 :lol:  8)  :(  :@
 0_0  :oops:  :grr:  :E
 :O  :sry:  :mmm:  :waza:
 :'(  :here:  ^^  >:)

Σ π θ ± α β γ δ Δ σ λ
Veuillez donner la réponse en chiffre
Vous devez activer le Javascript dans votre navigateur pour pouvoir valider ce formulaire.

Si vous n'avez pas volontairement désactivé cette fonctionnalité de votre navigateur, il s'agit probablement d'un bug : contactez l'équipe de Planète Casio.

Planète Casio v4.3 © créé par Neuronix et Muelsaco 2004 - 2025 | Il y a 108 connectés | Nous contacter | Qui sommes-nous ? | Licences et remerciements

Planète Casio est un site communautaire non affilié à Casio. Toute reproduction de Planète Casio, même partielle, est interdite.
Les programmes et autres publications présentes sur Planète Casio restent la propriété de leurs auteurs et peuvent être soumis à des licences ou copyrights.
CASIO est une marque déposée par CASIO Computer Co., Ltd