Click here to Skip to main content
15,906,766 members
Home / Discussions / C#
   

C#

 
GeneralRe: Getting default namespace name Pin
Zoltan Balazs16-Nov-06 8:32
Zoltan Balazs16-Nov-06 8:32 
QuestionPower Notation Pin
demetriou16-Nov-06 5:06
demetriou16-Nov-06 5:06 
AnswerRe: Power Notation Pin
User 665816-Nov-06 6:05
User 665816-Nov-06 6:05 
AnswerRe: Power Notation Pin
ednrgc16-Nov-06 6:28
ednrgc16-Nov-06 6:28 
Questiondataset Pin
fmardani16-Nov-06 4:26
fmardani16-Nov-06 4:26 
AnswerRe: dataset Pin
albCode16-Nov-06 4:32
albCode16-Nov-06 4:32 
AnswerRe: dataset Pin
Drew McGhie16-Nov-06 9:35
Drew McGhie16-Nov-06 9:35 
QuestionSockets overflowing? Pin
hammerstein0516-Nov-06 4:08
hammerstein0516-Nov-06 4:08 
I've created an application that sends images along with some other information in an XML message from a handheld device to a server running on my pc. There are 14 records in the database I'm processing on the handheld, and the first four images and information come up just fine. Then things start to go wrong. As far as I can see in my log file, everything is overrwriting, my logfile stops making sense and new lines seem to be everywhere.

Basically, I have a class for creating my XML message, with the AddImage method as below;

<br />
        public bool AddImage( string tagname, string ImageFile )<br />
        {<br />
            bool Result = false;<br />
<br />
            try<br />
            {<br />
                FileInfo ImageInfo = new FileInfo( ImageFile );<br />
<br />
                int ImageSize = Convert.ToInt32( ImageInfo.Length);<br />
<br />
                using (FileStream SaveImage = new FileStream( ImageFile, FileMode.Open, FileAccess.Read, FileShare.None ))<br />
                {<br />
                    byte[] ImageData = new byte[ImageSize];<br />
                    int BytesRead = SaveImage.Read( ImageData, 0, ImageSize );<br />
<br />
                    xmlMessagePacket.Append( "<" + tagname + ">" + Convert.ToBase64String( ImageData, 0, BytesRead) + "</" + tagname + ">" );              <br />
                }<br />
<br />
                Result = true;<br />
            }<br />
            catch (Exception gExc)<br />
            {<br />
                errorState = gExc.Message + " / " + gExc.StackTrace;<br />
            }<br />
<br />
            return Result;<br />
        }<br />


I add the fields in, and the first four messages work fine, but after that the application hangs.

Can anybody suggest what I should look at first? Could it be that I'm overloading my socket somehow.
AnswerRe: Sockets overflowing? Pin
Martin#16-Nov-06 4:28
Martin#16-Nov-06 4:28 
GeneralRe: Sockets overflowing? Pin
hammerstein0516-Nov-06 4:42
hammerstein0516-Nov-06 4:42 
AnswerRe: Sockets overflowing? Pin
led mike16-Nov-06 5:33
led mike16-Nov-06 5:33 
AnswerRe: Sockets overflowing? Pin
Kythen16-Nov-06 12:15
Kythen16-Nov-06 12:15 
QuestionCan’t show controlBox/System menu when FormBorderStyle=None. Pin
talk2robert16-Nov-06 3:49
talk2robert16-Nov-06 3:49 
AnswerRe: Can’t show controlBox/System menu when FormBorderStyle=None. Pin
Rey999917-Nov-06 4:29
Rey999917-Nov-06 4:29 
GeneralRe: Can’t show controlBox/System menu when FormBorderStyle=None. Pin
talk2robert17-Nov-06 7:32
talk2robert17-Nov-06 7:32 
GeneralRe: Can’t show controlBox/System menu when FormBorderStyle=None. Pin
Rey999917-Nov-06 7:57
Rey999917-Nov-06 7:57 
QuestionPointer typecasting Pin
Dewald16-Nov-06 3:41
Dewald16-Nov-06 3:41 
AnswerRe: Pointer typecasting Pin
Judah Gabriel Himango16-Nov-06 4:52
sponsorJudah Gabriel Himango16-Nov-06 4:52 
GeneralRe: Pointer typecasting Pin
Dewald17-Nov-06 3:58
Dewald17-Nov-06 3:58 
GeneralRe: Pointer typecasting Pin
Judah Gabriel Himango17-Nov-06 5:13
sponsorJudah Gabriel Himango17-Nov-06 5:13 
GeneralRe: Pointer typecasting Pin
Dewald20-Nov-06 20:37
Dewald20-Nov-06 20:37 
GeneralRe: Pointer typecasting Pin
Dewald21-Nov-06 1:19
Dewald21-Nov-06 1:19 
GeneralRe: Pointer typecasting Pin
Judah Gabriel Himango21-Nov-06 5:28
sponsorJudah Gabriel Himango21-Nov-06 5:28 
QuestionSandcastle Help File Builder with hyperlinks Pin
Christopher Stratmann16-Nov-06 3:25
Christopher Stratmann16-Nov-06 3:25 
AnswerRe: Sandcastle Help File Builder with hyperlinks Pin
Colin Angus Mackay16-Nov-06 3:46
Colin Angus Mackay16-Nov-06 3:46 

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.