Click here to Skip to main content
15,922,650 members
Home / Discussions / C#
   

C#

 
AnswerRe: Long and INT64 not big enough Pin
Christian Graus15-May-08 19:31
protectorChristian Graus15-May-08 19:31 
GeneralRe: Long and INT64 not big enough Pin
MumbleB15-May-08 19:40
MumbleB15-May-08 19:40 
GeneralRe: Long and INT64 not big enough Pin
Christian Graus15-May-08 19:49
protectorChristian Graus15-May-08 19:49 
GeneralRe: Long and INT64 not big enough Pin
Vikram A Punathambekar15-May-08 20:21
Vikram A Punathambekar15-May-08 20:21 
GeneralRe: Long and INT64 not big enough Pin
MumbleB15-May-08 20:24
MumbleB15-May-08 20:24 
AnswerRe: Long and INT64 not big enough [modified] Pin
Guffa15-May-08 20:11
Guffa15-May-08 20:11 
AnswerRe: Long and INT64 not big enough Pin
Luc Pattyn15-May-08 21:44
sitebuilderLuc Pattyn15-May-08 21:44 
GeneralRe: Long and INT64 not big enough Pin
MumbleB15-May-08 22:50
MumbleB15-May-08 22:50 
Hi Luc. I think I may have found the problem. I shold have gone back to the route of where it could have stemmed from which is at the import stage. I was importing them as Int32's. I changed that now and it seems to be working. I just need to check this to see if I get the same total as what the app is getting now.

How do I get this to run faster. It seems to take a good 2 minutes to import and calculate 3500 records. Below the full code listing.

    FileHelperEngine<imphash> engine = new FileHelperEngine<imphash>();

    engine.ErrorManager.ErrorMode = ErrorMode.SaveAndContinue;

    imphash[] res = engine.ReadFile(filepath);

    if (engine.ErrorManager.ErrorCount > 0)
        engine.ErrorManager.SaveErrors("Errors.txt");

    foreach (imphash hsh in res)
    {
        txtboxdisplay.Text += hsh.Field1 + Environment.NewLine;

    }
    long sum = 0;
    foreach (imphash hsm in res)
    {
        sum += Convert.ToInt64(hsm.Field1.ToString());
    }
    txtboxdsptxt.Text = (sum.ToString() + Environment.NewLine);
}


Excellence is doing ordinary things extraordinarily well.

AnswerRe: Long and INT64 not big enough Pin
MumbleB15-May-08 22:55
MumbleB15-May-08 22:55 
GeneralRe: Long and INT64 not big enough Pin
Daniel Grunwald15-May-08 23:02
Daniel Grunwald15-May-08 23:02 
GeneralRe: Long and INT64 not big enough Pin
Luc Pattyn15-May-08 23:01
sitebuilderLuc Pattyn15-May-08 23:01 
GeneralRe: Long and INT64 not big enough Pin
MumbleB15-May-08 23:16
MumbleB15-May-08 23:16 
AnswerBut decimal and ulong are Pin
Reelix15-May-08 23:36
Reelix15-May-08 23:36 
AnswerRe: Long and INT64 not big enough Pin
#realJSOP15-May-08 23:40
professional#realJSOP15-May-08 23:40 
GeneralRe: Long and INT64 not big enough Pin
MumbleB16-May-08 0:29
MumbleB16-May-08 0:29 
Questionhow do i pass optional parameter to a method in C#.net like VB.Net Optional Keyword ? Pin
koolprasad200315-May-08 19:17
professionalkoolprasad200315-May-08 19:17 
AnswerRe: how do i pass optional parameter to a method in C#.net like VB.Net Optional Keyword ? Pin
Christian Graus15-May-08 19:19
protectorChristian Graus15-May-08 19:19 
AnswerRe: how do i pass optional parameter to a method in C#.net like VB.Net Optional Keyword ? Pin
Guffa15-May-08 19:28
Guffa15-May-08 19:28 
AnswerRe: how do i pass optional parameter to a method in C#.net like VB.Net Optional Keyword ? Pin
Laddie15-May-08 20:00
Laddie15-May-08 20:00 
AnswerRe: how do i pass optional parameter to a method in C#.net like VB.Net Optional Keyword ? Pin
Udayakumar Mathivanan14-Aug-09 3:23
professionalUdayakumar Mathivanan14-Aug-09 3:23 
QuestionUncheck "Automatically Detect Settings"optionin IE Pin
sandeep kumar pundhir15-May-08 18:51
sandeep kumar pundhir15-May-08 18:51 
AnswerRe: Uncheck "Automatically Detect Settings"optionin IE Pin
Christian Graus15-May-08 19:20
protectorChristian Graus15-May-08 19:20 
GeneralRe: Uncheck "Automatically Detect Settings"optionin IE Pin
sandeep kumar pundhir15-May-08 20:11
sandeep kumar pundhir15-May-08 20:11 
AnswerRe: Uncheck "Automatically Detect Settings"optionin IE Pin
sunspeed15-May-08 20:52
sunspeed15-May-08 20:52 
QuestionCSV File Pin
senthilsstil15-May-08 18:37
senthilsstil15-May-08 18:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.