Victor 'Zverok' Shepelev
10/29/2006 1:38:00 PM
From: Vincent Fourmond [mailto:vincent.fourmond@9online.fr]
Sent: Sunday, October 29, 2006 3:32 PM
>Victor "Zverok" Shepelev wrote:
>>> Could you post it, then ?
>>
>> In fact, I can (none of the code is confidential). But for it be useful
>for
>> discussion, I should also "post" a bunch of libraries.
>> OK, here is the program's full text, and let's look.
>>
>> ----------
>> require 'config'
>>
>> require 'htmr'
>> require 'htmr/extend'
>> require 'htmr/events'
>>
>> require 'net/http'
>>
>> MAIN_HTMR = 'nanobrowser.htmr'
>>
>> win = Htmr::Window.create_from_file(MAIN_HTMR, 'NanoBrowser')
>>
>> Net::HTTP.get_response '192.168.1.1', '/index.html' #1
>>
>> node = win.get('#url')
>>
>> p node.window #2
>>
>> Crashes at #2, if I'll comment #1, all works as expected
>>
>> Not looks very useful for understanding, yeah? :->
> Somehow puzzling... You're sure you don't have memory allocation
>problems in the C wrapper you did write for the library ? That's where I
>would look first...
Yep, I almost sure. I use this library alongside with wrapper last few
monthes very intensively.
>But, if that's not the case, you'll need a debugger.
I have one (MS Visual C++). I just can't understand, what definitely to
debug :-\ HTTP::Net sources are rather huge, and its interaction with Socket
are not very clear to me.
V.