Search:
Type: Posts; User: Chris001
Search:
Search took 0.07 seconds.
-
I've written a FileDownloader class to download files via a separate thread. The progress of each download is shown in a ListView with VirtualMode enabled.
Everything works perfectly fine, the...
-
Hi, let me first say that I normally program in VB. I need to download videos/streams via the RTMP protocol. This is quite a complicated protocol, so I found a C# library here that has been directly...
-
Oh, you're right. The class is a reference type and not value type. I feel silly now :blush:
-
Hi, I have a weird problem or maybe it's just me. I'm connected to a server on a separate thread that continuously sends updates. I'm using a ConcurrentDictionary(Integer, Class) to store/update the...
-
Sorry, but the ZipFile class does not allow you to create password protected ZIP archives. You can use DotNetZip to do that.
-
I see what you mean now. Perfect, thank you very much.
-
I thought about that as well, but the problem is that the user must be able to cancel the download. RTSP_Read blocks and that's fine, because all the code runs on a separate thread, but cancelling...
-
Hi, I'm using a library written in C to download data via RTSP/RTMP protocols. With two or three downloads at once it works fine, but with ten-plus downloads at once the hard drive starts to...
-
You must check if the CancellationPending property is True and then set the e.Cancel property to True as well.
...
-
Yes, you are right. The ZipArchive class does not support passwords. Sorry :blush:
I've modified the function to read the "end of central directory record" first, which contains the offset to...
-
If you want know if a ZIP archive is password protected, then you must check each file in the ZIP archive. Some files in the ZIP archive might be password protected and other files not.
Here's a...
-
OICU812, thank you very much. I was already very happy with 25ms, but less than 10ms is excellent. Putting the regex in a text file resource is a great idea. I never thought about that. It's a lot...
-
Thank you. The only problem I have now, is that when for example the "age" is missing, the "addess" cannot be found. The "city" is shown in the 'Address' column and the "country" is shown in the...
-
If I understand correctly, you mean traverse through the byte array to find the beginning (position) of each user and then use Substring to extract each users data from the JSON?
After thinking...
-
I just tested ident's code and it is about 12ms faster than my Regex for parsing the username. I also tried to split on double curly brackets, looping through the string array and then use a function...
-
For example, JSON.NET and SimpleJSON. They convert JSON to objects, but they read one character at a time (quotation marks, brackets, colons, commas, etc), which is the proper way of parsing JSON,...
-
Every few minutes I'm downloading data from a server returned in json, which is a few MiB in size. All the json parsers out there are very slow, because they loop over every character in the string....
-
You're right, it does require quite a bit of code. I'm not exactly a multi-threading expert, so I hoped that somebody with a lot more knowledge about multi-threading had written a class, before .NET...
-
Hi, I'm currently using the BlockingCollection class for my Producer/Consumer code and it works perfectly, except it uses a ridiculous amount of memory. The maximum capacity has been set to 10 and...
-
Thanks ident, but this server uses a different protocol and I need to do everything myself.
I didn't know that the ThreadPool is obsolete. I'm using the System.Threading.Tasks namespace now.
...
-
Hi, I'm creating a console application and I'm looking for the best way to upload files in chunks to a server with multiple connections (10 connections maximum). The files are uploaded as strings and...
-
Are you sure that the problem is with the ListView and not with the way how you retrieve the data from the database or perhaps some other problem?
Simply loading 5000 items into the ListView with...
-
If you download the UnRar.dll from the WinRar website, then there are various examples included in C, C#, Delphi, Perl, Pascal, MASM, VB and VB6.
-
Try to right-click on the link and select "Save Link As...", "Save Target As..." or something like that, depending on which browser you use.
-
Here's an example that should get you started.
http://msdn.microsoft.com/en-us/library/system.net.sockets.socket.aspx
-
Yes, you are free to do with it whatever you want.
-
I think your problem is the url.
In your WebClient code you navigate to :http://www.192.com/businesses/advanced/
In your WebRequest code you navigate to:...
-
You must add the filename to the first parameter as well.
Using WC As New WebClient
WC.Credentials = New NetworkCredential("Username", "Password")
...
-
You shouldn't use a ListView if you want to add ProgressBars. A ListView is not a container control. You should use a DataGridView instead. If you do want to add ProgressBars to the ListView, then...
-
-
Hi, I found the Boyer-Moore search algorithm below to search for a byte pattern in byte arrays. The byte arrays are between 10MB and 50MB. The code works fine, but now I need to search for a byte...
-
I simply added a new parameter that people must use when they want to send the stream to StdOut instead of saving it to disk. Not the solution I was initially looking for, but it works fine.
-
Thank you.
::Edit::
Resolved.
-
Your declaration of SendMessage is wrong.
http://www.pinvoke.net/default.aspx/user32.sendmessage
-
Hi, I have a console application that modifies MP3's. Currently I'm writing the modified MP3 to a file using a filestream.
Some users have requested to be able to pipe the MP3 directly to their...
-
If you're already using HttpWebRequest and your code works fine, then you might as well keep using that. The WebClient class simply makes the most common tasks with HttpWebRequest easier. It also...
-
WebClient uses HttpWebRequest in the background. You can inherit the WebClient and override GetWebRequest in order to change everything you want.
Here's a small example.
Imports System.Net
...
-
When you really want to remove items with "RemoveAt", then you should always loop backwards, because the index gets updated when items are removed.
The Listview is 0-based (first index is 0 and...
-
Perfect!
Thank you very much for your help.
-
I've made some progress.
The code below seems to work, but I have two problems.
1) If I move the mouse cursor from outside the ListView into the ListView, from the right side, I get an "Object...
|
Click Here to Expand Forum to Full Width
|