comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Typing in a widget_text crashes my C program!
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Typing in a widget_text crashes my C program! [message #23766 is a reply to message #23765] Mon, 12 February 2001 18:58 Go to previous messageGo to previous message
Jason Weiss is currently offline  Jason Weiss
Messages: 2
Registered: February 2001
Junior Member
Actually, I'm experiencing these problems with no event handling. I've been
able to reproduce the crash with the following simple code:

pro make_it_crash

base=widget_base(/col)
text=widget_text(base, /editable)

widget_control, base, /realize

end

Thinking event handling could alleviate the problem, i added

pro text_event, event

end

and

xmanager, 'text', text, /just_reg, /no_block

to my program, and it still crashed...

without you guys knowing the particulars of the C-code or perhaps the PCI
driver, I don't expect a solution. But info as to what IDL is doing when
you type into a text box would be a good starting point for me...



David Fanning wrote:

> Jason Weiss writes:
>
>> Been using IDL (currently 5.4) for a while now, but I've come across a
>> unexpected problem that has left me frustrated. We are using some
>> C-code to drive some electronics through a PCI card on our Sun Ultra
>> 10. During readout of our electronics, I noticed it would
>> intermittently crash. After weeks of mysterious crashes, I discovered
>> the program crashes when I type into a widget_text box!
>>
>> Any ideas why? What happens, on a system level, when a user types into
>> a widget_text? What would cause this (or any) kind of interaction
>> between IDL and C?
>
> Poorly written or misunderstood event handling?
> Just guessing. :-)
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting
> Phone: 970-221-0438 E-Mail: davidf@dfanning.com
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Toll-Free IDL Book Orders: 1-888-461-0155

--
[//]=[//]=[//]=[//]=[//]=[//]=[//]=[//]=[//]=[//]=[//]=[//]
"Pull against the tide, and you pull against the gradient,
Woven with era, we belong to the ages."
-- Trash Can Sinatras, "Orange Fell"
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: mkdir?
Next Topic: common blocks

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 09:10:34 PDT 2025

Total time taken to generate the page: 0.16039 seconds