Solved

Why Does PowerBuilder 7.0 Crash Windows 2000?

Posted on 2002-04-23
8
474 Views
Last Modified: 2013-12-26
Hi.

I have a very small sample PowerBuider program that I wish to build into an executable file.

I tried to do this in the usual way, through the project painter. I select Full build with machine code checked and optimize for speed.

I run PB7.0 on Windows 2000 Pro and when I click on the Build button, PowerBuilder crashes. Most of the time, I get the Windows 2000 message:

"PB70.Exe has generated errors. You will need to restart the program." An error log is being created.
One time, and *only* one time, a filename with the path was displayed. When I performed a search, I was unable to find this file!!

Any thoughts? If I could actually read some sort of error log file, I could figure out more of what's going wrong with this Build.

JN
0
Comment
Question by:jnowlin
  • 4
  • 2
  • 2
8 Comments
 
LVL 4

Expert Comment

by:Bhatti
Comment Utility
I don't think that should be happened.

Please copy your PBLs somewhere and then first rebuild the all libraries.

If rebuild is ok. Then try to build your application.

You can also regenerate all objects before builing your application.
You can try to test to build first PBDs.

Check, all files you need for your BUILD are in the same directory.

Please let me know your result.

Best regards


Bhatti
0
 

Expert Comment

by:pjaishankar
Comment Utility
Hi
1. You can optimize your libraries and try to build exe.
2. Before bulding exe with machine code, clear your os temp directory. Becz. Machine code build needs lots of space on head disk. Where as pbd build needs less space only.

Can you pls. tell me ur pbl size.

Regards
Jai

0
 

Author Comment

by:jnowlin
Comment Utility
It's a small program. The pbl is only 370Kb in size.
I will apply these suggestions today.

Jim
0
 

Author Comment

by:jnowlin
Comment Utility
Hi Bhatti,
Well, I did what you suggested and I was able to build an executable (emp_info.exe) file. I tried to run it from Windows Explorer and was informed that I forgot to place (include) two of PB7's run-time dll files:
libjcc.dll
PBvm70.dll
I copied them to the directory in which I was working and, suddenly, this simple application, which connects to a Sybase database just fine when run from the painter, decides it cannot connect to the database! So, the code for the open event of the application - works!
Have I left something out, like another PowerBuilder run-time? All this program uses is a DSN set up in WIN2K to connect to a Adaptive Server Anywhere (.DB) file. The "Test Connection" is successful.
I seem to re-call (barely) something about shared files.

I didn't clear my os temp directory, Jai, as I forgot to do so.

Why would I be able to connect to the database only from within the painter?

Jim
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Accepted Solution

by:
pjaishankar earned 130 total points
Comment Utility
Hi Jim
Try the following.

Copy pbodb*.dll (For ODBC Connection) and pbsyb*.dll (For Sybase Native Driver), ... to your current working directory or windows system32 direcotry and try it.

If again problem, Give the message code and description what you r getting. We will try to find out...?

Regards
Jai
0
 
LVL 4

Expert Comment

by:Bhatti
Comment Utility
Hello Jim,

Writing here some necessary DLLs that needs PB to run. These are runtime libraries.

Name               required for
 ====               ============
 PBVM70.DLL ...........ALL
 LIBJCC.DLL.............ALL
 PBDWE70.DLL........Datawindow and Datastore
 PBRTC70.DLL.........RichText
 PBFNT70.INI............Mapping unavailable fonts
 PBLAB70.INI............Labal DW pres. style predefined Forms
 PBTRA70.DLL.........Datastore Connection tracing

But you need is the PBDWE70.DLL for the Datawindows and datastores. There are some more DLLs for Databases, if you have installed also the driver for the Database.

I hope this will help you. I think when you tried to open some window having datawindow or datastore then PB looks for PBDWE70.DLL and may crash the program or return you an error message.

Try with this dll(PBDWE70.DLL) and let me know the result. If you some more information about PB DLLs let me know.


Best regards.


Bhatti
0
 

Author Comment

by:jnowlin
Comment Utility
Well,
Interesting...
I had copied libjcc.dll and PBvm70.dll to this working directory. I added PBODB70.dll and PBSYB13.dll. I tried to launch this little app - IT WORKED!
HOWEVER-
When I went to access the database, once again, it crashed. So, I went back to PB and thought to myself, maybe if I rebuild it NOW. I rebuilt it and now it works fine.

Jim
0
 

Author Comment

by:jnowlin
Comment Utility
Thank you.

Strive for happiness every day, it "ain't" easy.

Jim
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org (http://seleniumhq.org) Go to that link and select download selenium in the right hand columnThat will then direct you to their downlo…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now