1. Thomas George
  2. PowerBuilder
  3. Thursday, 14 March 2019 20:11 PM UTC

I'm not sure what I did, I was in the process of changing sql on several datawindows, and I somehow got myself into a state where whenever I open any datawindow, the IDE crashes on me. I'm using PB 2017 R3, build 1858.

At first I thought it was tied to the ones I was changing, but even when I look at other ones that should be fine, I get the problem.

I tried starting a new workspace, thinking somehow the problem was isolated to my workspace, but I'm getting the same problem there.

I'm not sure how to clean it up, short of trying to uninstall and reinstall PowerBuilder.

Any thoughts?

 

Thanks,

Tom

 

Thomas George Accepted Answer Pending Moderation
  1. Friday, 15 March 2019 12:18 PM UTC
  2. PowerBuilder
  3. # 1

Well, that didn't take long to mess it up again. Here's what seems to be causing it:

I'm editing source on a datawindow, and trying to copy source from one datawindow into another. When I go to save, I get a syntax error on the save, so that fails. Then from that point on, I cannot open any datawindow in the datawindow painter without the IDE crashing.

I'm going to see if I can learn anything about the latest file that was modified to try to pinpoint how I might fix this again without uninstalling and reinstalling....

 

Tom

 

Comment
  1. Brad Mettee
  2. Friday, 15 March 2019 13:29 PM UTC
It's probably not a file that was modified, but a registry entry.

With PB closed, try this:

Run RegEdit

Navigate to HKEY_CURRENT_USER\Software\Sybase\Powerbuilder\17.0\Layout\Default

Delete (or rename) the Datawindow string entry on the right



Run up PB and try opening a datawindow again.



If it works, modify your layout a bit so it creates a new one, then export the entire Default key to a .reg file so you can double click it, and re-register the "right" settings if it happens again in the future.

  1. Helpful
  1. Chris Pollach @Appeon
  2. Friday, 15 March 2019 14:17 PM UTC
Hi Brad;

That was probably it. I was going to suggest that course of action next. Of course, re-installing would reset all of that.

Regards ... Chris
  1. Helpful
There are no comments made yet.
Thomas George Accepted Answer Pending Moderation
  1. Friday, 15 March 2019 12:09 PM UTC
  2. PowerBuilder
  3. # 2

Chris,

 

I actually was able to open the workspace successfully. Fortunately, I didn't have any datawindows open on my last exit, so it wasn't trying to open any and therefore not crashing. 

So I was able to open windows and NVO's, just not datawindows.

 

But I will keep your instructions in mind if I ever get into the situation where the IDE crashes on application start, when reloading prior objects.

 

Olan,

 

I tried a different workspace with a fresh build of PBDs from an automated build process, but saw the same behavior.

 

Ultimately, I uninstalled PowerBuilder and re-installed it, and now everything is working fine again. I just have to re-setup my toolbar items, db profiles, etc. I'll mark the issue closed (if I can do that).

 

Thanks for the suggestions!

Comment
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Friday, 15 March 2019 04:28 AM UTC
  2. PowerBuilder
  3. # 3

It sucks when this happens.

Get into your Workspace.

Ensure that there is only one target in the workspace.

Look at the Library list and ensure it is correct.

Look at the Library Painter and ensure you are looking at the correct set offolders.

One the above is verifdied, rebuild the application.

Delete all the PBDs and rebuild the entire app again.

 

Nnow try opening a window, then an object, then a DW.

 

Good Luck,

Olan

Comment
There are no comments made yet.
Thomas George Accepted Answer Pending Moderation
  1. Thursday, 14 March 2019 20:26 PM UTC
  2. PowerBuilder
  3. # 4

Chris,

 

Unfortunately, no, that did not affect the problem. Thanks for the suggestion.

 

Tom

 

Comment
  1. Chris Pollach @Appeon
  2. Thursday, 14 March 2019 20:36 PM UTC
Hi Tom;

Could be that your WorkSpace and or Target objects (files) have been corrupted. The IDE is probably trying to get back to the last project. Try this ...



Try renaming your PB App's main folder .. say for example "Tom" => "Tom_BkUp".

Now try restarting the IDE.

If the IDE restarts, go to the System Options and uncheck the "Reload Painters" option under the "Workspaces" tab page. Unchecking the "Reopen Workspace at start-up" might be wise as well.

Close IDE.

Rename your PB App folder back "Tom_BkUp" => "Tom".

Restart the IDE.

See if you can now reopen the PB Workspace that was crashing.



HTH

Regards ... Chris
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 14 March 2019 20:23 PM UTC
  2. PowerBuilder
  3. # 5

Hi Tom;

1) Start the REGEDIT utility

2) Navigate to "Computer\HKEY_CURRENT_USER\Software\Sybase\PowerBuilder\17.0"

3) Delete the "Toolbar" entry and all of its sub-entries.

4) Restart your PB IDE and see if the DW Painter is OK now.

HTH

Regards ... Chris

Comment
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.