Solved

Why Does PowerBuilder 7.0 Crash Windows 2000?

Posted on 2002-04-23
8
485 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
ID: 6970745
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
ID: 6974601
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
ID: 6975056
It's a small program. The pbl is only 370Kb in size.
I will apply these suggestions today.

Jim
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 

Author Comment

by:jnowlin
ID: 6975556
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
 

Accepted Solution

by:
pjaishankar earned 130 total points
ID: 6976269
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
ID: 6976568
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
ID: 6979429
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
ID: 6979434
Thank you.

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

Jim
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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. …
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

786 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