Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Roedy Green Newsgroups: comp.lang.java.gui Subject: Re: How to force the timer to start Date: Sat, 26 Nov 2011 09:59:53 -0800 Organization: Canadian Mind Products Lines: 26 Message-ID: References: <3be9f413-0634-4b56-8e24-8d85dd121793@d5g2000prf.googlegroups.com> <7db36a79-0a48-47f4-bb85-a4a88633c4b8@h30g2000pro.googlegroups.com> Reply-To: Roedy Green NNTP-Posting-Host: Z2l1DcCELS0rATq8NqV4Sw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 6.00/32.1186 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.gui:4768 On Fri, 25 Nov 2011 15:14:37 -0800 (PST), simplicity wrote, quoted or indirectly quoted someone who said : > >I did try to run C stuff in a dedicated thread. No effect. > >I see a bit of improvement when I force the mouse movement with > >Robot r =3D new Robot(); >r.mouseMove(100, 100); > >but I am laughing at myself when I look at this code. I quite in the dark about what your code is doing. I will pass on this one more rule of thumb. Test your C code in a C harness, no Java at all. Only once it is working perfectly hook it into Java with JNI glue. It is a lot easier to debug in a pure C environment. -- Roedy Green Canadian Mind Products http://mindprod.com How long till someone puts out a car navigator with the realistic side comments of a real back seat driver.