• Post Reply Bookmark Topic Watch Topic
  • New Topic

rxtx Parallel Port writing causes Java VM to crash  RSS feed

 
Prerak Sheth
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Netbeans: 7.3.1
Java SE: 7.0.25-b17
rxtx: RXTX-2.1.7

Trying to write a simple application to write data on Parallel Port.
Have grounded Pins 11, 12.
The code works fine, but as soon as I write to the output stream of parallel port, the Java SE crashes.

Here is the code.





And here is its output
run:
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
COM1
LPT1
Got port
false: Paper Out
false: Printer Busy
false: Printer Error
true: Printer Selected
false: Timed Out

Then I get a screen about Java SE crash, with following info
Problem signature:
Problem Event Name: APPCRASH
Application Name: java.exe
Application Version: 7.0.250.17
Application Timestamp: 51c4b3fd
Fault Module Name: StackHash_7b25
Fault Module Version: 6.1.7601.17725
Fault Module Timestamp: 4ec49b60
Exception Code: c0000374
Exception Offset: 000c380b
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1033
Additional Information 1: 7b25
Additional Information 2: 7b25c73821ded1fa203a003f4dc668b6
Additional Information 3: d3c0
Additional Information 4: d3c057412fa57cecf2e44c7bf44d08f6

Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt

And finally the following line appears after I close the error dialog box.

Java Result: -1073740940

Help is appreciated!
Thanks,
Prerak
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You probably need to run your code with a debugger. Put break statements in to track where the code is and what the variables are. you should also check with the RxTx folks to make sure your OS is supported. For example, on their Porting page, I see this:

> Things that don't work:
64 Bit Windows (Only termios.c has not been proven to be 64 bit safe)

> Things that partially work:
mingw32 (windows 9* NT*) (no printer support)

But to be honest, I am not sure I am reading that page correctly, so you it is best to ask them directly.
 
Prerak Sheth
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I will try that out
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!