debugging runtime error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • pauldepstein@att.net

    debugging runtime error

    I am trying to debug a program with the Bloodshed dev c++ compiler.

    The program tries to use a recursive function to price financial
    options.

    It compiles but I get a memory violation when I run it.

    When I run it through the debugger, using watch variables,

    ofstream tritree_basic(" tritree_basic_d ata.txt",
    ios::out|ios::a pp|ios::ate); gives the response

    out = Not found in current context.

    I know that out refers to ios::out. But what does this mean? Does
    this point the way towards finding the error?

    Paul Epstein

  • TB

    #2
    Re: debugging runtime error

    pauldepstein@at t.net sade:[color=blue]
    > I am trying to debug a program with the Bloodshed dev c++ compiler.
    >
    > The program tries to use a recursive function to price financial
    > options.
    >
    > It compiles but I get a memory violation when I run it.
    >
    > When I run it through the debugger, using watch variables,
    >
    > ofstream tritree_basic(" tritree_basic_d ata.txt",
    > ios::out|ios::a pp|ios::ate); gives the response
    >
    > out = Not found in current context.
    >
    > I know that out refers to ios::out. But what does this mean? Does
    > this point the way towards finding the error?
    >[/color]

    That's just the debugger haunting you.
    A memory violation usually stems from illegal pointer use.

    TB

    Comment

    Working...