|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Sujet n° 1268 |
Use of Menu's on 'old' devices |
le 10/10/2005 @ 22:41 par Mike
|
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. |
|
|
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
visiteur |
My only thought with that error is to set the screen mode to 2
SCREEN 2 |
|
|
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
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 |
|
|
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
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? |
|
|
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
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? |
|
|
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
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 |
|
|
sujet actif
sujet clos
Important!
Nouveau message -
Rectifier message
Clôturer sujet
Remonter
|
|