×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

DTO by JAVA

DTO by JAVA

DTO by JAVA

(OP)

I'm trying to use "JaWin", a tool that wraps JNI in order to allow a ddl to be accessed by Java Code.

What I'm trying to do is reproducing (in Java) the example i found at http://www.pervasive.com/documentat...ploy_PSQLR3.pdf

I succeed in getting the connection, and from the resulting object I can "see" the databases registered on the system.

Then, I try to create the Database, setting the requested parameters... but the creation fails, returning me an Access Violation error (my thread seems not to have the permission to read the location of the virtual memory).

At the moment, can't understand if the error is given by the interface built with JaWin or by my code, perhaps because of some wrong parameter...

What I'm asking is:

- What's the meaning of the "DTO.DtoSession.1" and "DTO.DtoDatabase.1" strings, passed as parameters in the CreateObject methods?

- Are access violation errors possible also in COM programming? If so, what would you suggest me to check?

- Are there other aspects I should have to take care of (such as inizializations, allocating and so on), if I ran the InstallScript Sample linked above?

Any help will be very appreciated!!

RE: DTO by JAVA

To answer the questions:
- What's the meaning of the "DTO.DtoSession.1" and "DTO.DtoDatabase.1" strings, passed as parameters in the CreateObject methods?
These are the names of the COM objects in the DTO library. They are used to access the methods and properties within the DTO object.

- Are access violation errors possible also in COM programming? If so, what would you suggest me to check?
Access Violations are always possible when developing programs and are usually caused by uninitialized variables or incorrect coding.

- Are there other aspects I should have to take care of (such as inizializations, allocating and so on), if I ran the InstallScript Sample linked above?
InstallScript and Java are very different so you'll need to convert what the InstallScript does to Java.  That includes any allocations and deallocations, etc.

Mirtheil
Certified Pervasive Developer
Certified Pervasive Technician
http://www.mirtheil.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close