In SI 3.0.5
%p specifier still don't work
I need write
SiMain.LogDebug(Format('Test %p',[Pointer(myObj)])
and not simple
SiMain.LogDebug('Test %p',[Pointer(myObj)])
Regards
Ing Giuseppe Monteleone
Subscribe to forum
Forum
Still Problem with %p specifier
Page: 1
| Author | Post |
|---|---|
|
#1 Thu Aug 21, 2008 3:37 pm
|
|
|
Member
Registered: Sep 2007
Posts: 19
|
|
|
#2 Thu Aug 21, 2008 6:47 pm
|
|
|
Administrator
Registered: Sep 2007
Posts: 132
|
That's still the same problem with the WideFormat routine. I submitted it long ago as a Delphi bug but I guess it's still in there. I think it will be fixed with the upcoming Delphi 2009 as this version will be completely Unicode based and we can then use the normal Format routine again.
As an alternative to using %p, you could also use the following: SiMain.LogDebug('%.8x', [Cardinal(Pointer(myObj))]); |
Page: 1