Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005198 [JEDI VCL] 00 JVCL Components minor always 2010-03-16 00:25 2010-06-17 09:57
Reporter Prozac View Status public  
Assigned To obones
Priority normal Resolution suspended  
Status resolved   Product Version Daily / SVN
Summary 0005198: JvComputerInfoEx and Windows 7
Description Hi!

I have just discovered a very strange behaviour of the JvComputerInfoEx.

Please imagine the following situation:

When I create a new VCL app in Delphi and put JvComputerInfoEx on an empty form and then use the following code:
procedure TForm1.FormCreate(Sender: TObject);
begin
  ShowMessage(JvComputerInfoEx1.OS.ProductName);
end;
then I get the correct detection of Windows 7.

but when I try to do exactly the same and put JvComputerInfoEx on the main form of my existing app Windows 7 is detected as Windows XP with SP 3.

So I decided to make several tests to find out what the reason of this issue is.
It turned out that this is some kind of a conflict between JvComputerInfoEx and GnuGettext.
These are two Gettext procedures which seem to cause this conflict:
TranslateComponent(Self)
and
TP_Ignore(self,'JvComputerInfoEx1')

When I remove the TranslateComponent(Self) procedure the issue is still present.
Only when I remove them both JvComputerInfoEx1 can correctly detect Windows 7.

Of course when I remove this ignore procedure and leave TranslateComponent I got an error from JvComputerInfoEx on start-up saying that the read-only property cannot be changed.

Note, this seems to affect Win 7 only.
I've been using JvComputerInfoEx1 + TranslateComponent + TP_Ignore for a quite long time before Win 7 was released and every OS was always detected correctly.
And it still works fine for other Windows versions.
Additional Information Unfortunately I don't have Win 7 and I'm not able to make test personally.
One of my beta-testers is currently using Windows 7 and he helped me in making those tests.
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0017445)
obones (administrator)
2010-06-07 13:47

Could you please provide the zipped sources of a sample application showing this?
(0017462)
Prozac (reporter)
2010-06-07 15:16

Sure, I will attach the sample today.
(0017508)
Prozac (reporter)
2010-06-16 20:15

Sorry guys but I prepared several samples and unfortunately my beta-tester could not confirm the previous results.
As I mentioned before I don't have Windows 7 myself and I cannot make appropriate tests so I think for the time being the thread should be suspended.
(0017509)
obones (administrator)
2010-06-17 09:57

Thanks for letting us know

- Issue History
Date Modified Username Field Change
2010-03-16 00:25 Prozac New Issue
2010-03-17 00:17 Prozac Issue Monitored: Prozac
2010-06-07 13:47 obones Note Added: 0017445
2010-06-07 13:47 obones Status new => feedback
2010-06-07 15:16 Prozac Note Added: 0017462
2010-06-16 20:15 Prozac Note Added: 0017508
2010-06-17 09:57 obones Note Added: 0017509
2010-06-17 09:57 obones Status feedback => resolved
2010-06-17 09:57 obones Resolution open => suspended
2010-06-17 09:57 obones Assigned To => obones


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker