|
Looks like the bug is gonna be crushed soon!
it only took me 3 days (So far...), one of my longest (C# bug) chase...
And it's in C#...
I have pinpointed it completely yet, so I dunno why Visual Studio was not breaking on the exception yet.. But getting there, only a few hundreds of line of possible cause...
[EDIT]
Nailed it!
The evilest code that can be! Visual Studio will absolutely not help you find what was wrong here!!
The Weird and The Wonderful
modified 30-Apr-18 23:40pm.
|
|
|
|
|
You can't trust debuggers.
|
|
|
|
|
They are generally helpful though!
|
|
|
|
|
Sorry to spoil your fun, but ... it's been that way for a long time, and it's a "feature" not a "bug".I.e. it's in the documentation: StackOverflowException Class (System)[^]
MSDN (Remarks): In the .NET Framework 1.0 and 1.1, you could catch a StackOverflowException object (for example, to recover from unbounded recursion). Starting with the .NET Framework 2.0, you can’t catch a StackOverflowException object with a try/catch block, and the corresponding process is terminated by default. Consequently, you should write your code to detect and prevent a stack overflow. For example, if your app depends on recursion, use a counter or a state condition to terminate the recursive loop.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Yeah, I was vaguely aware of that. It's one of those funny exceptions like ThreadAbortException and the stuff of body bags.
It's not immediately obvious to me though why it cannot be caught, perhaps to do with the limits on the stack trace/unwindability? Particularly in the managed world you'd think it could be handled gracefully. But then, is the stack checked by the CLR (surely) or does this rely on some more fundamental interrupt based or other such approach? Using a counter to detect recursive level is filthy.
I demand answers.
Regards,
Rob Philpott.
|
|
|
|
|
I agree - and that it worked in V1.0 but doesn't in V2.0 and above kinda says "we let the intern do this bit via Stack Overflow". And then rather than fix it they document the problem and call it a feature that the class has become completely useless ... I guess it's cheaper to document things than to fix bugs.
Leaves a nasty taste, this one.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Probably because like with an out of memory error on the heap it can't guarantee that there will be sufficient ram available to do the required error processing.
Theoretically they could preallocate enough ram to handle the cleanup/etc at process startup, but after the J++ fiasco they're unwilling to copy features from Java.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
Rob Philpott wrote: t's not immediately obvious to me though why it cannot be caught, perhaps to do with the limits on the stack trace/unwindability I would guess that's it. They're concerned that the contents of the stack have been damaged during the overflow and that unwinding might obscure the overflow as the primary cause of the problem.
Software Zen: delete this;
|
|
|
|
|
Damn!
|
|
|
|
|
I took two weeks to find a bug in the CString class in MFC, and microslop said they weren't going to fix it.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
I guess you haven't play with WPF, specifically XAML, or may be you have. The thing gives me the creep. It sometimes works, sometimes not. Sometimes it give errors not even related to what you were making changes.
This WPF (XAML) makes JavaScript and HTML looks good.
|
|
|
|
|
(Is back in the Lounge!)
If life gives you Llamas, should you make Llamanade?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Is that the Dalai Lemon's philosophy?
Ad astra - both ways!
|
|
|
|
|
That's terrible. I'll help you alpaca.
|
|
|
|
|
See, citrus is what everyone was saying would happen. Andes is just the beginning.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
|
|
Any one tried the, The VectorN classes, MatrixAxB and friends?
Any success or horror stories?
|
|
|
|
|
There used to be a few, but they seem to be going the way of the dinosaurs.
Softronic is still around. I used to have a listing at HitSquad, but they're pretty much defunct.
I'm afraid of CNet....but should I be?
Are there any sites out there anymore where I could promote my music software? For free.
I'll already do the Facewbook advertising thing (so I can annoy everyone on FB, rather than just my friends), but I'd like more than that.
|
|
|
|
|
|
I'm on there, too. It says over 2000 downloads...nobody's buying, though. LOL
Also: Weird, the price is listed as $37.14 rather than the $29.95 I set on Amazon.
Noit the first time I've seen that. Depending on which computer I use, I'll either see the real price, or something totally bizarre with no explanation. I think it's being converted to/from a different currency and not translating well, but I don't know if it's Amazon doing it or what.
|
|
|
|
|
Can you post a link?
/ravi
|
|
|
|
|
If I remember to log back in at home...Softpedia is blocked here.
The listing is for MIDImage, though.
|
|
|
|
|
|
GenJerDan wrote: I'm afraid of CNet....but should I be? I think they bundle some unwanted stuff before downloading so better not to use it.
GenJerDan wrote: Are there any sites out there anymore where I could promote my music software? For free. I don't know much. Alternatively you could try sites like itch, gumroad which are popular among indie creators. Better than current paypal option.
GenJerDan wrote: I'll already do the Facewbook advertising thing (so I can annoy everyone on FB, rather than just my friends), but I'd like more than that. I heard that fb advertisements don't work much nowadays. You could promote your site too side by side which is one more better option. Make an udemy free course(30 min) about your app.
BTW when you're releasing Hungry Tiger 2?
|
|
|
|