|
I use HttpWebRequest to connect ThumbCached server(a open source distributed caching and storing system, see www.domstorage.com), in single thread mode, it work perfect, but in multi-thread application, sometimes HttpWebRequest will not send request actually and throw TIMEOUT exception, It's known that the server is no problem (test by MS Web Application Stress Tool). Any suggeust?
|
|
|
|
|
Are we supposed to guess?
Do you have some sample code that shows what you're doing?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
First post in this forum, so please be gentle.
We have a product, written in C#, using .NET 2, running on a server. It is a normal process, not a service. Occasionally we are seeing a .NET 2.0.x 'Fatal Execution Engine Error', and I wanted some tips on the best way to debug this sort of problem. I know next to nothing about .NET (yet), so please bear with me!
If this was a C++ app, I would install a debug version and the next time it crashed, I would grab the user.dmp log file and use this via Visual Studio to see where the crash occurred. In the old days I would of used a combination of the apps MAP file and a Dr Watson log (gulp). Either way, finding out where the crash occurred would be fairly straight-forward. I could even install some of the MS WINDBG tools to get a debugger on the machine.
So, how would I go about doing the same thing in .NET (short of installing Visual Studio and having the source code on the machine).
|
|
|
|
|
|
How can you disable selection/focus of a checkedlistbox? Setting selectedindex = -1 works but now you can't check any items. FindForm().ActiveControl = null also doesn't work. Any ideas?
|
|
|
|
|
Settings selectedindex = -1 works when you set CheckOnClick to true.
|
|
|
|
|
I want to write a windows service (myService) by using C++/CLI (Visual Studio 2005). This myService can use MFC function for OLE Automation.
Just for a first try, I did the following project configuration and coding:
• Creating a Windows Service under C++/CRL
• Adding ServiceInstaller with start type automatic and sereviceprocessInstaller with Account Local System
• Setting MFC in a Shared DLL
• Setting Common Language Runtime Support (/clr)
• Setting Multithreaded-Debug-DLL (/MDd)
• Adding #include <afxdisp.h> in stdafx.h
Compile is always successful. But when I use myServie.exe –Install to install my windows service in Visual Studio 2005 Command Prompt, I always get the following exceptions
When debugging:
Unhandled exception at 0x78374588 (mfc80ud.dll) in myService.exe: 0xC0000005: Access Violation reading location 0x00000000.
In Visual Studio 2005 Command Prompt:
Unhandled exception: System.AccessViolationException
Attempted to read or write protected memory.
This is often an indication that other memory is corrupt.
at _wWinMainCRTStartup()
Does anyone know the reason? Where am I wrong?
Many thanks for any help!
|
|
|
|
|
See here[^]
... and please don't cross-post!
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thank you! I won't do that again.
|
|
|
|
|
Hi-
I want to create a callout/workflow so that when account "do not allow fax" is changed -
apply same change to sub-accounts and contacts attached to that account.
I am not sure how to do this using callout and how to access all subaccounts and contacts from an account using callout.
Any help would be greatly appreciated.
Thanks!
|
|
|
|
|
The original is in the ASP.NET forum.
|
|
|
|
|
Good to know. Although I doubt anyone will answer since the post reads like it was typed by a epileptic ferret.
led mike
|
|
|
|
|
Cool - I've managed to imprint Ferrets in peoples psyche.
|
|
|
|
|
ROTFLMAO April's been busy voting
led mike
|
|
|
|
|
led mike wrote: epileptic ferret
Oh geeze, are we going to start the ferret thing again?
"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
|
|
|
|
|
Hi
Here i have one ASPxComboBox control (i.e. Dev Express Control).
I am populating this combo box by using javascript. this javascript i am calling in the page onload.
like :
<script type="text/javascript" src="DevComboItems.js" language="javascript"></script>
<script type="text/javascript" language="javascript">
function startfunction()
{
FillItemTypeCombo(document.form1.cmbItems,'Reason for visit');
//FillDevComboItems('Grade');
}
window.onload=startfunction;
</script>
But this is giving error like: 'Dev express' is undefined. Any one can help me please.
This is my java function.
function FillItemTypeCombo(cboItem, sDefaultItem)
{
var sDefaultItem
//cboItem.options.length=0
for(i=0;i<sItemTypeString.split("|").length;i++)
{
if(sDefaultItem == sItemTypeString.split("|"))
{
for(j=0;j<sItemTypeArray.split("|").length;j++)
{
//cboItem.options[j]=new Option(sItemTypeArray.split("|")[j]);
//cboItem.options[0] = new Option(0,new DevExpress.Web.ASPxEditors.ListEditItem ('sItem',0));
cboItem.options[j] = new Option([j],new DevExpress.Web.ASPxEditors.ListEditItem(sItemTypeArray.split("|")[j],[j]));
}
}
}
}
This is my page.
<body>
<form id="form1" runat="server">
<div>
<dxe:ASPxComboBox ID="cmbItems" runat="server"></dxe:ASPxComboBox>
<%-- <asp:DropDownList ID="cmbItems" runat="server"></asp:DropDownList>--%>
</div>
</form>
</body>
Subbu
|
|
|
|
|
Next time put your code in the "code block" when posting. It helps to make it easier to read. Since you lacked any indentation whatsoever, I will just move along
"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
|
|
|
|
|
Hi
Here i have one ASPxComboBox control (i.e. Dev Express Control).
I am populating this combo box by using javascript. this javascript i am calling in the page onload.
like :
<script type="text/javascript" src="DevComboItems.js" language="javascript"></script>
<script type="text/javascript" language="javascript">
function startfunction()
{
FillItemTypeCombo(document.form1.cmbItems,'Reason for visit');
//FillDevComboItems('Grade');
}
window.onload=startfunction;
</script>
But this is giving error like: 'Dev express' is undefined. Any one can help me please.
This is my java function.
function FillItemTypeCombo(cboItem, sDefaultItem)
{
var sDefaultItem
//cboItem.options.length=0
for(i=0;i<sItemTypeString.split("|").length;i++)
{
if(sDefaultItem == sItemTypeString.split("|"))
{
for(j=0;j<sItemTypeArray.split("|").length;j++)
{
//cboItem.options[j]=new Option(sItemTypeArray.split("|")[j]);
//cboItem.options[0] = new Option(0,new DevExpress.Web.ASPxEditors.ListEditItem ('sItem',0));
cboItem.options[j] = new Option([j],new DevExpress.Web.ASPxEditors.ListEditItem(sItemTypeArray.split("|")[j],[j]));
}
}
}
}
This is my page.
<body>
<form id="form1" runat="server">
<div>
<dxe:ASPxComboBox ID="cmbItems" runat="server"></dxe:ASPxComboBox>
<%-- <asp:DropDownList ID="cmbItems" runat="server"></asp:DropDownList>--%>
</div>
</form>
</body>
Subbu
|
|
|
|
|
Don't double post a half an hour apart, does not get you help any faster
"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 just discovered that the managed cryptographic algorithms in .net are not FIPS compliant (more here:[^]) but the CSP's are.
I'm curious if anyone knows why not?
"It's so simple to be wise. Just think of something stupid to say and then don't say it."
-Sam Levenson
|
|
|
|
|
It's pretty straightforward: Microsoft haven't submitted the managed parts of System.Security.Cryptography to testing against FIPS 140-1. They have submitted the Cryptographic Service Providers (the unmanaged CryptoAPI). See the list of approved modules[^].
I don't know why they haven't. I don't really see any reason, other than expense, unless it's simply that the rules don't allow JIT-compiled code. (I don't know whether they do or not, I haven't read them.)
FIPS restricts the algorithms that can be used to this list[^].
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
Mike Dimmick wrote: I don't really see any reason, other than expense
For every software developer that has an existing .net application that uses the managed crypto stuff and has just been informed by their US federal govt. customers that they in turn just discovered that they have less than 2 weeks to have fips approved crypto in there even though the developer used the exact same approved algorithm that outputs the same result but used the managed version which Microsoft happened to not submit it in a giant f*** you to all their managed developers without explanation...well, I guess you have to laugh really the alternatives are to wail and moan about it.
Oh well I guess this affects so few people at this point that no one cares except those developers. Maybe I'll start a micro niche support group.
"It's so simple to be wise. Just think of something stupid to say and then don't say it."
-Sam Levenson
|
|
|
|
|
I can't seem to find a way to format a float, to always have at least two places, but will include up to n places when required, i.e. it will render three places if required, but no trailing zero when only two places are required.
Then, why is my number always rounded to two places in the following example?
float f = 22223.430321F;
MessageBox.Show(string.Format("{0 .0000}", f));
|
|
|
|
|
|
No, thanks. I've since learned that the default for float is rounding to two places, regardless of formatting, and I missed the conversion from SQL float to CLR double. I can work with a double as expected.
|
|
|
|