English | 中文 | Русский | Français
2,600 Posts served
8,349 Conversations started
So, if you download the demo-version of this library, install it and search the word "WinHelp" through .h-files… you will see that everywhere this function is supposedly overlapped, DWORD parameter is used instead of DWORD_PTR. And this means that Help system in these classes will behave incorrectly on a 64-bit system.
Once again I would like to discuss the issue of using magic constants in code. We can eternally repeat that one should use sizeof() operator for correct calculation of the size of memory being allocated. But both this knowledge and correct writing of a new code will not help you detect an error already existing in the maze of the old code in large projects.
I'm presently attending the Microsoft PDC 2009 conference and I am today in the Patterns of Parallel Programming workshop. It appeared that the workshop was being recorded and so I sent an e-mail to some of the PDC 2009 organizers and can confirm that the Patterns of Parallel Programming workshop recording will be available to all attendees. Richard [...]
With the Intel(R) Embedded Software Development Tool Suite 2.1.008 update release from early November Intel started supporting the Macraigor Systems* usb2Demon device (check out their website at http://www.macraigor.com/intel/). This low cost JTAG system debug device supporting the Intel(R) Atom(TM) processor z5xx and N2xx platforms for embedded and custom platform operating system and software stack [...]
I often hear in various interpretations the phrase: "The given examples show not the code incorrect from the viewpoint of porting to x64 systems, but the code incorrect in itself". I would like to discuss and theorize a bit on this point in the blog. Please, take this note with a bit of humor.
The error described deserves attention because of its simplicity or even ingenuousness. It has been recommended in all the books for many years not to use magic constants in code. Everyone knows about it and mentions it in coding standards. But in practice magic numbers appear in various code sections again and again.
By default, Viva64 code analyzer (and now PVS-Studio) is oriented on LLP64 data model being intended for operation in Windows environment. Roughly speaking, it means that it searches incorrect shared use of size_t-types and int-types. To test the code on correctness in 64-bit Linux-environment you need to search incorrect shared use of long-types and int-types as well.
In PVS-Studio 3.10, support parsing of complex constructions based on templates will be improved what will allow you to efficiently search errors even in the code of those programs which use complex template libraries such as Loki.
Hi All, If you are going to the event next week in Berlin then let me know about it. Maybe we can meet face to face and if there are enough of us perhaps even a gourp community meeting. This can be a good opportunity to meet the experts. In any case, you are all welcome to [...]
When porting software one of the task a developer faces is to change types' sizes and rules of their alignments. Not so long ago we provided support of the diagnosing rule allowing you to detect data structures which use memory on 64-bit inefficiently in Viva64 analyzer. But there is still some research work to be [...]
You are hereby invited to a gathering on November 17 at 5:30 pm in room C124 of the Oregon Convention Center in Portland. We are having a panel discussion focused on incorporating parallelism into the Computer Science curriculum. Of course, you might need to purchase a day pass to SC09 to attend, if you are [...]
Andy shares video versions of web API presentations he been making to web developers.
Let me share some recent practical experience with memory management issues when developing a multi-threaded application. This can probably be a rather common case (as recent post by Roman Dementiev and its follow up discussion demonstrates), and I’d be happy if my experience were helpful for others. Working on CAD Exchanger I am designing one of [...]
December 3rd at 4PM CST 12/3 | 4PM | 2405 Siebel Center for Computer Science UPCRC Illinois Research Seminar: A Structured, Unified Approach to Multi-Core and Many-Core Computing - with Applications by Michael McCool, Intel & U of Waterloo
Andy lists a set of device capability APIs that were posted at the WC3's Device API and Policy Working Group. These APIs are all about bringing better access to device hardware capabilities to web developers.