Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 04/11/23 in all areas

  1. Roger Cigol

    WideString.c_bstr() operation in 11.2

    I've created an RSP. https://quality.embarcadero.com/browse/RSP-41374
  2. Deviating slightly from the original topic: I wonder when green computing will become a part of education and business, i.e. writing code / designing libs that are less expensive in the context of power consumption.
  3. Renate Schaaf

    Parallel Resampling of (VCL-) Bitmaps

    @johnnydp Sorry for the late reply, I took a break from delphi. I now created a repository on GITHub which contains the latest version of the resampler plus 2 demos. https://github.com/rmesch/Repository-R.Schaaf See you, Renate
  4. I would really suggest that you postpone messing with pointers until you have a better understanding of the language. Use an array or a TList instead; They perform better. Also, objects aren't really suited for double-linked lists as you will need a full (but empty) object for the head node. That said, the problem appears to be that you aren't aware that an object reference is itself a pointer and that local variables are temporary and allocated on the stack. Thus... Tmp^.Next := @Node ...assigns the address of the Node pointer (and not the address of the Node object) to the Next field. The correct statement would look more like this: Tmp.Next := Node; Notice that the dereference operator (^) is optional so I didn't use it. I think it often just makes the code harder to read.
×