Apache OpenOffice (AOO) Bugzilla – Issue 3764
multi-thread macro error at send mails
Last modified: 2002-04-30 15:40:43 UTC
In OO.o 641d version that use outlook to send mail in a new thread ,but when run a macro call method sendSimpleMailMessage() open a outlook window , main thread will be in dead-lock! Some reason maybe uno call in a incorrect thread statu.
I think this should have been assigned to MHU and not me (MRU)...
IHMO, considering 'Component: framework', it should have been MBA. Reassigning to component owner...
TM->SW: As discussed, this one is more a macro-problem than a framework issue. So please have a look ! Thanks !
I just installed OO.o 641d on win2000 and had no problems calling the method 'sendSimpleMailMessage'. The following code was used: <start of code snippet> XInterface oObj = null; XInterface part = null; // creation of testobject here // first we write what we are intend to do to log file log.println( "creating a test com.sun.star.system.SimpleSystemMail" ); try { Object smplMail = Factory.createInstance( "com.sun.star.system.SimpleSystemMail"); oObj = (XInterface) smplMail; } catch (com.sun.star.uno.Exception e) { e.printStackTrace(); } System.out.println("Result for com.sun.star.system.SimpleSystemMail"); System.out.println("Name: "+util.utils.getImplName(oObj)); dbg.printInterfaces(oObj); System.out.println("Getting the XSimpleMailClientSupplier"); XSimpleMailClientSupplier smcs = (XSimpleMailClientSupplier) UnoRuntime.queryInterface(XSimpleMailClientSupplier.class, oObj); System.out.println("Getting the XSimpleMailClient"); XSimpleMailClient client = smcs.querySimpleMailClient(); System.out.println("Creating XSimpleMailMessage"); XSimpleMailMessage msg = client.createSimpleMailMessage(); System.out.println("filling some fields"); msg.setRecipient("sw@openoffice.org"); msg.setSubject("Just a test for issuzilla id 3764"); System.out.println("sending message"); try { client.sendSimpleMailMessage(msg,0); } catch (Exception e) { e.printStackTrace(); } <end of code snippet> Afterwards an outlook-window is opened wherein I can create my message and parallel I'm able to work with the office.
Seems it also works for vghost@openoffice.org now => closed