|
Hi Ami,
assuming the calculations outweigh the memory transfers and general program flow,
I expect no difference whatsoever between a 32-bit and a 64-bit version of your app:
they both will spend their time mostly on processing 64-bit data that sits in the
float registers and/or the data cache.
So if your 64-bit app is slower, something definitely is wrong. Are you comparing equal
things (e.g. both release builds, identical jobs)?
If you have been trying to optimize things by using multiple threads, then maybe the two
systems you compare are not equally happy about your threading approach. If this applies,
it has to be looked at more thoroughly... As a first measure, you could reduce to one thread
and compare these (again expecting equality).
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Hi Luc,
Luc Pattyn wrote: So if your 64-bit app is slower, something definitely is wrong. Are you comparing equal
things (e.g. both release builds, identical jobs)?
It is the exact project (Release mode), the only difference is the target CPU x86 or x64.
Luc Pattyn wrote: If you have been trying to optimize things by using multiple threads, then maybe the two
systems you compare are not equally happy about your threading approach. If this applies,
it has to be looked at more thoroughly... As a first measure, you could reduce to one thread
and compare these (again expecting equality).
I am using some multithreading, I'll try to do it in one thread and check the results.
Thanks for the advice.
Ami
|
|
|
|
|
Just wanted to know if shutdownTimeout has any edge over the traditional executionTimeout at least with respect to ASP.NET.
I have my application wait for a slow network response. But sometimes when the servicing network is slow, the front-end web application goes astray. Here is my query:
Can I be able to keep my ASP.NET worker process alive in a particular session from within ? I am sure that one possible reply would be that this would open up loopholes for hackers to break into. But I can ensure that this code resides well within a httpmodule and parsed only one genuine needs.
|
|
|
|
|
Have you resolved this?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I'm going to bind data set to combo boxes. Data set is compound from 2 tables and joined by relation. The declaration is as follows:
Private tablePRAgent As PRAgentDataTable<br />
<br />
Private tablePRAgentLocation As PRAgentLocationDataTable<br />
<br />
Private relationPRAgentPRAgentLocation As DataRelation<br />
The table PRAgentDataTable has main rows with details in table PRAgentLocationDataTable . So first combo is bound to PRAgentDataTable and second - to PRAgentLocationDataTable , by relation. Filling adapters (and in consequence combos) while I add clause "WHERE col=@parameter" ends with "exception of type 'System.Data.ConstraintException'". When there is no WHERE clause everything goes right.
How could I overcome this problem?
|
|
|
|
|
Hello,
I have created a DLL with
signed key , com visibility is true and registered it with regasm but still when i try to use it in ASP page by calling server.createobject() i can not use.
Please suggest.
Pavas
|
|
|
|
|
Ha anyone converted the NCrypto library to .Net 2.0?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Any luck at converting it?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Nope - I had to move on at work.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hey all
I'm developing an .NET application (C#) which hosts a WebBrowser control. The WebBrowser contains a Java Applet. I'm experiencing serious problems with ComboBoxes in this Java Applet. It seems like the comboboxes don't respond to mouseclicks. I can open the dropdown list, but I can't select any items. If I instead use the keyboard it works perfectly...But that's just not good enough
If I open the Java Applet in a "standalone" browser everything is peachy...
Has anyone experienced this ?? And maybe even got a solution ? :-P
|
|
|
|
|
Greetings,
I am having C# project that make the Executable also. The system use over 20 users' machines. Currently I installed the exe indidual machines coping the source and it is tedious task to do! When i have to do any modification in existing, then again i have to make the setup.exe and installed individual machine.
Are their any way to do this task simple? like one VB.exe(in share folder in LAN), create shortcut and running ncely noh! like that!!!
Any learning resources, plz send me!!! U r Welcome!
Thanks in advance!
|
|
|
|
|
Take a look at ClickOnce, you can install the application onto their machines using this but it'll automatically check for updates and download and install them if configured to do so.
|
|
|
|
|
http://www.15seconds.com/issue/040121.htm Read this article this ll help you a lot. This article is about .net code access security
best regards,
krishna
|
|
|
|
|
Does anybody know how to organize dialog between 2 sites?
For example, site1 sends a message to site2. Site2 recieves the message and sends "The message was recieved"
|
|
|
|
|
Hi all,
suppose the current application is running in ur version 1.0.0.3 and now u are required to use new version 1.0.0.4 .
Now i need to know where can i make the changes i.e for the update to effect
in GAC or Application's web.config
Can anyone suggest me the answer
Thanks
kumar
|
|
|
|
|
Make changes in web.config , make a dll and store it in GAC
|
|
|
|
|
Dear Code Project Users,...
I'm using VS 2005 C# .NET to create a windows forms application. The application uses two .NET components, Dundas Gauge and Cognitance VideoCog.
I've written the software on my development machine and it runs well in release or debug mode. I have the .NET 2.0 SDK installed. I've also tried the software on my laptop. This has .NET 2.0 installed too. All works well. However, typically, as these things always do... the one machine it doesn't work on is end users machine! This machine also has .NET 2.0 installed.
I have tracked the problem down to InitializeComponet, by placing a try catch around it. The error is as follows:
Exception in Form1 System.IO.FileNotFoundException. The specified module could not be found. (HRESULT: 0x8007007E)
at ... Form1.InitializeComponent
I've placed a MessageBox on the first line of InitializeComponent, however it never calls it. So it appears that its not my code causing a problem. So anybody any idea what file InitializeComponent is looking for, and more importantly how do I solve it?
Note, I don't have VS2005 installed on the end users machine for debugging, and putting it on there is my last resort!
|
|
|
|
|
Since you are using two third-party components, have you verified that those DLLs are also on the end user machine? You don't need to install them, but the DLLs should be part of your install process, even if it is to copy them to the application directory.
|
|
|
|
|
Hello,
I am facing the problem using dtpicker.
Im my vb.net application on selecting dtate from dtpicker i am displaying records from database in agrid
By default i am displaying the today's date in the format 08/09/2007.
When i execute my application and changes the date using keyboard for instacnce pressing 06 for date
and 08 for month it accepts date without moving cursor from the current position and i get result.
But if i press 6 (instead 06) it doesn't accept. I tried to trace tthis value in dtpickers keyup, keydown , text changed and keypress events but not getting the current value unless and until i move cursor from it.
I am terribly stuck to this problem.
Please help me. Anyone who knows how it read current text of dtpicker please let me know.
any help will be highly appreciated.
Thanks a lot in advance.
|
|
|
|
|
hello friend !
in datetimepicker you can set the property of datetimepicker
Go to the property window set (1)custom formet : dd/MM/yyyy
(2) Format : short
(3)Value : current date
your problem is solve
bye have a nice day
|
|
|
|
|
Hi,
My .NET com dll is working fine, if I install it on local machine, but if I install it on mapped network drive, I am getting Exception error:
"Request for Permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, Publickey Token=b77a5c561934e089' failed.
Regards,
SA
|
|
|
|
|
Any manage code running from a non-local driver, i.e.: network share, is not trusted and runs inside a heavily restricted sandbox. The code has no rights to any local machine resources, like the file system and registry, among many others. This is what's causing the exception.
You've got a bunch of reading to do to understand Code Access Securty[^].
|
|
|
|
|
Hi Everyone,
Consider the following scenario .... i am calling a function that can throw 2 custom exceptions for Ex:- ExceptionA and ExceptionB , that was derived from ApplicationException ie
try
{
MethodthatraisesException();
}
catch (ExceptionA e1)
{
LogMessage(e1);
}
catch (ExceptionBe1)
{
LogMessage(e1);
}
The logmessage will just log the details to a file.... In Such a case, can we rewrite the code above as
try
{
MethodthatraisesException();
}
catch (ExceptionA e)
{
LogMessage(e1);
}
Will there be any performance constraints in the second approach
|
|
|
|
|
First, please put large code snippets like this inside of <pre> tags to keep the formatting and help make it more readable.
try
{
MethodthatraisesException();
}
catch (ExceptionA e1)
{
LogMessage(e1);
}
catch (ExceptionB e1)
{
LogMessage(e1);
}
try
{
MethodthatraisesException();
}
catch (ExceptionA e1)
{
LogMessage(e1);
} There are some differences in runtime behavior between these. In the second example, you will only catch exceptions of type ExceptionA and anything derived from it. So, if ExceptionB is derived from ExceptionA this will work, if not you'll only catch one of the exceptions.
That being said, in your examples, you are "eating" the error. You catch the exception, log it, but don't pass it up the chain by calling throw(); to rethrow the exception. This may be what you want, but generally you should only catch an exception if you can do some meaningful cleanup work as a result; if not, let the exception bubble up to whoever is interested.
There really aren't any differences in performance between the two. The runtime still has to perform a stack walk all the way up the chain looking for something that will handle the exception.
|
|
|
|
|
If ExceptionB is derived from ExceptionA then both samples will work in the same way, because an ExceptionB will be cathced in the first sample by the first catch block, too. To catch them seperately, the catch blocks have to be switched.
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|