Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Unable to Print
 Post subject: Unable to Print Post rating: 0   New post Posted: Sun 28 Mar, 2010, 14:10 

User rating: 0
Joined: Sun 28 Mar, 2010, 13:33
Posts: 6
Hi,

I'm evaluating JForex, but am unable to print any debug messages (or debug properly using Netbeans - see other topic).

Code as follows:

    public void onStart(IContext ic) throws JFException {
       orderEngine = ic.getEngine();
       indicatorManager = ic.getIndicators();
       historyManager = ic.getHistory();
       console = ic.getConsole();
   console.getErr().print("TEST");
         }



Nothing appears in the messages window...

I've also got a similar print line within onBar... which is definitely getting called as I'm getting hundreds of runtime errors...


David.


 
 Post subject: Re: Unable to Print Post rating: 0   New post Posted: Mon 29 Mar, 2010, 09:48 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi David,
its because you are using print function. This function will print message only after the function println is called.
Try to use this line ;)
console.getErr().println("TEST");


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com