-
Content Count
112 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Ugochukwu Mmaduekwe
-
CrossPlatform uPnP solutions for Delphi
Ugochukwu Mmaduekwe replied to Ugochukwu Mmaduekwe's topic in Network, Cloud and Web
While this is ok, it's only for Windows and not crossplatform. -
CrossPlatform uPnP solutions for Delphi
Ugochukwu Mmaduekwe replied to Ugochukwu Mmaduekwe's topic in Network, Cloud and Web
Thanks, but unfortunately these does not give enough insight to the nitty gritty of the operations. -
Strange Behaviour of FillChar for Non Byte Array Arrays.
Ugochukwu Mmaduekwe posted a topic in RTL and Delphi Object Pascal
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? -
Strange Behaviour of FillChar for Non Byte Array Arrays.
Ugochukwu Mmaduekwe replied to Ugochukwu Mmaduekwe's topic in RTL and Delphi Object Pascal
Well thanks for the answer, I guess I will resort to using a for loop for what I want to achieve. -
Strange Behaviour of FillChar for Non Byte Array Arrays.
Ugochukwu Mmaduekwe replied to Ugochukwu Mmaduekwe's topic in RTL and Delphi Object Pascal
Thanks for the explanation. -
Strange Behaviour of FillChar for Non Byte Array Arrays.
Ugochukwu Mmaduekwe replied to Ugochukwu Mmaduekwe's topic in RTL and Delphi Object Pascal
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. -
Pointers are dangerous
Ugochukwu Mmaduekwe replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
Aeroplanes are dangerous, does that mean we don't take flights? -
Android Compiler Issue in Delphi Tokyo (10.2.3)
Ugochukwu Mmaduekwe replied to Ugochukwu Mmaduekwe's topic in Delphi IDE and APIs
done. https://quality.embarcadero.com/browse/RSP-21842 -
Android Compiler Issue in Delphi Tokyo (10.2.3)
Ugochukwu Mmaduekwe replied to Ugochukwu Mmaduekwe's topic in Delphi IDE and APIs
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. -
Android Compiler Issue in Delphi Tokyo (10.2.3)
Ugochukwu Mmaduekwe replied to Ugochukwu Mmaduekwe's topic in Delphi IDE and APIs
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. -
Android Compiler Issue in Delphi Tokyo (10.2.3)
Ugochukwu Mmaduekwe replied to Ugochukwu Mmaduekwe's topic in Delphi IDE and APIs
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. -
Android Compiler Issue in Delphi Tokyo (10.2.3)
Ugochukwu Mmaduekwe replied to Ugochukwu Mmaduekwe's topic in Delphi IDE and APIs
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)? -
Android Compiler Issue in Delphi Tokyo (10.2.3)
Ugochukwu Mmaduekwe replied to Ugochukwu Mmaduekwe's topic in Delphi IDE and APIs
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. -
Android Compiler Issue in Delphi Tokyo (10.2.3)
Ugochukwu Mmaduekwe replied to Ugochukwu Mmaduekwe's topic in Delphi IDE and APIs
no problems. about the config, it worked fine that way before the upgrade. -
Android Compiler Issue in Delphi Tokyo (10.2.3)
Ugochukwu Mmaduekwe replied to Ugochukwu Mmaduekwe's topic in Delphi IDE and APIs
Thanks for replying, Just did that, same error as above. -
Strange and Random Access Violations
Ugochukwu Mmaduekwe posted a topic in RTL and Delphi Object Pascal
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. -
Strange and Random Access Violations
Ugochukwu Mmaduekwe replied to Ugochukwu Mmaduekwe's topic in RTL and Delphi Object Pascal
Thanks a lot for the explanation. -
Strange and Random Access Violations
Ugochukwu Mmaduekwe replied to Ugochukwu Mmaduekwe's topic in RTL and Delphi Object Pascal
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. -
Strange and Random Access Violations
Ugochukwu Mmaduekwe replied to Ugochukwu Mmaduekwe's topic in RTL and Delphi Object Pascal
Oddly enough, this seems to work. Another function in my arsenal. Thanks. -
Strange and Random Access Violations
Ugochukwu Mmaduekwe replied to Ugochukwu Mmaduekwe's topic in RTL and Delphi Object Pascal
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. -
Strange and Random Access Violations
Ugochukwu Mmaduekwe replied to Ugochukwu Mmaduekwe's topic in RTL and Delphi Object Pascal
unfortunately, this did not work, but thanks either way. -
Strange and Random Access Violations
Ugochukwu Mmaduekwe replied to Ugochukwu Mmaduekwe's topic in RTL and Delphi Object Pascal
too bad that the compiler can't detect the out of range Thanks a lot, this did solve the problem. -
It did work beautifully for me. May be it has been resolved or am just lucky.
-
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.
-
firemonkey Compiler Defines for FireMonkey and VCL in inc files.
Ugochukwu Mmaduekwe posted a topic in General Help
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.