News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.

Post Reply  Post Thread 
Segmentation Fault w/browser or text_editor
Author Message

Posts: 231
Group: Moderators
Joined: Apr 2007
Status: Offline
Reputation: 0
Post: #1
Segmentation Fault w/browser or text_editor

I also get Bus Errors, but that maybe have been fixed.
I'll attach the docs and crash logs.

This is basically Tobi's original code, and it works in the console and script editor,
but I can't make it work here, it was sent by the level1Clicked function below.

function fillRawData(...)
    local str=""
    local i=1
    while arg[i]~= nil do
        if str=="" then
            str=str.."    "..tostring(arg[i])
    local l_offset=#rawData_buf:text()

It segfaults all the time. So I tried several hacks, all bad, this latest:

function level1Clicked(w)
if w:value()>0 then    
-- a number index to func name and docs data

    if funN ~= nil then
    -- a string from the table
        if docs ~= nil then  rawData:insert(docs.."\n") end
end  -- level1Clicked

Works the first click, second click = Segfault

Any clues?

Attached File(s)
.zip File (Size: 9.97 KB / Downloads: 2)
02-15-2008 04:34 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: