|
Are both the source and destination process on the same machine? If not why not put something in between on the far (source) machine that takes data as fast as I can get it and create larger packets to send across to your receiving process? Treat it kind of like a jitter buffer. have the intermediate process just store up enough data to make a larger packet and not send anything until it is full then send and start buffering another package.
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
My Blog[^]
|
|
|
|
|
Oops... seems like the e-mail notification does not work (I didn't receive a message after you replied).
Thanks for your answer. I more or less already did what you said. Unfortunately there were strict limitations that didn't let me build larger packets (the client almost needs new information instantly), but with three pieces put together to one packet performance is very good now (and also the CPU load dropped). Thanks again for your help!
|
|
|
|
|
If the client needs very rapid updates then any count based packet merging could result in problems if the source pauses in mid chunk. Doing the packet merge every n millisecs where n is the allowable time between updates (with fudge factor) would be a better approach.
|
|
|
|
|
In fact, I'm using a combination of both at the moment. That means the server tries to merge at least three pieces of data, but if there are no pieces anymore (depends on the hardware connected to the server) he sends out the packet after a certain amount of time anyway (50 ms).
Thanks for your suggestion.
|
|
|
|
|
Hi all,
I know that it's not the same in .NET, but in VB 6, you could build DLLs, put them somewhere in your path, and your application looking for that DLL would be able to find it.
As we're preparing to migrate to .NET, I'm trying to work out these little nuances and I'm about to rip my hair out over this one.
I want to simply be able to load a class file (DLL) from a network location, with .NET, just like I can if the DLL was in the same directory as the EXE. I've been up to my eyeballs in app.config, and I can get the EXE to look in its sub-directories and find the DLL with no problem, however, specifying a codebase on the network has not been so fruitful.
I'm using VC# Express 2005. In the information I found, I saw that I needed to generate a key (which I did) then run al.exe against it to link the key to the dll (??), but alas, I can't find al.exe anywhere on my box. Same for the Fusion Log Viewer app... I'm guessing maybe they don't come with the Express editions.
In any case, if someone can point me to a walk through, a how-to, or some information that explains this in a little better detail of the steps necessary to accomplish the seemingly simple task of loading dlls from a network location, I would greatly appreciate it.
Thanks in advance,
Mike
|
|
|
|
|
Try to use Assembly.LoadFile Method
System.Reflection.Assembly.LoadFile("path-to-your dll");
The LoadFile method can load assemblies from diferent locations.
DevIntelligence.com - My blog for .Net Developers
|
|
|
|
|
... need to get names of files that have been changed, added etc in a dir and subdirs.
Is it possible to do through filesystemwatcher-service?
/h
-- modified at 4:55 Monday 28th November, 2005
|
|
|
|
|
|
how to edit FAT table?
Is there any method to edit filename in FAT table directly?
Can anybody help me
|
|
|
|
|
No, there isn't. You have to load the sectors directly off the disk, edit them, then write them back. There is nothing in the .NET BCL that supports this.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have downloaded version 2.0 in order to get the system.io.ports namespace but it still doesnt recognize it.
I have the vs.net 2003.
can someone help me?
|
|
|
|
|
gadgallea wrote: I have downloaded version 2.0 in order to get the system.io.ports namespace but it still doesnt recognize it.
I have the vs.net 2003.
You can't use .NET 2.0 with vs.net 2003. Downlaod the express edtion of the vs2005 and you can use .net 2.0
'A programmer is just a tool which converts caffeine into code'
|
|
|
|
|
Visual Studio 2003 cannot use .net 2.0. You will only be able to use the new classes from within VS 2005
|
|
|
|
|
You can compile your projects using command line , but I agree that VS 2005 IDE can make your life easier ...
DevIntelligence.com - My blog for .Net Developers
|
|
|
|
|
Hello,
After playing a while with the new VS2005 I started to convert my existing
Windows Forms projects from .NET 1.1 in VS2003 to .NET V2.0 in VS2005.
After a few days converting and warning and bug hunting I finaly had a
succesfull build op my projects and libs but great was the desolution if I
saw that my application was still using the old style op buttons, textboxes
etc.
My new projects use the nice controls but my converted one not, what am I
missing?
Greets
Jean Paul Mertens
|
|
|
|
|
I think you may need to add "Application.EnableVisualStyles();" right before your call that loads the form.
|
|
|
|
|
|
hi
how to set the paper size in c#.net.
i tried with this code, which is not reflecting.
printersettings.printsizes.equal(print_size)
print_size, i got this value from the paper sizes selected for hp printer.
how to proceed with this?
hope i ll get help.
regards,
Sarayu
|
|
|
|
|
I don't know how to write the statments in C# but i can in MC++, you can easly cconvert to your C#. (I Realy don't know if this works)
<code>using namespace System::Drawing;
using namespace System::Drawing::Printing;
PageSettings ^pg = gcnew PageSettings();
pg->PaperSize->Height = 500;
pg->PaperSize->Width = 400;
PrinterSettings ^ps = gcnew PrinterSettings();
ps->PaperSizes->Add(pg->PaperSize);</code>
<blockquote class="FQ"><div class="FQA">sarayumadhavan wrote:</div>printersettings.printsizes.equal(print_size)</blockquote>
I hase seen you are using equal(). This function conpares and returns a boolean value if they are equal. example:
<code>String str1 = new String("1");
String str2 = new String("2");
String str3 = new String("1");
str1.equal(str2); // returns false
str1.equal(str3); // returns true</code>
|
|
|
|
|
hi
thank you. i got the answers.
regards,
sarayu
|
|
|
|
|
Does anyone know of a free/open source .NET 2005 compatible docking+toolbar library? There are many very expensive libraries, but I can't seem to find any free ones. I used to use Sandbar/Sanddock from divil.co.uk, which was fantastic but then the owner made it crazily expensive and removed the non-commercial license so I can't use it any more.
Shane
|
|
|
|
|
I may have a solution.
http://www.icsharpcode.net/opensource/sd/[^]
This program is Open-Source (in C#) and has simular IDE VS (Blue Color). But if you don't want to release your software as Open-Source, then please ask an author for permision.
|
|
|
|
|
Hi, this isn't quite what I meant. I'm not looking for an IDE, i'm looking for a window docking and toolbar library.
|
|
|
|
|
Well it does have a libary. you can find:
SharpDevelop2.0.0.784_Source.zip\SharpDevelop\Src\Libraries\DockPanel_Src
it is stand alone project. And it is writen in C#
|
|
|
|
|