1. John Vanleeuwe
  2. PowerBuilder
  3. Saturday, 23 March 2024 14:47 PM UTC

Hi guys,


I am experiencing a problem in my pb app , PB 2019 R3 but the problem was already there in previous versions.

i have a function that closes some pb windows , opens a new window and so on.

the first time i run this function (after pb start) i don't have any problem, all works perfectly fine.

the second time i run this function , my pb menu becomes irresponsive. I can click on the menu , i can visually see the button toggle , but no code is getting executed. i have tried the /pbdebug option as well , but no code inside the menu is being executed.

when i close my pb application , start it up again , the first time it works again , at the second time the menu is irresponsive again :(


so my question is : what pb action can make a menu become irresponsive please ? just looking for some general pointers/tips :)







John Fauss Accepted Answer Pending Moderation
  1. Saturday, 23 March 2024 22:31 PM UTC
  2. PowerBuilder
  3. # 1

Hi, John -

I think we're going to need more information, such as:

1. Is this an MDI app and is the non-responsive menu an MDI (frame) menu, a sheet menu, a popup menu, a RibbonBar menu?
2. Is the function that can run only once a global function, menu function, window function, user object function, etc.?
3. How is it triggered (command button clicked event, popup menu item's clicked event, frame menu item's clicked event, etc. and is the function triggered or posted?
4. Is this legacy app built on an object framework, such as the PFC or Standard Tool & Die (STD)?
5. Once you execute the function initially (successfully), are you able to perform other tasks (open/minimize/close windows) normally before attempting to run the function the second time?
6. Is there any database activity pending (long-running database query, for example)?
7. Can you post the source code for this function?
8. Can you provide a "stripped-down, bare bones" example app that exhibits the same behavior?
9. Does this issue occur when running from the PB IDE, running the compiled app, or both?
10. Is the app being deployed as 32-bit or 64-bit?

Best regards, John

  1. Chris Pollach @Appeon
  2. Saturday, 23 March 2024 23:53 PM UTC
Great points John!

I'm wondering if it's a simple problem in a CloseQuery event of one of those Window dialogues ( RC +1 ) that stops the dialogue from closing?
  1. Helpful
There are no comments made yet.
  • Page :
  • 1

There are no replies made for this question yet.
However, you are not allowed to reply to this question.