CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: JacobNax

Search: Search took 0.02 seconds.

  1. Replies
    20
    Views
    23,407

    Re: Segmentation Fault ??

    thanks Paul
    your version looks neat and well written
    i haven't studied much the algorithms, just how the sort() and shuffling works.
  2. Replies
    20
    Views
    23,407

    Re: Segmentation Fault ??

    yes, i do not insert elements into vectors or containers of alien threads.
    the Clients* instance is used for the MYSQL login process of the clients.
    .erase( ) is called on the same thread. all i...
  3. Replies
    20
    Views
    23,407

    Re: Segmentation Fault ??

    heres some clue about the life-cycle of the Clients* object



    CTCPSocket *NewSocket = pdcc->m_CTCPS->Accept( (fd_set *)&fd );

    if( NewSocket )
    {
    NewSocket->NoDelay(true);...
  4. Replies
    20
    Views
    23,407

    Re: Segmentation Fault ??

    i think you didn't pay attention at all at the code.

    i do not use the object instance without checking if First : object instance not null



    if( !foo )
    return false;

    which works 100%
  5. Replies
    20
    Views
    23,407

    Re: Segmentation Fault ??

    Like you can see in the function, the instance of that class is never ever used/referred/dereferred if the flag DeleteMe is set because every time we wanna see or change data or anything on that...
  6. Replies
    20
    Views
    23,407

    Re: Segmentation Fault ??

    I use multiple threads for mysql operations such as inserting rows, updating rows, deleting rows etc.

    i am aware of synchronization methods such as mutexes. i use boost::thread mutexes.
    but i'm...
  7. Replies
    20
    Views
    23,407

    Segmentation Fault ??

    Hi, i have a very weird fatal exception happening very rarely on my application (compiled under gcc - Ubuntu linux)

    it seems that this this function :


    bool GetConnect( ) {return m_Connected;}...
Results 1 to 7 of 7





Click Here to Expand Forum to Full Width

Featured