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 <>
STk> (require "blt")
STk> (require "Tk-classes")
STk> (require "dd-protocol.stklos")
STk> (define tt (make <Toplevel>))
STk> (define ee (make <Entry> :parent tt))
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



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 | 20041 Agrate (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