in Search

DLL Output Error or MS Internal Problem...

Last post 05-25-2009, 16:25 by underground. 2 replies.
Sort Posts: Previous Next
  •  05-12-2009, 16:14 29701

    DLL Output Error or MS Internal Problem...

    Ok question I have created a DLL which outputs my functions values to a txt file. The Output function creates two txt files one called Entire (sends all the loaded bars from the chart) and another one called Update (just sends the closing bars value). The dll runs fine but over the course of the day the problem I'm finding is Metastock swaps the files sending the information to the wrong txt file. Im wondering is Metastock having a memory allocation problem when I overload the computer? And does anyone have a suggestion to correcting this issue?

     

    Thanks for your help,

     

     

  •  05-12-2009, 17:53 29705 in reply to 29701

    Re: DLL Output Error or MS Internal Problem...

    Are you making sure to set all things that should be set to NULL are set to NULL at the end of the function?  Have you checked for memory leaks?  Are you opening, writing and then closing the file each time, or are you leaving the file open for subsequent writes?  If you post your codes we would have a better chance to locate any problems.


    wabbit Big Smile [:D]


    "The question of whether a computer can think is no more interesting than the question of whether a submarine can swim."
    Edsgar W. Dijkstra

     

    MS: 6.52 EOD, 7.x EOD, 8.0 PRO, 9.2 PRO w/QC, 10 PRO w/QC C, 11 PRO w/QC & MDK
    For custom MetaStock programming : http://www.wabbit.com.au
    My SkyPE status :
    My SkyPE account : wabbit.com.au

  •  05-25-2009, 16:25 29783 in reply to 29705

    Re: DLL Output Error or MS Internal Problem...

    I think i figured out the problem its not the dll, but now sure how to fix the issue - the indicator which I have written within the forumla builder (which reference's my dll) seems give me this error when I edit the code within the indicator builder "Formula too complex (temp array overflow)".  I have posted the formula within the following forum to see if it can be rewritten somehow, any suggestions would be helpful.

     http://forum.equis.com/forums/thread/29782.aspx

View as RSS news feed in XML