473,322 Members | 1,911 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

cannot call systemfunction close

Hello,

I have a the following class using the Thread class from Common C++

class CMyThread: public ost::Thread
{
public:
CMyThread ();
void run ();
....
}

The class Thread has a private member close(). When I try to call the
systemfunction close() from unistd.h an compile the whole thing, I get
an error message, saying that close is private and so I cannot call it.

Is there a way that a call close() from unistd.h in that case?

Thanks a lot
kaoz
Nov 22 '05 #1
1 1560
kaoz wrote:
Is there a way that a call close() from unistd.h in that case?


::close(); // scope resolution operator :: used to call the global
version

Nov 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Sanyi | last post by:
I am having some trouble rereading a file for input. Here's the problem: I have a text file with some data (football scores) in its lines. First I read them line-by line to figure out how many...
2
by: Bernie Yaeger | last post by:
I'm launching one window from another. I have a close button in the first window and when I click it, it executes me.close. However, the form also has a treeview control. If I launch the second...
6
by: Jonathan | last post by:
Hi, I have 2 forms "Form1" & "Form2" In Form1, there is a button to click to open Form2 and set Form1.Enabled = False However, when i finish using Form2, i cannot Enable Form1? In Form2, i...
2
by: Nice Chap | last post by:
I get this exception when I call Me.Close on Load event of a Form. The form producing the error is an MDI child of another form. Any ideas how I can get over this problem please. I have tried...
2
by: kbutterly | last post by:
Good afternoon, I have what appears to be a caching issue, but i'm a bit of a newbie at http headers so it may be something else. I have a small asp.net 2.0 application that is called to serve...
0
by: Pete Newman | last post by:
In running vs (vb ) .net 2005 and Sql 2005 On my form i have an oledbconnection, an oledbdataadapter and a dataset. when i try and do an update i get an error; 'Child list for field...
2
by: =?Utf-8?B?cmVk?= | last post by:
Hi Friends, We recently deployed our application to production and I am experiencing the below error message. Cannot access a disposed object named "System.Net.TlsStream" The error occurs...
2
by: karu | last post by:
Hello All of u Plz help me regarding some problem related c#.net I have two forms form1 and form2 at the load of form1 i call another form2 form1_load() {
4
by: =?Utf-8?B?VG9yZW4gVmFsb25l?= | last post by:
Was editing code, am getting the following errors } expected Type or namespace definition, or end-of-file expected Eyes crossed cannot find code below! using System; using...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.