[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: My Gambas programs do not close any more


Le 26/01/2025 à 09:55, Christof Thalhofer a écrit :
Hi,

I have no idea why but on my main machine a couple of my Gambas programs do not close any more.

These are programs with a Qt5 gui. When I close them by clicking on the close button of the main form they run the code in 'Form_Close()' and then keep running.

When I let them run inside the IDE I have to click the 'Stop' button.

When I let them run from the Shell I have to stop them by hitting 'Ctrl-C'.

This happens on my main machine but not on my virtual machine.

How can I debug this and find the reason for this behavior?

Alles Gute

Christof Thalhofer


You must run the interpreter with 'gdb' to check where it is stalled.

$ cd /path/to/my/project
$ gdb gbx3
...
(gdb) run
...
^C
(gdb) bt
...

Then send the result of the gdb 'bt' command.

You can also debug a running interpreter that way:

$ sudo gdb gbx3 <pid of the interpreter running your program>

You must use 'sudo' because debugging a running program is a privileged operation.

Regards,

--
Benoît Minisini.


Follow-Ups:
Re: My Gambas programs do not close any moreChristof Thalhofer <chrisml@xxxxxxxxxxx>
References:
My Gambas programs do not close any moreChristof Thalhofer <chrisml@xxxxxxxxxxx>