User Profile

Collapse

Profile Sidebar

Collapse
inxanu
inxanu
Last Activity: Apr 22 '09, 12:43 PM
Joined: Feb 28 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • inxanu
    started a topic Getting PID of new Word.ApplicationClass()
    in .NET

    Getting PID of new Word.ApplicationClass()

    First of all, I am unsure as to where to post it, so please let me know (or move it) to where it should be.

    I create an instance of word as follows
    Code:
    Word.ApplicationClass wd = new Word.ApplicationClass();
    wd.Caption = "My Word";
    int wordHandle =  FindWindow("Opusapp", wd.Caption);
    Questions:
    1)
    Word.Applicatio nClass wd = new Word.Applicatio nClass();...
    See more | Go to post

  • inxanu
    replied to c# multithreading -- really confused!
    Hi mldisibio,

    I did in fact read through the information you suggest (Albahari) thats why I thought that by locking the arraylist i was taking care of the thread synchronization . Why was I still unsure?
    1) It is the first time I am using multithreading and ...
    2) English is not my first language, thus sometimes I can misinterpret information (which now has been totally clarify, a big THANK YOU!)
    3) As with the...
    See more | Go to post

    Leave a comment:


  • inxanu
    replied to c# multithreading -- really confused!
    "Does this error happen before even the first write, ..." --> No
    "or is something being written to file, and this happens when a second process attempts to write?" --> No, I do not have any more processes writting to this file, or at least I shouldn't. I am using the lock()... I will create a global lock as you suggest.

    Also
    "Don't forget, locking just says: "you can't have access...
    See more | Go to post

    Leave a comment:


  • inxanu
    replied to c# multithreading -- really confused!
    Many thanks for your input...It has been really helpfull. I will have to think about changing the logging. But one thing that intrigues me:

    At present I am locking the logger

    Code:
    lock(Logging.log)
    yet i still got this error:

    log4net:ERROR [FileAppender] Unable to acquire lock on file d:\logfiles\
    WSFileCopier.lo g. The process cannot access the file 'd:\logfiles\WS FileCopier.log' because...
    See more | Go to post

    Leave a comment:


  • inxanu
    started a topic c# multithreading -- really confused!

    c# multithreading -- really confused!

    Hi all,

    I have several threads running (basically they are copying files from one place to another). I am using log4net for logging...Howev er, sometimes i get a log4net error due to log file being used by other process. I thought about creating a method which will take care of the logging...all threads will used a delegate to call the method that does the logging

    static readonly object lockerLog = new object();
    ...
    See more | Go to post
    Last edited by tlhintoq; Feb 27 '09, 03:24 PM. Reason: [CODE] ... your code here ... [/CODE] tags added

  • ...it does.. :)

    Many thanks acoder
    See more | Go to post

    Leave a comment:


  • No...I really though I did not need them...it looks like this solves the problem ...will let you know...

    Cheers!
    See more | Go to post

    Leave a comment:


  • Hi Acoder,

    Have tried what you suggested, however this does not solve the problem...

    any other ideas?


    function validate () {

    NameElm = document.getEle mentById('Name1 ');

    == MyName = NameElm.options[NameElm.selecte dIndex].value;==
    ....
    }

    <HTML>
    ...
    <SELECT ID="Name1" SIZE="10" onChange="valid ate()">...
    See more | Go to post

    Leave a comment:


  • Object doesn't support this property or method (IE) OK with FF

    I am getting this error when using IE, however it works fine with FF

    Object doesn't support this property or method

    Any ideas?

    Thanks in advance...

    The problem arises when trying to get the user selection ...The line of code it complains about is the one mark with ==


    function validate () {

    NameElm = document.getEle mentById('Name' );

    ==Name...
    See more | Go to post
No activity results to display
Show More
Working...