?
Solved

BJB2, ListControl and Native code

Posted on 1998-06-17
4
Medium Priority
?
235 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 2

Author Comment

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

Accepted Solution

by:
aziz061097 earned 1600 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

Independent Software Vendors: 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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
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 will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses
Course of the Month15 days, 11 hours left to enroll

741 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