-
Content Count
560 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Vandrovnik
-
I would first test the memory of the computer - for example, https://www.system-rescue.org/ It has a memtest included. When memory is OK, then test disk...
-
Using uninitialized object works on Win32, throws AV on Win64
Vandrovnik replied to aehimself's topic in General Help
Ups, yes, it has a bug 🙂 I was reading it as _Value1 := _Value1+1; -
Using uninitialized object works on Win32, throws AV on Win64
Vandrovnik replied to aehimself's topic in General Help
OK, when we change it to this, so there is an unitialized variable: procedure bla(var _Value1: integer; _Value2: integer); begin if _Value2 > 0 then _Value1 := _Value2+1; end; procedure blub; var Value1: integer; begin bla(Value1, 3); writeln(Value1); end; What will be the value of Value1? I would prefer to get a warning in this case. -
Using uninitialized object works on Win32, throws AV on Win64
Vandrovnik replied to aehimself's topic in General Help
From my point of view, it is wrong. For "var" parameters, I expect they are already initialized. For uninitialized variables, that are used as output, there is "out". https://docwiki.embarcadero.com/RADStudio/Sydney/en/Parameters_(Delphi) - Out parameters are frequently used with distributed-object models like COM. In addition, you should use out parameters when you pass an uninitialized variable to a function or procedure. -
Using uninitialized object works on Win32, throws AV on Win64
Vandrovnik replied to aehimself's topic in General Help
It does not have to look inside - it sees (immediatelly), that uninitialized variable is passed as "var" parameter. It means that I should initialize the variable, or change the procedure and use "out" parameter instead of "var". -
Using uninitialized object works on Win32, throws AV on Win64
Vandrovnik replied to aehimself's topic in General Help
It helps to avoid mistakes. Here it produces a warning: ([dcc32 Warning] Test79.dpr(22): W1036 Variable 'a' might not have been initialized) procedure Test2; var a: integer; begin if a=1 then exit; end; I believe it should be consistent and produce a warning in Kryvich's example, too. -
Using uninitialized object works on Win32, throws AV on Win64
Vandrovnik replied to aehimself's topic in General Help
Why? -
Using uninitialized object works on Win32, throws AV on Win64
Vandrovnik replied to aehimself's topic in General Help
Please will you report it and post here the link? I would vote for it. -
Is Graphics32 ready for Delphi 11 yet?
Vandrovnik replied to RCrandall's topic in Delphi Third-Party
Do you get the same error when you specify full path to the .bmp file? -
Is there any "standard protocol" for recovery from a failure in non atomic operations?
Vandrovnik replied to roPopa's topic in Algorithms, Data Structures and Class Design
In my opinion, in these situation you sometimes have to ask the user. Even when data is sent to printer, it does not mean it was really printed OK (out of paper, damaged printout...). -
Hello, When I set per column font properties (bold, font color...) and run it on a monitor with scale > 100 %, this column is drawn too small. I have reported it, if you want to test and vote, please here: https://quality.embarcadero.com/browse/RSP-36849 If there is a workaround, please let me know...
-
Setting Grid.ParentFont to false seems to help.
-
Parnassus Bookmarks for Delphi 11 Alexandria?
Vandrovnik replied to PeterPanettone's topic in Delphi IDE and APIs
Ctrl+Shift+Number to place a bookmark and Ctrl+Number to go to bookmark is a bit faster. I am using AutoHotKey, which allows to remap pressed keys, so I have created a simple script, which remaps Ctrl+Shift+Number and Ctrl+Number to its Ctrl+K/Ctrl+Q counterparts. If you want to try, I have attached this script; it should be put in AutoHotkey.ahk. This works for "IDE classic" key mapping in Delphi. Bookmarks.txt -
IDE being destroyed by new versions
Vandrovnik replied to Celso Henrique's topic in Delphi IDE and APIs
Should this field even find tPanel? Because there is another field where I can type component name: -
Hmm, you are right, in Delphi 7 probably shortstring was that string type with 255 chars limit.
-
It depends - Delphi 7 did not support Unicode, while newest version do; all char and string variables may need attention. SizeOf(char) = 2 now, strings are not limited to 255 chars...
-
IDE being destroyed by new versions
Vandrovnik replied to Celso Henrique's topic in Delphi IDE and APIs
It makes no sense to complain here. Found bugs should be reported on https://quality.embarcadero.com -
Many = 3 in this case, I have no problem with it. When customer has a new computer, he can just start the application from network share, there is no need to install it. It is also much easier to update FB client, when you can replace its files in one place and do not have to make changes on all computers.
-
I would also vote for DirectWrite. When I switched to Direct2D and DirectWrite, I have used https://github.com/CMCHTPC/DelphiDX12 instead of Emba's units, which were buggy and did not contain "new" things (like printing support for Direct2D).
-
As far as I know, Firebird does not support PIVOT. If you really need a column for each WHNO, you can first use a query to get distinct WHNO values and then use these values to create second query, which would compute the values.
-
How to deploy a large Android app (150+ MB) using "Play Feature Delivery"?
Vandrovnik replied to Hans♫'s topic in Cross-platform
Can you download these audio samples after installation from your server(s)? The same way as offline maps are downloaded by apps... And probably stored to SD cards instead of internal storage (user is asked where to store them). -
Calendar convertion, from UT or JD to Hebrew
Vandrovnik replied to Guba's topic in Algorithms, Data Structures and Class Design
There is a link to his homepage and there he has https://stevemorse.org/jcal/jcal.html If you display source code of the page, there are javascript routines, may be it is enough to rewrite them to Delphi? -
Calendar convertion, from UT or JD to Hebrew
Vandrovnik replied to Guba's topic in Algorithms, Data Structures and Class Design
What about https://stevemorse.org/hebrewcalendar/hebrewcalendar.htm ? -
Firebird - Sum of total fields from different tables ?
Vandrovnik replied to Henry Olive's topic in Databases
SELECT (SELECT SUM(a.Total) FROM Table1 a) + (SELECT SUM(a.Total) FROM Table2 a) + (SELECT SUM(a.Total) FROM Table3 a) as GrandTotal FROM RDB$Database -
They can create "Bookmarks HDPI" without the compatibility with older versions, if it is easier for them...