Segmentation Fault when destroying a toplevel with configured d&d widgets

From: Giorgio Cesana <cesana_at_venus>
Date: Tue, 16 Jan 1996 17:43:45 +0100

Dear all,

this is to explain you some strange behaviours of STk 3.0b1 in conjunction with
BLT 1.9 (for STk).

Here is my simple test case:

solaris2.5> stk
Welcome to the STk interpreter version 3.0b1 [SunOS-5.4-sun4]
Copyright (C) 1993,1994,1995 Erick Gallesio - I3S - CNRS / ESSI <eg_at_unice.fr>
STk> (require "blt")
"blt"
STk> (require "Tk-classes")
"Tk-classes"
STk> (require "dd-protocol.stklos")
"dd-protocol.stklos"
STk> (define tt (make <Toplevel>))
#[undefined]
STk> (define ee (make <Entry> :parent tt))
#[undefined]
STk> (drag&drop 'source ee 'config :package "#f")
"()"
STk> (pack ee)
()
STk> (destroy tt)
Segmentation Fault (...after a while).

Where can be the problem? I descovered it in an application of mine. The
application is working fine (d&d also), but when I press the "Cancel" button
(which have a call-back having a destroy of the widget in it -like the file
browser widget-) I get the same message as the one in the test case.
Note that other d&d settings do not produce this error (source and target
handlers can be added), and that my tests uses true package functions (in string
format).

Regards

Giorgio


-------------------------------------------------------------------------------
Giorgio Cesana | SGS-THOMSON Microelectronics
phone +39/39/603.6006 | Central R&D - DAIS
fax +39/39/603.5820 | via C. Olivetti, 2
e-mail giorgio.cesana_at_st.com | 20041 Agrate B.za (MI) - ITALY
Received on Tue Jan 16 1996 - 17:51:46 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST