User Profile

Collapse

Profile Sidebar

Collapse
eran otzar
eran otzar
Last Activity: Jun 15 '11, 02:36 PM
Joined: Jan 22 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • eran otzar
    started a topic read xml schema
    in XML

    read xml schema

    hello,
    ive got an xml schema wich is placed inside of an xml file
    it is placed as one of the descendants of the first Node , this xml file represnt a table
    Code:
    <?xml version="1.0" standalone="yes"?>
    <NewDataSet>
       <xs:schema .....    
             .
              <xs:element name="Table">
              <xs:complexType>
                  <xs:sequence>
    ...
    See more | Go to post
    Last edited by Dormilich; Jun 15 '11, 01:50 PM. Reason: please use [CODE] [/CODE] tags when posting code

  • eran otzar
    started a topic mutual exclusion issue

    mutual exclusion issue

    hello ive got an application wich uses a collection in this case a queue from diffrent thereads

    an object gets enqueued in one thread while anouther gets dequeued in a diffrent thread

    these actions might accure simultaneously wich would resolve in an exception such as argument out of range exception , when the collections counter is being redifined.

    now im looking for a "good looking" and right...
    See more | Go to post

  • Is it possible to dedicate a mutex to a specific name ?

    hello,
    on my server iv'e got an xml file for each client witch holds the packets witch the client had not received.

    i need to access multiple client files on a server side ,this happens from multiple background threads

    i'm looking for a way to create mutual Exclusion an a specific file

    for example lets say iv'e got tow clients john and tom
    and the method running in the background (_AppendToUnsen t)...
    See more | Go to post

  • eran otzar
    started a topic Socket.Close()

    Socket.Close()

    hello, as i understand it in C# u pass a copy of the reference by default,
    no for my Example

    iv'e got 2 Forms witch in the first a Socket connects and then is being passed in the constractor to the other form

    now as i understand it they both have a reference to the same place in memory ,
    now in the second form i call Socket.Close()
    when the second form closes , the first form is up
    ...
    See more | Go to post

  • How and why to reuse socket with Socket.Disconnect( )?

    Socket.Disconne ct(bool reuse) according to msdn enables the program to reuse the socket
    my questions are:

    1)
    if we decide to reuse the socket does that mean it will reuse the same local end point as well,what i'm asking is,
    would it preserve the port for that socket or would it just(i don't believe it does)
    save all the objects resources ?

    2)if in effect it does only save the resources...
    See more | Go to post

  • eran otzar
    started a topic Control.Invoke() vs. Control.BeginInvoke()

    Control.Invoke() vs. Control.BeginInvoke()

    first of all,i would like to apologize for my bad grammar since English is not my native tongue.

    To my understanding :

    Control.Invoke( delegated_metho d) // Executes on the thread wich the control was created on
    witch holds its handle ,typically this would be the main thread of a winform application .

    Control.BeginIn voke(delegated_ method // Executes asynchronously on a threadPool Thread ....
    See more | Go to post

  • eran otzar
    started a topic SocketOption ReceiveTimeOut

    SocketOption ReceiveTimeOut

    now lets take a secnario where we use a locking socket receive and the packet is 5000 bytes with receivetimeout set to one second

    s.SetSocketOpti on (SocketOptionLe vel.Socket, SocketOptionNam e.ReceiveTimeou t, 1000);

    int bytes_recevied = 0 ; byte [] ReceiveBuffer = new byte[8192] ;

    try { bytes_received = s.Receive(Recev ieBuffer) ; } catch(SocketExc eption e) { if( e.ErrorCode == 10060) { Array.Clear(Rec eiveBuffer,0,Re ceiveBuffer.Len gth);...
    See more | Go to post

  • eran otzar
    started a topic Socket Send/receive simultaneously

    Socket Send/receive simultaneously

    can any one point out the reason why u cant send and receive on a socket at the same time ?

    to my understanding there are 2 streams one to push and one to pull

    if you attempt to send/receive simultaneously you will get wasealready error

    what is the reason that the socket throws wasealready error (10035)
    does it have any thing to do with the ack window the receiving side sends back ?
    as...
    See more | Go to post

  • blocking vs. non-blocking sockets asyncrouns vs. syncournes communicaition

    1)what would be the advantages of using non-blocking sockets over blocking sockets?

    2)what would be the advatages of using beginSend/beingReceive with a blocking socket ?

    im building a client-server chat applicaition with blocking sockets ..
    now what im trying to grasp would be the advantages of using non-blocking sockets or asyncrounous methods

    -if i use non-blocking i still need to loop threw...
    See more | Go to post

  • Is there an event that occur after DragDrop event?

    hello , sadly im a noob , and i cant manage to find an event that would accure after i droped a file in a richtextbox

    *when u drop a file into a Rtb the icon's image is copied on to the control if u i downloaded a userr control wich derives from richtextbox , this control as a few method in wich it manipulates RTF among does are AppendRtf(_rtf)

    now i want to present u with a secnario wich works
    1) i drag a file...
    See more | Go to post
    Last edited by Niheel; Feb 5 '11, 08:01 PM. Reason: added code tags

  • How to fix "file is being used by another process" errors?

    I've got a problem wich cant manage to overcome although it might seem fairly simple. I've got a chat program, in wich i want to enable users to change user pics at runtime. There's a picture box winch is set to an image with the name of a certain peer for example : "C:\\FriendLy\\ Users\\eran\\Pi ctures\\eva.jpg "

    Now what i need is to replace this picture and override it. The first thing i do is copy it to a new location...
    See more | Go to post
    Last edited by Niheel; Jan 30 '11, 12:30 AM.

  • 10x
    didnt think about that...
    See more | Go to post

    Leave a comment:


  • byte [] array to string , and string to byte [] array

    ok i want to take a byte array

    byte [] buffer = ASCIIEncoding.A SCII.GetBytes(" hello there");

    now yes we turned it into a byte[],
    but now i want to write the represent to contents of the byte array in a file , and not the string they represent

    NOT !! THIS !============== ===========
    String hello_str = ASCIIEncoding.A SCII.getString( buffer) ;
    =============== =============== =============== ===========...
    See more | Go to post
No activity results to display
Show More
Working...