Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

menu limits

4 posts in Objects Last posting was on 2008-06-12 18:15:36.0Z
M. Searer Posted on 2008-05-11 19:41:51.0Z
From: "M. Searer" <nospam@nospam.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: menu limits
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48274bff@forums-1-dub>
Date: 11 May 2008 12:41:51 -0700
X-Trace: forums-1-dub 1210534911 10.22.241.152 (11 May 2008 12:41:51 -0700)
X-Original-Trace: 11 May 2008 12:41:51 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9684
Article PK: 736826

anyone have any idea if PB (or windows) has some sort of limit on the number of
menu items/menus open at once?
I have a fairly heavy menu (dynamically created) that will cause PB to crash
(both the exe and runtime) with no error message after about 30 open windows
(they all have the same general menu setup).
I have a system option to push the dynamically created menu items into a list on
a window instead. This means the menu is much much smaller; at this point I can
open about 90-100 windows.

These are all windows that are open at the same time. Closing windows and then
reopening them is fine as long as the total number of open windows is below the
above listed limits.

In general, the 30 limit is fine, but I didn't know if this is something wrong
with PB, or maybe a windows resource issue.
PB 11.1 and windows XP.


Jeremy Lakeman Posted on 2008-05-12 07:27:03.0Z
From: Jeremy Lakeman <jeremy.lakeman@gmail.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: menu limits
Date: Mon, 12 May 2008 00:27:03 -0700 (PDT)
Organization: http://groups.google.com
Lines: 23
Message-ID: <d4018082-ccc5-4348-8035-57085725fea4@p25g2000hsf.googlegroups.com>
References: <48274bff@forums-1-dub>
NNTP-Posting-Host: 203.122.242.105
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1210577223 1861 127.0.0.1 (12 May 2008 07:27:03 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 12 May 2008 07:27:03 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: p25g2000hsf.googlegroups.com; posting-host=203.122.242.105; posting-account=euaBtgoAAAC_vDxfsxmpMKlBxHaHpmRS
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 asp.essential.intranet:3128 (squid/2.5.STABLE8)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!newsfeed.yul.equant.net!nntp1.roc.gblx.net!nntp.gblx.net!nntp.gblx.net!newscon02.news.prodigy.net!prodigy.net!news.glorb.com!postnews.google.com!p25g2000hsf.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9685
Article PK: 736823


On May 12, 4:41 am, "M. Searer" <nos...@nospam.com> wrote:
> anyone have any idea if PB (or windows) has some sort of limit on the number of
> menu items/menus open at once?
> I have a fairly heavy menu (dynamically created) that will cause PB to crash
> (both the exe and runtime) with no error message after about 30 open windows
> (they all have the same general menu setup).
> I have a system option to push the dynamically created menu items into a list on
> a window instead. This means the menu is much much smaller; at this point I can
> open about 90-100 windows.
>
> These are all windows that are open at the same time. Closing windows and then
> reopening them is fine as long as the total number of open windows is below the
> above listed limits.
>
> In general, the 30 limit is fine, but I didn't know if this is something wrong
> with PB, or maybe a windows resource issue.
> PB 11.1 and windows XP.

Does each window really need its own menu? Can you get away with
having a single menu class on a frame window, with no menu defined on
each sheet?

How are you dynamically creating the menu?


M. Searer Posted on 2008-05-12 20:00:29.0Z
From: "M. Searer" <nospam@nospam.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <48274bff@forums-1-dub> <d4018082-ccc5-4348-8035-57085725fea4@p25g2000hsf.googlegroups.com>
Subject: Re: menu limits
Lines: 66
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4828a1dd$1@forums-1-dub>
Date: 12 May 2008 13:00:29 -0700
X-Trace: forums-1-dub 1210622429 10.22.241.152 (12 May 2008 13:00:29 -0700)
X-Original-Trace: 12 May 2008 13:00:29 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9686
Article PK: 736825

security settings are set on each menu dynamically at runtime;
So window A may be read only and thus the add/new/update menu options have to be
disabled, while window B has full rights to add/new/update and so the menu
options are there.
==============

A base menu (parent from below) exists with common stuff like new, save, copy,
help etc.
Then each menu item is created and added onto the base menu via a loop:

lm_newmenu = CREATE m_nav_dynamic_contemporary
ll_index = upperbound(am_menu.Item) + 1
am_menu.Item[ ll_index ] = lm_newmenu

An array of menus are kept that correspond to the top level menus (what is at
the same level as File, Edit, and Help). This is done so that the menus aren't
destroyed and created each time, but just a reference to the top level menus are
reused. This makes the generation of the menus (and thus window opens) much
faster. So, the top level menus (usually between 3-7) are created with all of
their submenu items just once upon log in.

They are then set on the main menu dynamically similar to what was listed above
(without the create since they already exist) everytime a window is opened.
for ll_topmenu = 1 to il_TotalTopLevelMenus
lm_parent.item[ UPPERBOUND(lm_parent.item) + 1] = im_TopLevelmenus[ll_topmenu]
next

lm_parent.item[1].hide()
lm_parent.item[1].show()

"Jeremy Lakeman" <jeremy.lakeman@gmail.com> wrote in message
news:d4018082-ccc5-4348-8035-57085725fea4@p25g2000hsf.googlegroups.com...
> Does each window really need its own menu? Can you get away with
> having a single menu class on a frame window, with no menu defined on
> each sheet?
>
> How are you dynamically creating the menu?
> On May 12, 4:41 am, "M. Searer" <nos...@nospam.com> wrote:
>> anyone have any idea if PB (or windows) has some sort of limit on the number
>> of
>> menu items/menus open at once?
>> I have a fairly heavy menu (dynamically created) that will cause PB to crash
>> (both the exe and runtime) with no error message after about 30 open windows
>> (they all have the same general menu setup).
>> I have a system option to push the dynamically created menu items into a list
>> on
>> a window instead. This means the menu is much much smaller; at this point I
>> can
>> open about 90-100 windows.
>>
>> These are all windows that are open at the same time. Closing windows and
>> then
>> reopening them is fine as long as the total number of open windows is below
>> the
>> above listed limits.
>>
>> In general, the 30 limit is fine, but I didn't know if this is something
>> wrong
>> with PB, or maybe a windows resource issue.
>> PB 11.1 and windows XP.
>


M. Searer Posted on 2008-06-12 18:15:36.0Z
From: "M. Searer" <nospam@nospam.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <48274bff@forums-1-dub>
In-Reply-To: <48274bff@forums-1-dub>
Subject: Re: menu limits
Lines: 24
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18000
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <485167c8$1@forums-1-dub>
Date: 12 Jun 2008 11:15:36 -0700
X-Trace: forums-1-dub 1213294536 10.22.241.152 (12 Jun 2008 11:15:36 -0700)
X-Original-Trace: 12 Jun 2008 11:15:36 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9722
Article PK: 736853

The problem is in the OS. Apparently XP has resource contraint issues.
The problem does not exist when running the application under Vista.

"M. Searer" <nospam@nospam.com> wrote in message
news:48274bff@forums-1-dub...
> anyone have any idea if PB (or windows) has some sort of limit on the
> number of menu items/menus open at once?
> I have a fairly heavy menu (dynamically created) that will cause PB to
> crash (both the exe and runtime) with no error message after about 30 open
> windows (they all have the same general menu setup).
> I have a system option to push the dynamically created menu items into a
> list on a window instead. This means the menu is much much smaller; at
> this point I can open about 90-100 windows.
>
> These are all windows that are open at the same time. Closing windows and
> then reopening them is fine as long as the total number of open windows is
> below the above listed limits.
>
> In general, the 30 limit is fine, but I didn't know if this is something
> wrong with PB, or maybe a windows resource issue.
> PB 11.1 and windows XP.
>