Click here to Skip to main content
15,889,867 members
Home / Discussions / C#
   

C#

 
GeneralRe: MessageBox in console application Pin
Mr Marchepane20-Sep-05 10:46
Mr Marchepane20-Sep-05 10:46 
QuestionRSA with private key Pin
IsaacB20-Sep-05 8:21
IsaacB20-Sep-05 8:21 
AnswerRe: RSA with private key Pin
Not Active20-Sep-05 9:22
mentorNot Active20-Sep-05 9:22 
QuestionRe: RSA with private key Pin
IsaacB20-Sep-05 10:04
IsaacB20-Sep-05 10:04 
AnswerRe: RSA with private key Pin
Dan Neely20-Sep-05 10:41
Dan Neely20-Sep-05 10:41 
QuestionCrystal Reports for Visual Studio .NET (Parameter Fields Runtime Customization)? Pin
Naveed Kamboh20-Sep-05 6:50
Naveed Kamboh20-Sep-05 6:50 
QuestionMSDE 2000 Insance Invalid Pin
theStorminMormon20-Sep-05 6:43
theStorminMormon20-Sep-05 6:43 
Question.Net Remoting and WebClient memory trouble... Pin
The Liquidian20-Sep-05 6:19
The Liquidian20-Sep-05 6:19 
Hi everyone…

I am using .Net Remoting (C#). I need to use a WebClient do get an image from a URL. I need to constantly retrieve the image, therefore I have the code in an infinite loop (within a thread). The thread sleeps for ½ a second.

The code runs fine if I run it without using Remoting, however when I use Remoting the program uses up all the memory on the server!

I have stripped the code of all complications. Basically all the thread does it:

System.Net.WebClient webClient = new System.Net.WebClient();

webClient.DownloadData(URL);

And then it sleeps. But as I say, this uses up all the memory resources?

I then moved the code into a console application that does the webClient.DownloadData(URL) call, then it calls a method on the remote object to pass it the data. But I ended up with the same problem, all the memory got used up? Sniff | :^)

Please try using the web client, within a continuous thread, and within Remoting.

As soon as I mix Remoting and the WebClient, the memory gets used up. The page file usage sky rockets!Frown | :(

Am I missing some obvious flaw with trying to use Remoting and a WebClient together?D'Oh! | :doh:

Can anyone offer me some advice????

QuestionOutlook, own EMailAddress Pin
mkano20-Sep-05 6:09
mkano20-Sep-05 6:09 
QuestionWebsite Counter Pin
jeff1920-Sep-05 4:40
jeff1920-Sep-05 4:40 
AnswerRe: Website Counter Pin
Jon Sagara20-Sep-05 7:42
Jon Sagara20-Sep-05 7:42 
QuestionUsing C++ in C# appliacation Pin
Yoyosch20-Sep-05 4:15
Yoyosch20-Sep-05 4:15 
AnswerRe: Using C++ in C# appliacation Pin
Not Active20-Sep-05 9:05
mentorNot Active20-Sep-05 9:05 
QuestionMSDE 2000 connection error Pin
theStorminMormon20-Sep-05 4:06
theStorminMormon20-Sep-05 4:06 
QuestionSelect ListView Item on KeyPress Pin
miah alom20-Sep-05 3:59
miah alom20-Sep-05 3:59 
AnswerRe: Select ListView Item on KeyPress Pin
John Fisher20-Sep-05 9:27
John Fisher20-Sep-05 9:27 
GeneralRe: Select ListView Item on KeyPress Pin
miah alom20-Sep-05 9:40
miah alom20-Sep-05 9:40 
GeneralRe: Select ListView Item on KeyPress Pin
Abdullah_Hunzai22-Oct-09 20:00
Abdullah_Hunzai22-Oct-09 20:00 
QuestionStretching a polygon side in C# Pin
20-Sep-05 3:52
suss20-Sep-05 3:52 
AnswerRe: Stretching a polygon side in C# Pin
Yoyosch20-Sep-05 4:06
Yoyosch20-Sep-05 4:06 
GeneralRe: Stretching a polygon side in C# Pin
subramanyeswari20-Sep-05 17:43
subramanyeswari20-Sep-05 17:43 
AnswerRe: Stretching a polygon side in C# Pin
Andy Moore20-Sep-05 18:15
Andy Moore20-Sep-05 18:15 
GeneralRe: Stretching a polygon side in C# Pin
subramanyeswari21-Sep-05 17:30
subramanyeswari21-Sep-05 17:30 
QuestionVisual Studio tools for Office Pin
Giannis Zetas20-Sep-05 3:15
Giannis Zetas20-Sep-05 3:15 
AnswerRe: Visual Studio tools for Office Pin
NassosReyzidis20-Sep-05 3:31
NassosReyzidis20-Sep-05 3:31 

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.