Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In 32bit app, Poco::Environment::osArchitecture returns 32bit on 64bit OS #312

Closed
RangelReale opened this issue Oct 21, 2013 · 1 comment
Labels

Comments

@RangelReale
Copy link
Contributor

When calling Poco::Environment::osArchitecture in a 32bit app running on a 64bit OS, it returns IA32.

The GetNativeSystemInfo function should be used instead of GetSystemInfo for this to work, but this API is only available on Windows NT or higher.

@obiltschnig
Copy link
Member

This is somewhat problematic to fix, as there is some code that uses osArchitecture() to find out which version of DLL to load. Returning AMD64 in that case would break that. IMO that behavior is correct, as from the POV of the application, the OS is 32 bit. Probably a new method, nativeOSArchitecture() would be necessary.

@aleks-f aleks-f removed this from the Release 1.5.3 milestone Apr 30, 2014
@aleks-f aleks-f closed this as completed Oct 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants