Date: prev next · Thread: first prev next last
2018 Archives by date, by thread · List index


Hi,

I'm using LibreOffice 5.2.7.2 with HSQLDB database server (not embeded).

I've got a problem with form events management, so I'm looking best practice to manage reantrancy :

1) I'm asking myself if each event is a different trhead ?

2) Do you know sample of code with uno API to manage Mutex <https://api.libreoffice.org/docs/cpp/ref/a00130.html> in Thread that I could use with Basic macros ? I couldn't find anything like this into "Marcelyy, B., Godard, L. - Programmation OpenOffice.org 3 - Eyrolles, 2009" Do you know a other book more closer with Uni APIs ?

3) Is it possible to replace default Form listners by handlers, in order to refuse reantrancy by rejecting unecessary events ?

4) Do I prefer modify the default Form controler in order to manage at source level the reantrancy problem ? Do you sample of code to do?

5) Is it possible to write a mutex by home, I could use into my Forms listners ? For exemple, using a global variable as counter events and a wait() call to manage priorities ...

By the way, I noticed in my macro a global variable instanciated into one of my form listner may disappear... I was reading into "Useful Macro Information For OpenOffice.org By Andrew Pitonyak (p.373) <https://www.google.fr/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0ahUKEwjW1Jzvr9TYAhWLZlAKHT_2BOAQFggzMAA&url=http%3A%2F%2Fwww.pitonyak.org%2FAndrewMacro.odt&usg=AOvVaw0vIQyJ56mQzdDCtVkPOXGB>" that controlers may be replaced by others ones, and listners detached... So I'm asking myself if there is something similar explaining my problem. But I'm only moving from one record to next one, and my variable is global ...

Thank you for your help !

Patrick


--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.