1. John Bailey
  2. PowerBuilder
  3. Wednesday, 26 January 2022 15:00 PM UTC

Using PB 2019 R2 and trying to edit function object results in entire IDE crashing. 

Can "edit source" (not in painter) of any function object and source looks perfectly normal,

but cannot open function in painter.

Believe all other painters work, it is just function painter that is crashing.

Can create new function in function painter, but would not save new function.

Something in my registry messed up? Any advice appeached.

John Bailey Accepted Answer Pending Moderation
  1. Wednesday, 26 January 2022 16:31 PM UTC
  2. PowerBuilder
  3. # 1

Thanks for the quick response and it is all working now!

When I submitted question I was thinking it was something similar to the DW crashing of your 3rd response,
but I never tried doing that. I bet it would have worked, but I didn't see that post until after I got it working.

I optimized the PBL as you suggested, but the painter was crashing on any/all functions,
so I didn't want to do the create and delete all of the functions. Way too much work.

But I could create a new function and the painter would open. So I did that to open the painter.

I noticed the open painter window ribbon bar extended in a single line off the end of the window.
I had in other painters added some custom buttons, making the "PowerBar" longer and this pushed the painterbar over.

So I moved the "painterbar" to be under the PowerBar, and thus the ribbon fit in the open window.

In addition I deleted the current layout (under view) and resaved the default layout.

Now the function painter works perfectly.

Again thanks for the responses. 

~john

 

Comment
  1. John Fauss
  2. Wednesday, 26 January 2022 16:51 PM UTC
I'm glad Miguel was able to help you, John! Would you please mark this question/issue as resolved? Thanks!
  1. Helpful
  1. Miguel Leeuwe
  2. Wednesday, 26 January 2022 19:29 PM UTC
That's great! And you've showed us another method of fixing the layout problems!

regards.
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Wednesday, 26 January 2022 15:16 PM UTC
  2. PowerBuilder
  3. # 2

Hi,

In the past there's been quite a few errors with global functions. One of them, was that sometimes the header in the code is repeated twice and the code is also duplicated.

  1. Optimize the PBL file.
  2. Edit the source code and copy the code. Make sure the code is not duplicated somehow.
  3. Create a new function and paste the code.
  4. Delete the old funcion and
  5. rename your new function to be called the same as your old function.

regards.

Comment
  1. Miguel Leeuwe
  2. Wednesday, 26 January 2022 15:19 PM UTC
Oh, okay, I see you say you cannot save a new function either?

You have to somehow reset your function painter's layout to "Default" probably. You can do that by editing the pb.ini file or editing some registry settings. The way to do that has been explained in several Q&A's. Let me have a look if I can find one.
  1. Helpful 1
  1. Miguel Leeuwe
  2. Wednesday, 26 January 2022 15:22 PM UTC
Here's an example for how to reset the datawindow painter when it crashes, see if there's similar entry for function or global funcions. I can't check myself now, since I'm doing stuff on Linux.

https://community.appeon.com/index.php/qna/q-a/datawindow-crashes-pb2019?limitstart=0#reply-30791

  1. Helpful 1
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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.