|
While browsing through Q&A this morning I came across this question:
FetalExecutionEngineError On OpenFileDialog.showDialog()
I'm guessing that the engine must be a little underdeveloped to get this type of error.
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
What an abortion!
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
|
|
|
|
|
and the bad news is you only land there if the fetal execution fails...
Think of how stupid the average person is, and realize half of them are stupider than that. - George Carlin
|
|
|
|
|
Is that real, or is it... doctored?
Too much? I'll grab my coat (which will free up a coat hanger).
|
|
|
|
|
On a serious note, I did get this once, and eventually (after several weeks) I figured out it was caused by my installation of Visual Studio 2010. It appears an update caused corruption in some place in the framework. I really have VS2010, and am going to uninstall it soon.
I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image.
Stephen Hawking
|
|
|
|
|
Great catch. I ran into this one the other day in VS 2012.
Web deployment task failed. (Failed to create type 'Microsot.SqlServer.Dac.DacServices'.
An new company you think?
|
|
|
|
|
Microsot? Is that a tiny barfly?
Fletcher Glenn
|
|
|
|
|
Just found:
'Dim w As Object = DBNull.Value
'Dim i As Integer = 1
'i = w
'Throw New Exception("XIMBA")
|
|
|
|
|
I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image.
Stephen Hawking
|
|
|
|
|
|
|
Just un-comment the lines of code and run the programm. If i=w works fine, you'll be thrown to Ximba (a region in South Africa). Beware of the mythical forces which could be applied.
|
|
|
|
|
hmm...probably the original dev loved this place or he was hinting something about it this way
modified 17-Oct-12 1:30am.
|
|
|
|
|
We have too many extension methods spread across our project, I was organizing those methods with the rule of thumb 'as long as they reside in same namespace class name won't matter', by placing string, enumerable and other extension members to appropriate classes, to avoid members being duplicated. (Even I repeated things and thats why the organizing.. )
And then I've unearthed this gem.
public static class ExtensionMethods
{
public static bool Contains(this string source, string toCheck, StringComparison comp)
{
return source.IndexOf(toCheck, comp) >= 0;
}
…
I found two odd things with this implementation,
- first string already contains an overload "Contains(string toCheck, StringComparison comp)", I "honestly" don’t know if it makes any difference.
- second the usage this where the compiler failed, and used in many places the same way!
if (ExtensionMethods.Contains(item.Caption, "Some text here", StringComparison.OrdinalIgnoreCase))
{
...
...
}
I don’t know if the author learned the purpose of existence of extension methods! And need someone to fix things!
Edit : there is no such overload, it's the same extension on intellisence
modified 16-Oct-12 6:56am.
|
|
|
|
|
He/She probably wanted to do some coding
|
|
|
|
|
VallarasuS wrote: string already contains an overload "Contains(string toCheck, StringComparison comp)"
Does it? Which version of .NET are you using?
The only overload listed on MSDN is string.Contains(string) .
http://msdn.microsoft.com/en-us/library/dy85x1sa.aspx[^]
Are you sure you're not getting confused by seeing the extension method in the intellisense list?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
You are right! Shame on me...
|
|
|
|
|
I get an email whenever there's an error on my webapps. We recently initiated a service to do Red-Siren testing; e.g., testing for any security issues.
Got an error message today.
Of most interest, and danged funny at that, is the unedited, verbatim "Error Message" from Microsoft's lovely .NET Framework ... (emphasis added)
URL: https : / / www.RedactedWebSite.com /SomeWebApp/ThatLoginPage.aspx?ReturnUrl=%2fSomeWebApp%2fDefault.aspx%3faction%3dppr&action=ppr%3CScript%20%3Ealert(%22HelloSIG%22)%3C/Script%3E
Error Date: [redacted]
Error Message: A potentially dangerous Request.QueryString value was
detected from the client (action="ppr<Script >alert("Hell..."
Albeit a little late (going on 7+ years of .NET programming...), thanks for the warning Microsoft!
|
|
|
|
|
Message Closed
modified 4-Oct-12 18:55pm.
|
|
|
|
|
void ReadTheAbovePost(object sender, EventArgs e)
{
if (theObvious(ThankYouForPointingOutTheObvoius, "Thank You For Pointing Out The Obvious."))
return;
}
bool theObvious(bool condition, string cluedIn)
{
if (condition) { MessageBox.Show(cluedIn, "Thx");
return condition;
}
|
|
|
|
|
override bool theObvious(bool condition, string cluedIn)
{
if (condition)
MessageBox.Show(cluedIn, "Thx");
else
{
}
return condition;
}
|
|
|
|
|
CS007: theObvious cannot be overridden; theObvious is not virtual; theObvious is private.
|
|
|
|
|
|
I encountered one once that amused me so much I taped a screenshot of it on my office door. It consisted of nothing but an exclamation point icon and the two words:
"Catastrophic Failure"
|
|
|
|
|
Well, it can't be clearer, Everything is wrong! time to run like a headless chicken!
|
|
|
|