-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi all,
I've got a problem with deleting/overwriting a file using my program which is also being used(read) by my program. The problem seems to be that because of the fact my program is reading data from the file (output.txt) it puts the file in a 'in use' state which makes it impossible to delete…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I was just wondering about the functions fopen, fclose, socket and closesocket. When calling fopen or opening a socket, what exactly is happening (especially memory wise)?
Can opening files/sockets without closing them cause memory leaks?
And third, how are sockets created and what do they…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Whenever I run my program with fclose(outputFile); at the very end, I get an error. glibc detected...corrupted double-linked list
The confusing thing about this though, is that I have fclose(inputFile); directly above it and it works fine. Any suggestions?
FILE* inputFile = fopen(fileName, "r");
if…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
fclose() is causing a segfault. I have :
char buffer[L_tmpnam];
char *pipeName = tmpnam(buffer);
FILE *pipeFD = fopen(pipeName, "w"); // open for writing
...
...
...
fclose(pipeFD);
I don't do any file related stuff in the ... yet so that doesn't affect it. However, my MAIN process communicates…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
We are using utl_file in Oracle 10g to copy a blob from a table row to a file on the file system and when we call utl_file.fclose() it takes a long time. It's a 10mb file, not very big, and it takes just over a minute to complete. Anyone know why this would be so slow?
Thanks
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm using two bindings TCP and HTTP. I want to give mex data on both bindings.
What I want is that the mexHttpBinding only exposes the HTTP services while the mexTcpBinding exposes TCP services only. Or is this possible that I access stats service only from HTTP binding and the eventLogging service…
>>> More
-
as seen on Microsoft .NET Support Team
- Search for 'Microsoft .NET Support Team'
1: using System; 2: using System.Collections.Generic; 3: using System.Linq; 4: using System.Text; 5: 6: namespace ConsoleApplication2 7: { 8: class Program 9: { 10: static void Main(string[] args) 11: { 12:…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
The application gets crashing every-time, when am running eclipse saying
LinearAlloc exceeded capacity (5242880), last=208
This is happening, when am creating AsyncTask, thats strange this is happening everytime .
when am commenting and running its running.
Logcat is:
02-09 04:02:23.374:…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi, basically, I have 3 tables; users and projects (which is a many-to-many relationship), then I have 'usersprojects' to allow the one-to-many formation. When a user adds a project, I need the project information stored and then the 'userid' and 'projectid' stored in the usersprojects table. It sounds…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am a little new to store procedures in MySQL and was wondering if I can SELECT multiple columns into multiple variables within the same select query.
for example (iName is the input to the function):
DECLARE iId INT(20);
DECLARE dCreate DATETIME;
SELECT Id INTO iId, dateCreated INTO dCreate…
>>> More