aldweb

Close I. aldweb

Close II. PC Freeware

Close III. Palm Freeware

Close IV. Palm Shareware

Close V. iziBasic Palm

Close VI. Palm Knowledge

Close VII. Pocket Computer

Close VIII. miniPortail

Special !



Mobile version of
the aldweb Site

m.aldweb.com


Neither French, nor English?

Try one of these flags then:
[de] [es] [it] [pt]
Search




Weather / Spam / www

Lyon Weather


aldweb against spam


Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
298 Subscribers
Family's web sites

Webmaster - Infos
Friends News
Visits

   visitors

   visitors online

Poll
What do you think of the new design of the aldweb Site?
 
Great !
Beautiful
Average
So ugly...
Results
forum.gifForum - iziBasic - Topic #1268

Forum - Forum
iziBasic - iziBasic


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

active  Topic # 1268  Use of Menu's on 'old' devices

10/10/2005 @ 22:41
by Mike

Anonymous



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.
Write to Mike   Post an answer  Top

[]   


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

Anonymous

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

SCREEN 2
Write to ktimaster   Post an answer  Top

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

Anonymous

visitor
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
Write to aldweb   Post an answer  Top

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

Anonymous

visitor
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?
Write to Mike   Post an answer  Top

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

Anonymous

visitor
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?
Write to Mike   Post an answer  Top

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

Anonymous

visitor
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
Write to aldweb   Post an answer  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 



 
^ Top ^