Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
AnswerRe: SHAPEFILES IN C# Pin
Dave Kreskowiak2-Feb-10 2:24
mveDave Kreskowiak2-Feb-10 2:24 
QuestionC# global hotkeys in Linux Pin
Armin Paffrath1-Feb-10 23:38
Armin Paffrath1-Feb-10 23:38 
AnswerRe: C# global hotkeys in Linux Pin
freakyit2-Feb-10 2:11
freakyit2-Feb-10 2:11 
GeneralRe: C# global hotkeys in Linux Pin
Armin Paffrath2-Feb-10 2:22
Armin Paffrath2-Feb-10 2:22 
GeneralRe: C# global hotkeys in Linux Pin
freakyit2-Feb-10 23:55
freakyit2-Feb-10 23:55 
GeneralRe: C# global hotkeys in Linux Pin
Armin Paffrath3-Feb-10 23:01
Armin Paffrath3-Feb-10 23:01 
QuestionCreate a excelfile in C# - save with version Pin
Mschauder1-Feb-10 23:17
Mschauder1-Feb-10 23:17 
AnswerRe: Create a excelfile in C# Pin
Richard MacCutchan1-Feb-10 23:42
mveRichard MacCutchan1-Feb-10 23:42 
QuestionRe: Create a excelfile in C# Pin
Mschauder2-Feb-10 1:27
Mschauder2-Feb-10 1:27 
AnswerRe: Create a excelfile in C# Pin
Mschauder2-Feb-10 1:58
Mschauder2-Feb-10 1:58 
QuestionMessage Removed Pin
1-Feb-10 23:11
amasterisout1-Feb-10 23:11 
AnswerRe: Text of ToolStripItem derived objects won't appear when added to a ContextMenuStrip Pin
freakyit2-Feb-10 2:14
freakyit2-Feb-10 2:14 
GeneralRe: Text of ToolStripItem derived objects won't appear when added to a ContextMenuStrip Pin
amasterisout2-Feb-10 6:28
amasterisout2-Feb-10 6:28 
Questionmulticolumn listview Pin
Member 5903101-Feb-10 22:48
Member 5903101-Feb-10 22:48 
AnswerRe: multicolumn listview Pin
Richard MacCutchan1-Feb-10 23:45
mveRichard MacCutchan1-Feb-10 23:45 
QuestionOuter border - Tablelayoutpanel Pin
anoopkamboj1-Feb-10 21:16
anoopkamboj1-Feb-10 21:16 
AnswerRe: Outer border - Tablelayoutpanel Pin
OriginalGriff1-Feb-10 23:15
mveOriginalGriff1-Feb-10 23:15 
QuestionProblem with TAPI [modified] Pin
saeidfarahi1-Feb-10 19:53
saeidfarahi1-Feb-10 19:53 
QuestionC# Server running in mono on linux Pin
justwithit1-Feb-10 19:45
justwithit1-Feb-10 19:45 
I have this simple code running on my windows server just fine, but when I run it in mono after a couple days I start getting only OutOfMemory exceptions.
public static byte [] TryReceive (Socket sock, out int nLength)
{
    nLength = 0;
    try {
    int size = sizeof(int);
    byte [] data;
    int recv = 0;
    int offset = 0;

    data = new byte [size];
    while (size > 0) {
        recv = sock.Receive(data, offset, size, SocketFlags.None);
        if (recv == 0)
        return null;
        offset += recv;
        size -= recv;
    } // Makes sure I read the correct number of bytes for an integer

            //Gets the size of the entire packet
    size = BitConverter.ToInt32(data, 0);
    offset = 0;
    data = new byte [size];

    while (size > 0) {
        recv = sock.Receive(data, offset, size, SocketFlags.None);
        offset += recv;
        size -= recv;
    } // Reads in the entire packet
    nLength = data.Length;
    byte [] dataGraph = new byte [data.Length - 1];
    Array.Copy(data, 1, dataGraph, 0, dataGraph.Length);
            //First byte is boolean specifying if it's compressed
    if (BitConverter.ToBoolean(data, 0))
        dataGraph = DecompressBytes(dataGraph);
    return dataGraph;
    }
    catch (OutOfMemoryException) { ObeServer.log.Log(1, "OutOfMemory when receiving packet."); return null; }
        //This error occurs after running for a a couple days on mono
}

Could someone please see something that might be causing this?
TIA
AnswerRe: C# Server running in mono on linux Pin
Migounette2-Feb-10 7:30
Migounette2-Feb-10 7:30 
GeneralRe: C# Server running in mono on linux Pin
Migounette2-Feb-10 7:31
Migounette2-Feb-10 7:31 
GeneralRe: C# Server running in mono on linux Pin
justwithit2-Feb-10 11:00
justwithit2-Feb-10 11:00 
GeneralRe: C# Server running in mono on linux Pin
Migounette4-Feb-10 6:42
Migounette4-Feb-10 6:42 
QuestionControl Message Box Pin
satsumatable1-Feb-10 19:19
satsumatable1-Feb-10 19:19 
AnswerRe: Control Message Box Pin
Eric (eD)1-Feb-10 19:33
Eric (eD)1-Feb-10 19:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.