Search:

Type: Posts; User: gm3xvr

Search: Search took 0.21 seconds.

  1. Re: Threading problem? - hopefully in the correct forum this time

    Hii Norm.

    I've got the characters all defined now.

    Mnay years ago I wrote a morse code trainer program in GWBASIC, which sent randon 5 letter groups at a target speed (say 25 wpm), but spaced...
  2. Re: Threading problem? - hopefully in the correct forum this time

    Hi Norm.

    Very many thanks for that hint.

    I have the code running now, generating some morse code. It seems a bit cumbersome to have to put:




    MyDot.play();
  3. Re: Threading problem? - hopefully in the correct forum this time

    Hi Norn.

    I am new to java, object oriented programming and threading. My previuos experience was with embedded C where code ran in sequence.

    I have read your previous posts and looked at the...
  4. Re: Threading problem? - hopefully in the correct forum this time

    Hi Norm.

    If I use the following code:




    MyDot.play();
    try
    {
  5. Re: Threading problem? - hopefully in the correct forum this time

    Hi Norm.

    I've had a look but I can't see anything unusual in the code.

    This routine looked the simplest to implement to give me a variable tone and duration, and it works for single beeps, but...
  6. Re: Threading problem? - hopefully in the correct forum this time

    Hi Norm.

    I'm on kitchen duty tonight, so I'll get back to this in a couple of hours time.

    Thanks for your help so far.
  7. Re: Threading problem? - hopefully in the correct forum this time

    Yes. The error is associated with the Thread.sleep(duration); line in the code.

    I only got this up and running yesterday, so this is my first attempt at java. I've done a bit of C programming,...
  8. Re: Threading problem? - hopefully in the correct forum this time

    Hi Norm.

    I'm using NetBeans and the output I get is:

    run:
    caught
    java.lang.RuntimeException: Uncompilable source code - unreported exception java.lang.InterruptedException; must be caught or...
  9. Re: Threading problem? - hopefully in the correct forum this time

    I tried:




    MyDot.play();
    try
    {
    Thread.sleep(duration);
    }
  10. Re: Threading problem? - hopefully in the correct forum this time

    Hi Norm

    I'm still reading the book, so had to jump forward to that section.

    I tried:




    MyDot.play();
  11. Re: Threading problem? - hopefully in the correct forum this time

    I tried:




    MyDot.play();
    Thread.sleep(duration);


    but I get the error:
  12. Threading problem? - hopefully in the correct forum this time

    I'm just writing my second Java program (after "Hello World!") to generate tones for a morse code program. I've found some code, but when I try to run it all the tones appear at the same time. How do...
Results 1 to 12 of 12