Solved

BJB2, ListControl and Native code

Posted on 1998-06-17
4
221 Views
Last Modified: 2010-03-30
Nasty one here...
I'm running Borland Java Builderr CLient/Server v. 2.
I've got Borland C builder Professional (1 and 3) and NT 4.0.
I've got a very simple jave program that loads a DLL (System.loadLibrary("")) and then tries to create a borland.jbcl.control.ListControl.
It does not RUN under BJB2, but I can DEBUG it and it works fine. If I try to execute it from the command line, I get a floating point exception and the program crashes.  If I don't load the DLL, it works fine. The DLL contains only a single summy function.
Under BJB, it works fine.
I hope someone out there has come across this one and knows a fix (not using the ListControl is not my favourite option, cos it's  just hiding the bug).
0
Comment
Question by:sprinkmeier
  • 2
  • 2
4 Comments
 
LVL 2

Author Comment

by:sprinkmeier
ID: 1223351
Adjusted points to 400
0
 
LVL 2

Accepted Solution

by:
aziz061097 earned 400 total points
ID: 1223352
I think BJB uses some other DLL also apart from the one or more DLLs you are using to get the ListControl functionality. This is the reason it works in the BJB environment and crashes otherwise. I have a simple utility (I can e-mail it to you if you need) which will detect all DLLs or libraries a particular DLL requires. With this you will be sure if all DLLs are included. If you load these required dlls you must be able to work fine.
0
 
LVL 2

Author Comment

by:sprinkmeier
ID: 1223353
Thankyou, I'll try the utility and see if it solves my problem.
Even if it does not, have the points for the utility alone!
Please email to:
ebor@senet.com.au
0
 
LVL 2

Expert Comment

by:aziz061097
ID: 1223354
Hi sprinkmeier,
 
    I have emailed to you the utility. If you do not recieve it please let me know.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
hibernate example for saving data 19 73
mysql jsp example issue 32 69
Bot application - advice 3 58
java mysql insert application 14 41
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

713 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