Thank you very much Fred, that is awesome! I'm not able to test it right
away on NetBSD, but when I'll do it, I  will let you know (I have to set a
virtual machine on my wife's laptop as I had to install the linux back).

On Tue, Aug 15, 2023 at 4:40 AM Fred vS <fi...@hotmail.com> wrote:

> Yeeeep, I get it.
>
> In mseapplication.pas,
> constructor tcustomapplication.create(aowner: tcomponent);
>
> At the end, line 1248 there is a "lock" and, strangely for NetBSD and
> OpenBSD it blocks the application when 2x click on the binary from a window
> manager.
>
> This fix it:
>
>  {$if not defined(openbsd) and not defined(netbsd)}
>  lock;
>  {$endif}
>
> Tested deeply on both openbsd and netbsd, all is working perfectly, even
> when running using 2x click.
> To be totally honnest it is random that helps me because I was in the dark.
> Also, I dont understand the need of that "lock" there (but it is still
> there for all other os).
>
> Anyway, it seems to works ok now.
>
> Of course, any test is very welcome.
>
> Fre;D
>
> ------------------------------
> *De :* vasi vasi <funl...@gmail.com>
> *Envoyé :* dimanche 13 août 2023 20:07
> *À :* General list for MSEide+MSEgui <
> mseide-msegui-talk@lists.sourceforge.net>
> *Objet :* Re: [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD
> freeze if using 2xclick.
>
> https://begriffs.com/posts/2022-07-17-debugging-gdb-ddd.html
>
> On Sun, Aug 13, 2023 at 9:02 PM vasi vasi <funl...@gmail.com> wrote:
>
> Might this be a solution? https://www.gnu.org/s/ddd/manual/pdf/ddd.pdf
>
> On Sun, Aug 13, 2023 at 8:29 PM Fred vS <fi...@hotmail.com> wrote:
>
> Re hello.
>
> >... using gdb does not help, there is no error...
>
> To be more precise, gdb does not help because gdb is called via a terminal
> and in that case, the msegui apps run perfectly.
>
> ------------------------------
> *De :* Fred vS <fi...@hotmail.com>
> *Envoyé :* dimanche 13 août 2023 19:20
> *À :* mseide-msegui-talk@lists.sourceforge.net <
> mseide-msegui-talk@lists.sourceforge.net>
> *Objet :* [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD
> freeze if using 2xclick.
>
> Hello everybody.
>
> I love the idea of OpenBSD to give, for each new release, a song!
> https://www.openbsd.org/lyrics.html
>
> So I decided to continue (a few) the combat to have msegui perfectly
> compatible with OpenBSD and NetBSD,
>
> At the moment, all seems to compile+run perfectly, tried with mseide
> himself + some other complicated apps, it run.
> But there is a bemol, the apps run ok only if launched from a terminal.
> If 2xclick on the binary, the app freeze at init and the cpu is used 100%
> without decrease, the app must be killed.
>
> Does it exist a way to debug this because using gdb does not help, there
> is no error, only like a perpetual loop?
> What tool can I use to see what cause that loop and where is that loop?
>
> Any ideas are welcome.
>
> Fre;D
> _______________________________________________
> mseide-msegui-talk mailing list
> mseide-msegui-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
>
>
>
> --
> Vasi
>
>
>
> --
> Vasi
> _______________________________________________
> mseide-msegui-talk mailing list
> mseide-msegui-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
>


-- 
Vasi
_______________________________________________
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to