Solved

BJB2, ListControl and Native code

Posted on 1998-06-17
4
217 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
javap bin 2 41
javap not working 8 58
Is Applet the way to go for my drag and drop system? 8 25
Java program running SQL query 5 37
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

837 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