Results 1 to 5 of 5
  1. #1
    newtonmark
    Guest

    Default Overflow exception Runtime '6',

    Hello, when i use the Currency server API, i got this exception after i user the example client to connect my own application implemnet server API. Can you give me some advice on the exception?Overflow exception Runtime '6',

  2. #2
    newtonmark
    Guest

    Exclamation Overflow exception Runtime '6'

    Hello, when i use the Currency server API, i got this exception after i user the example client to connect my own application implemnet server API. Can you give me some advice on the exception?Overflow exception Runtime '6',

  3. #3

    Post

    Hello newtonmark,

    This is a problem with the data supplied through the interface. The error may show up if you would have sent a double value to an integer variable which it seems that it was not handled in your application. So, first check your data, change it and try once again and see it.

    Also, this error may occur when the value returned from some part of your application is too large for the default type that will contain the value.

  4. #4
    AlgoNaute
    Guest

    Default

    Hi Yousef,

    I am following the topics because newtonmark who works with me has been banned (an error I guess) and he can not reply... So here is its answer.

    Hello

    I use the following function to broadcasting the prices

    PHP Code:
    string symbolid m_instruments.Symbol();

                     
    double ask double.Parse(AskPrices.Price.ToString());

                    
    double bid double.Parse(BidPrices.Price.ToString());
                    
    double high double.Parse(DailyHighestTradedPrice.ToString());
                    
    double low double.Parse(DailyLowestTradedPrice.ToString());

                    
    string bank "bank";
                    
    int volume 0;
    vertexServer.AddPriceBuffer(ref symbolidref askref bidref highref lowbankvolume); 
    According to your CurrencyServer API, we need to invoke this method to add the price to buffer before broadcast it.

    "vertexServer.AddPriceBuffer(ref symbolid, ref ask, ref bid, ref high, ref low, bank, volume);"[PHP]

    They only accept symbolid as string, ask, bid, high, low as double, bank as string and volume as int. I do not know how it is possible for me to pass a double value to an integer. I also do not know what do you mean by the data is large? Thank you.
    Last edited by AlgoNaute; 04-26-2012 at 07:36 PM.

  5. #5

    Default Integer Value

    Hello,

    We have resolved the case of banning the other user as because the automation anti-spam protection module banned the user because of a mistaken rule and now everything is fine.

    For the large amount, and integer can only hold numbers between -32768 and +32767. If the value is larger than that, it may cause an Overflow exception. Make sure of the value by debugging the project and by going through the broadcasting procedure to find out the value.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 11-29-2011, 10:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •