|
I don't know much about web services cause I usually use remoting. But try passing the filestream to the server as a parameter.
|
|
|
|
|
Hope this is the right forum for this sort of question...
We've been running VC 6.0 and are considering upgrading. My boss has a dual CPU machine, and VC 6.0 doesn't take advantage of it because the compiler is not multithreaded. We were wondering if this has been address for the .NET version of the compiler. Anyone got any ideas on this?
Chistopher Duncan
Author - The Career Programmer: Guerilla Tactics for an Imperfect World (Apress)
|
|
|
|
|
While compiling my CPU usage goes over 50% on my dual, but not to 100%
This means that it is not multithreaded, but some tasks are being done in seperate processes. I would assume the compiler is some sort of console utility running in the background, with VS listening and echoing (which takes cycles from the tool on a single cpu).
And performance isnt the only reason to go dual!
Being able to use photoshop, browse the net, review code, etc. while vs.net does its thing is just as valuable.
|
|
|
|
|
Thanks for the feedback. Yeah, that's the same behavior we noted in 6.0. Oh, well...
Christopher Lord wrote:
And performance isnt the only reason to go dual!
Being able to use photoshop, browse the net, review code, etc. while vs.net does its thing is just as valuable.
Which is the reason, of course, that he went dual. Er, did I mention he was the boss? (In fairness, we all have screaming machines and ours, while not dual, have faster CPUs that actually build the system quicker than his. I think we got the better end of the deal.)
Thanks, man!
Chistopher Duncan
Author - The Career Programmer: Guerilla Tactics for an Imperfect World (Apress)
|
|
|
|
|
By Microsoft's own admission, the C# compiler is not much of an optimizer. I need to get a particular class working blazing fast, so I'm using ildasm to get the IL, modifying it and ilasm-ing it back to a PE.
I need to know what's a faster way to push two references to the current object onto the stack:
ldarg.0
ldarg.0
OR
ldarg.0
dup
Thanks
|
|
|
|
|
I'm going to ask a dumb question:
If you're requiring performance only, why not go for C++ (or even inline C) ?
I don't see the benefit of doing IL manually.
Cheers,
Simon
"Every good work of software starts by scratching a developer's personal itch.", Eric S. Raymond
|
|
|
|
|
After disassembling the Managed C++ code, I realized that I can optimize it better than the compiler. However, the MC++ included some native code which can't be disassembled with ildasm so I can't compile it with ilasm. Besides, since the stuff is managed, it doesn't really matter what language I write in; I like C#.
|
|
|
|
|
I think it does. Only memmory is managed, but the Managed C++ code is more optimized that C#, actually I think is the only optimized language from .NET. Also with managed you can combine managed and unmanaged code so you can obtain native code for real time actions.
Best regards,
Alexandru Savescu
|
|
|
|
|
Could you direct me to where ms says mc++ is more optimized?
I cant seem to find reference to that.
|
|
|
|
|
The 2nd part is faster since dup doesn't need to be verified and it's considered type safe
Cheers,
Joao Vaz
The loved ones never really leave us , they are always alive on our hearts and minds.
|
|
|
|
|
And since you are interested in Il, check the Ecma-335 specificationthat deals with the Commom Language Infrastructure, in which IL instruction set belongs, here Common Language Infrastructure
Cheers,
Joao Vaz
The loved ones never really leave us , they are always alive on our hearts and minds.
|
|
|
|
|
I don't think there will be any observable difference between the two. I will really be surprised if your hand optimization gives you more speed than the unoptimized code.
I have never wasted time worrying about such insignificant things. Keep your eye upon the donut and NOT upon the hole. - Bill Sergio about posting in the right forum. The Lounge - June 23, 2002
|
|
|
|
|
Excuse my (!knowledge ) of WebServices.
Let's say I have a simple WebService that accepts 2 integers and give you back the result of addition.
What's the way to make this service known to other applications. Do you need to setup some central server, so it would keep track of all services (let's say in an Intranet), or is there a standard way to do it ?
Thanks
Venet.
--------
Black holes are where God divided by zero.(Steven Wright)
|
|
|
|
|
Hi Venet
Have a look at UDDI.
If you're doing this more for a test, then maybe link your webservice from XMethods.
HTH
Cheers,
Simon
"Every good work of software starts by scratching a developer's personal itch.", Eric S. Raymond
|
|
|
|
|
Thanks Simon,
Question answered. This is exactly what I needed.
Venet.
--------
Black holes are where God divided by zero.(Steven Wright)
|
|
|
|
|
I've extended the TreeNode control to add an additional property. Now, what
I'd like to do is capture the MouseDown event so I can perform some tasks
when either the left or right mouse button is clicked. However, I can see
that the TreeNode doesn't have any events to override. I tried capturing it
with the TreeView control, but can't get the underlying object that was
clicked.
Any ideas? I was thinking about creating my own custom event in my extended
control (TreeNodeExID)... but I can't find any examples or documentation...
-AC
Andrew Connell
IM on MSN
andrew@aconnell.com
|
|
|
|
|
Override the WndProc procedure and handle the Windows Message WM_LBUTTONDOWN:
class TreeNodeExID : TreeNode
{
...
public const int WM_LBUTTONDOWN = 0x0201;
protected override void WndProc(ref Message m)
{
if(m.Msg == WM_LBUTTONDOWN)
{
}
base.WndProc(ref m);
}
}
|
|
|
|
|
RSA Parameters has an Exponent value and Modulus value how do i combine these to get the public key
|
|
|
|
|
How can I fill ( or create ) a Enum using DB records as items ??
Or How can I override a enum declaration ?
( I want to add items to an Enum declarated in other class )
thanks
Marcelo Duarte
uruguay
|
|
|
|
|
This may be possible by progmatically writing code and then using Emit() to generate a runtime assembly, and then using that code.
But really, you shouldnt add so much complication. Better to keep the records in their native format.
|
|
|
|
|
Christopher Lord wrote:
Better to keep the records in their native format.
Agreed.
It might also be an option to check out Typed Datasets.
Cheers,
Simon
"Every good work of software starts by scratching a developer's personal itch.", Eric S. Raymond
|
|
|
|
|
Hi!
I want to know if there's an API I can use in .NET that makes it possible to read text from any program if I e.g. do a right-click and hold ALT.
Something like an OCR API reading from screen... well, I don't know how to describe it correctly, but if you know the tool "Babylon Translator" you know what I mean...
Thanks in advance!
|
|
|
|
|
I have set up a remoting host and client, and they work well. Now I would like the host to send a file to the client, but can't figure out how to do it. I need a function in the remoted object that would look something like this-
Public Function FileTran() as File
return C:\test.txt
End Function
I know this is completely incorrect, but you get the idea of what I'm trying to do.
Can anyone please give me some pointers?
Thanks in advance,
Steve
P.S. VB.NET code prefered, but C# would be fine too.
|
|
|
|
|
Well, look into Stream objects. I've never used them over a remoting link, but if MS did a really good job it should be seemless.
If not, you'll have to chunk and send, which will be slow but will get the job done.
Simply chunk your file into a buffer, and send the buffer across the wire as an array of bytes, and then reconsitute. Thats not gonna be a whole lot of fun, though.
|
|
|
|
|
Do you think it would matter whether I marshal by ref or serialize? I'm asking because I've never remoted serialized objects, but I've seen them mentioned frequently.
|
|
|
|