http://rpg.hamsterrepublic.com/bugzilla/show_bug.cgi?id=830

--- Comment #2 from Bob the Hamster <[email protected]> 2010-04-05 
11:50:07 PDT ---
I am looking at reload.bas and in particular GetString()

Function GetString(byval node as nodeptr) as string
    if node = null then return ""

    select case node->nodeType
        case rltInt
            return str(node->num)
        case rltFloat
            return str(node->flo)
        case rltNull
            return ""
        case rltString
            return node->str
        'case rltChildren
        '    return "<" & node->name & ">"
        case else
            return "Unknown value: " & node->nodeType
    end select
End Function

I am guessing that I am getting a pointer to a string that was allocated by the
reload document, and when the reload document gets freed, my string becomes
invalid.

Does that sound like a plausible explanation of this crash?

-- 
Configure bugmail: 
http://rpg.hamsterrepublic.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to