aldweb

Fermer I. aldweb

Fermer II. Gratuitiels PC

Fermer III. Gratuitiels Palm

Fermer IV. Partagiciels Palm

Fermer V. iziBasic Palm

Fermer VI. Connaissance Palm

Fermer VII. Ordinateur Poche

Fermer VIII. miniPortail

Spécial !



Version mobile
de l'aldweb Site

m.aldweb.com


Ni Français, ni Anglais ?

Essayez donc l'un de ces drapeaux :
[de] [es] [it] [pt]
Recherche




Météo / Spam / www

Météo Lyon


aldweb contre le SPAM


Newsletter
Pour avoir des nouvelles de ce site, inscrivez-vous à notre Newsletter.
S'abonner
Se désabonner
298 Abonnés
Sites web de la famille

Webmaster - Infos
News Amis
Visites

   visiteurs

   visiteurs en ligne

Sondage
Comment trouve-tu le nouvel habillage de l'aldweb Site ?
 
Superbe !
Joli
Moyen
Moche...
Résultats
forum.gifForum - iziBasic - Sujet n°1268

Forum - Forum
iziBasic - iziBasic


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257

actif  Sujet n° 1268  Use of Menu's on 'old' devices

le 10/10/2005 @ 22:41
par Mike

Anonyme



As an interesting project, I decided to try and get my AutoManager application to run on my Vx. I have used no code tagged as needing a version of PalmOS above v3.5 in my project so thought it would work...unhappily, I was wrong.

What I got was:
MemoryMgr.c, Line:4425, Nil Ptr


I eventually tracked this down (by a process of elimination) to the Menu Objects included in my resource file. Once these were removed, the program didn't work very well but it did work - this error was removed.

I'm afraid I've no idea whether the problem lies at the resource file 'end' or the iziBasic 'end' but will continue to experiment and see if I can mak it all work. It seems to have a problem reading any of the forms from the Resource file also...but I haven't gone too far in investigating that one yet.
Ecrire à Mike   Poster une réponse  Haut

[]   


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1
--------
le 11/10/2005 @ 06:20
par ktimaster

Anonyme

visiteur
My only thought with that error is to set the screen mode to 2

SCREEN 2
Ecrire à ktimaster   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 2
--------
le 11/10/2005 @ 17:09
par aldweb

Anonyme

visiteur
Hello,

I also noticed that the MENU usage differs between Palm OS 5 and previous releases of Palm OS (i.e. < 5), when using custom resource forms (called by OPENFORM).

The "MemoryMgr.c, Line:4425, Nil Ptr" error message tells that the MENU points to nowhere (nil value) instead of a MBAR ressource.


Overall, here is my understanding of these Palm OS behaviours with iziBasic:

If Palm OS 5:
- when a MBAR ID is assigned to a tFORM, calling OPENFORM correctly and automatically links the menu to the form

If Palm OS < 5:
- when a MBAR ID is assigned to a tFORM, calling OPENFORM does not link the menu to the form

On my side, I have no idea where I should upgrade the iziBasic code to take into account the Palm OS version. But, this issue can easily be solved in an iziBasic source code!
The workaround is the following:
V$­­=GETOSVER$­­
' assign menu 2 to the new form if Palm OS < 5
IF V$­­<"5.0" MENU 2
OPENFORM 100
[do whatever is needed with the form]
CLOSEFORM
' back to main menu of main form
IF V$­­<"5.0" MENU 1


Cheers,
aldweb
Ecrire à aldweb   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 3
--------
le 11/10/2005 @ 18:32
par Mike

Anonyme

visiteur
Aldweb,

You have my Auto application code now so you will see that in that case, I am still using the 'early' iziBasic implementation of redrawing the main form programattically for each of the main screens and assigning the menu from the code - yet this is still giving me the same problems. Would moving to a form based approach (as I am planning) and using the example code overcome this do you think?
Ecrire à Mike   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 4
--------
le 11/10/2005 @ 18:41
par Mike

Anonyme

visiteur
Aldweb,

You have my Auto application code now so you will see that in that case, I am still using the 'early' iziBasic implementation of redrawing the main form programattically for each of the main screens and assigning the menu from the code - yet this is still giving me the same problems. Would moving to a form based approach (as I am planning) and using the example code overcome this do you think?
Ecrire à Mike   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 5
--------
le 11/10/2005 @ 18:50
par aldweb

Anonyme

visiteur
Mike,

As you know, I only search in some source code what I am looking for, this was the menu for instance. It is my policy never to study someone's code unless it is made available open source.

So, when I saw your request about the menu, I quickly answered with what I just faced not long ago.

Now, I am pretty sure that the menu works very fine, because I have been playing a lot with it recently (for a new software... to be released soon...).
Therefore, I guess that at some point, your source code should have some issue. Then, I might give a deeper look into it!

Cheers

@+
aldweb
Ecrire à aldweb   Poster une réponse  Haut
actif sujet actif   clos sujet clos   Important! Important!   Nouveau Nouveau message   -   Rectifier Rectifier message   Clôturer Clôturer sujet   Remonter Remonter
[]
Catégories de discussion  Forum 



 
^ Haut ^