🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.upgrade
Article #721

compilation problem

#721
From: Alex
Date: Mon, 09 Aug 2004 01:07
46 lines
1769 bytes
Hi,

I am trying to upgrade my BCB5 project (w2k) to BCB6 (XP) and some problem
encountered.
I has a client socket thread in the project which works like this:

TMyClientSocketThread::Execute()
{
    while(!Terminated && bMyCheckingFlag)
    {
        DoReadWrite();
    }
}

when run in BCB6 i found that the while() condition is true but i cant reach
DoReadWrite() !!

Another problem.
I created a global class which contains a critical section. I checked that
it is successfully created.
But when i try to use it access violation shown:

TMainForm::MyFcn()
{
    Global->MyCriticalSection->Enter();        <-- exception thrown at this
line
    try
    {
        ...
    }
    __finally
    {
        Global->MyCriticalSection->Leave();
    }

}

I tried comment this block out and create a critical section here and call
Enter() again. It works fine.

What's wrong with these? How can i solve them?

Thanks in advance.

Regards,
Alex
Technical Details
Message-ID: <4116cefd$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10529a,20b8f2fa0f5cb004,start
X-Google-Attributes: gid10529a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Alex" <alexliu@hket.com>
Newsgroups: borland.public.cppbuilder.upgrade
Subject: compilation problem
Date: Mon, 9 Aug 2004 09:07:32 +0800
Lines: 49
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 202.131.71.54
Message-ID: <4116cefd$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1092013821 202.131.71.54 (8 Aug 2004 18:10:21 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail