Jump to content

Ugochukwu Mmaduekwe

Members
  • Content Count

    112
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Ugochukwu Mmaduekwe

  1. Ugochukwu Mmaduekwe

    CrossPlatform uPnP solutions for Delphi

    While this is ok, it's only for Windows and not crossplatform.
  2. Ugochukwu Mmaduekwe

    CrossPlatform uPnP solutions for Delphi

    Thanks, but unfortunately these does not give enough insight to the nitty gritty of the operations.
  3. Hello all, I encountered a weird behaviour of FillChar today. The Demo below illustrates the bug. program Project1; {$APPTYPE CONSOLE} {$R *.res} uses SysUtils; procedure PrintArray(const ar: array of UInt32); var i: Int32; begin for i := Low(ar) to High(ar) do begin WriteLn(ar[i]); end; end; var a: array [0 .. 5] of UInt32; begin try { TODO -oUser -cConsole Main : Insert code here } FillChar(a, SizeOf(a), UInt32(4)); PrintArray(a); ReadLn; except on E: Exception do WriteLn(E.ClassName, ': ', E.Message); end; end. I expected but got the strange values in the image below. Any idea what's wrong?
  4. Ugochukwu Mmaduekwe

    Strange Behaviour of FillChar for Non Byte Array Arrays.

    Well thanks for the answer, I guess I will resort to using a for loop for what I want to achieve.
  5. Ugochukwu Mmaduekwe

    Strange Behaviour of FillChar for Non Byte Array Arrays.

    Thanks for the explanation.
  6. Ugochukwu Mmaduekwe

    Strange Behaviour of FillChar for Non Byte Array Arrays.

    Oh I see, Thanks for replying. Is it possible for me to use FillChar on arrays of UInt32 properly? Let's say an equivalent of FillChar that works with array of UInt32 other than using a loop.
  7. Ugochukwu Mmaduekwe

    Pointers are dangerous

    Aeroplanes are dangerous, does that mean we don't take flights?
  8. Ugochukwu Mmaduekwe

    Android Compiler Issue in Delphi Tokyo (10.2.3)

    done. https://quality.embarcadero.com/browse/RSP-21842
  9. Ugochukwu Mmaduekwe

    Android Compiler Issue in Delphi Tokyo (10.2.3)

    Thanks all, I finally got it to work. Unfortunately I had to uninstall every other Java version leaving only JDK 1.8_60. It seems Tokyo only works with JDK 1.8_60. Thanks once again.
  10. Ugochukwu Mmaduekwe

    Android Compiler Issue in Delphi Tokyo (10.2.3)

    Ok, I just installed JDK 7 ( jdk1.7.0_80 ) and changed the corresponding path as you stated, restarted my PC, same issues, Am gradually losing my mind here.
  11. Ugochukwu Mmaduekwe

    Android Compiler Issue in Delphi Tokyo (10.2.3)

    Ok, so I just changed the JDK path from C:\Program Files\Java\jdk-9.0.1\bin to C:\Program Files\Java\jdk1.8.0_60\bin (stock Tokyo version) using the tool you specified (thanks). Now here is my output tab log, pretty much the same error.
  12. Ugochukwu Mmaduekwe

    Android Compiler Issue in Delphi Tokyo (10.2.3)

    Do you mean Delphi Tokyo 10.2.3 can't use JDK 9? My Tokyo came with jdk1.8.0_60, should I change my path to this (jdk1.8.0_60)?
  13. Ugochukwu Mmaduekwe

    Android Compiler Issue in Delphi Tokyo (10.2.3)

    Thanks for replying. Have done as you said, unfortunately, no progress. below is my output tab log. it's saying something about could not create the java virtual machine, have restarted my PC countless times to no avail, uninstalled and reinstalled the JDK multiple times too. if I run java -version in cmd, I get java version "9.0.1" Java(TM) SE Runtime Environment (build 9.0.1+11) Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode) The annoying thing is that everything was working fine about 2 days ago.
  14. Ugochukwu Mmaduekwe

    Android Compiler Issue in Delphi Tokyo (10.2.3)

    no problems. about the config, it worked fine that way before the upgrade.
  15. Ugochukwu Mmaduekwe

    Android Compiler Issue in Delphi Tokyo (10.2.3)

    Thanks for replying, Just did that, same error as above.
  16. Hi all, I wrote a simple function to help me convert a string to an array of char but I keep getting random occurring access violations. class function TUtilities.StringToCharArray(const S: String) : TCharArray; begin if System.Length(S) > 0 then begin System.SetLength(Result, System.Length(S)); StrPLCopy(PChar(Result), S, System.Length(Result)); end; end; Anyone know the cause? Thanks.
  17. Ugochukwu Mmaduekwe

    Strange and Random Access Violations

    Thanks a lot for the explanation.
  18. Ugochukwu Mmaduekwe

    Strange and Random Access Violations

    Thanks but am trying to avoid the string helper functions, I also want to avoid using *move* on strings because I heard some time back that it breaks reference counting on strings.
  19. Ugochukwu Mmaduekwe

    Strange and Random Access Violations

    Oddly enough, this seems to work. Another function in my arsenal. Thanks.
  20. Ugochukwu Mmaduekwe

    Strange and Random Access Violations

    This will give the same access violation as the previous one if you run it multiple times in a loop. The +1 space for the null terminator still applies.
  21. Ugochukwu Mmaduekwe

    Strange and Random Access Violations

    unfortunately, this did not work, but thanks either way.
  22. Ugochukwu Mmaduekwe

    Strange and Random Access Violations

    too bad that the compiler can't detect the out of range Thanks a lot, this did solve the problem.
  23. Ugochukwu Mmaduekwe

    http://community.idera.com/ login woes

    It did work beautifully for me. May be it has been resolved or am just lucky.
  24. Ugochukwu Mmaduekwe

    QRCodeGenLib4Pascal

    I know most of you are already aware of this but I just wanted to indicate that I recently just added *experimental* FMX Support and if everything goes well, I plan to merge it to the official repository. I will appreciate it if you all can help me test support in other supported Firemonkey platforms, I have just been able to test on only the Windows Platform and it seems to work fine. FMX Branch can be found here Instructions on how to Compile the Library for FMX can be found in the FMX Branch README. Thanks.
  25. Hi all, Is there a compiler define that I can use to distinguish between FireMonkey and VCL in my include file? I want to use this define in my include file (.inc) that will be referenced in all my project units. Lets say something like this. I tried this but it doesn't seem to work in my inc file. {$IF DECLARED(FireMonkeyVersion)} {$DEFINE FMX} {$ELSE} {$DEFINE VCL} {$IFEND} Thanks.
×