Issue 3764 - multi-thread macro error at send mails
Summary: multi-thread macro error at send mails
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: 642
Hardware: PC Windows 2000
: P3 Trivial (vote)
Target Milestone: ---
Assignee: stephan.wunderlich
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-01 03:08 UTC by vghost
Modified: 2002-04-30 15:40 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description vghost 2002-04-01 03:08:16 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.
Comment 1 michael.ruess 2002-04-02 12:56:13 UTC
I think this should have been assigned to MHU and not me (MRU)...
Comment 2 matthias.huetsch 2002-04-05 18:57:35 UTC
IHMO, considering 'Component: framework', it should have been MBA.
Reassigning to component owner...
Comment 3 thorsten.martens 2002-04-11 13:32:57 UTC
TM->SW: As discussed, this one is more a macro-problem than a
framework issue. So please have a look ! Thanks !
Comment 4 stephan.wunderlich 2002-04-11 15:16:17 UTC
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.        
Comment 5 stephan.wunderlich 2002-04-30 15:40:43 UTC
Seems it also works for vghost@openoffice.org now => closed