Click here to Skip to main content
15,891,012 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: The black hole Pin
peterchen23-Jun-08 6:46
peterchen23-Jun-08 6:46 
AnswerRe: The black hole Pin
AJMH18-Jun-08 5:23
AJMH18-Jun-08 5:23 
GeneralRe: The black hole Pin
David MacDermot13-Jun-08 6:13
David MacDermot13-Jun-08 6:13 
GeneralRe: The black hole Pin
PIEBALDconsult13-Jun-08 6:42
mvePIEBALDconsult13-Jun-08 6:42 
GeneralRe: The black hole Pin
elektrowolf17-Jun-08 8:30
elektrowolf17-Jun-08 8:30 
GeneralRe: The black hole Pin
Paul Conrad1-Jul-08 19:35
professionalPaul Conrad1-Jul-08 19:35 
GeneralRe: The black hole Pin
BillW3329-Aug-08 8:56
professionalBillW3329-Aug-08 8:56 
GeneralSomeone knows how fast this code can kill your application? [modified] Pin
Marcello Faga10-Jun-08 1:43
Marcello Faga10-Jun-08 1:43 
<br />
private Pair<RefPoint3d> m_BoundingBox;<br />
<br />
public Pair<RefPoint3d> BoundingBox<br />
<br />
{<br />
<br />
      get { return BoundingBox; }<br />
<br />
      set { m_BoundingBox = value; }<br />
<br />
}


Did you never define a property in this way?
The run-time consequence is amazing: no exceptions at all, and sudden termination of the debug session when you are hovering the call at the property in your client module.
PS: the error is inside the get property, because of the not voluntary recursive cycle it generates.
PPS: I have no idea how this issue can be coded, the automatic refactoring of VS2005 should make impossible to code malware property.

****************************
Strong congruence
for strong people;
with a compatible behaviour.
For a semantical way of life.

modified on Tuesday, June 10, 2008 10:22 AM

GeneralRe: Someone knows how fast this code can kill your application? Pin
jamie55010-Jun-08 1:49
jamie55010-Jun-08 1:49 
GeneralRe: Someone knows how fast this code can kill your application? Pin
CPallini10-Jun-08 2:29
mveCPallini10-Jun-08 2:29 
GeneralRe: Someone knows how fast this code can kill your application? Pin
PIEBALDconsult10-Jun-08 14:08
mvePIEBALDconsult10-Jun-08 14:08 
GeneralRe: Someone knows how fast this code can kill your application? [modified] Pin
Marcello Faga10-Jun-08 22:47
Marcello Faga10-Jun-08 22:47 
GeneralRe: Someone knows how fast this code can kill your application? Pin
OregonGhost11-Jun-08 2:13
OregonGhost11-Jun-08 2:13 
RantRe: Someone knows how fast this code can kill your application? Pin
Nathan Tuggy17-Jun-08 9:43
Nathan Tuggy17-Jun-08 9:43 
GeneralRe: Someone knows how fast this code can kill your application? Pin
PIEBALDconsult11-Jun-08 4:10
mvePIEBALDconsult11-Jun-08 4:10 
GeneralRe: Someone knows how fast this code can kill your application? Pin
Giorgi Dalakishvili11-Jun-08 6:04
mentorGiorgi Dalakishvili11-Jun-08 6:04 
GeneralRe: Someone knows how fast this code can kill your application? Pin
Paul Conrad2-Jul-08 17:49
professionalPaul Conrad2-Jul-08 17:49 
GeneralMust love to run twice Pin
che33589-Jun-08 7:34
che33589-Jun-08 7:34 
GeneralRe: Must love to run twice Pin
CPallini9-Jun-08 8:34
mveCPallini9-Jun-08 8:34 
GeneralRe: Must love to run twice Pin
Vasudevan Deepak Kumar10-Jun-08 2:42
Vasudevan Deepak Kumar10-Jun-08 2:42 
JokeRe: Must love to run twice Pin
PIEBALDconsult10-Jun-08 14:11
mvePIEBALDconsult10-Jun-08 14:11 
GeneralRe: Must love to run twice Pin
Jonathan C Dickinson12-Jun-08 4:39
Jonathan C Dickinson12-Jun-08 4:39 
GeneralUgly or a horror? Pin
Naturality8-Jun-08 14:10
Naturality8-Jun-08 14:10 
GeneralRe: Ugly or a horror? Pin
luckeryin9-Jun-08 3:53
luckeryin9-Jun-08 3:53 
GeneralRe: Ugly or a horror? Pin
amweiss9-Jun-08 7:52
amweiss9-Jun-08 7:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.