Solved

BJB2, ListControl and Native code

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

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues undeā€¦
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

724 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