Don't know if this has been asked but perhaps you try to do something not supported by your card?
Like running in 32 bit desktop and trying to open your app in window (older cards do not support that) instead of fullscreen or trying to set to 24 bit colordepth, using to large images (> 256x256 or 512x512) etc
Without a sample that shows the problem, the chance that it is hardware related, because of the technology level of the card, is higher than that it has actually to do anything with your code at all.
Like running in 32 bit desktop and trying to open your app in window (older cards do not support that) instead of fullscreen or trying to set to 24 bit colordepth, using to large images (> 256x256 or 512x512) etc
Without a sample that shows the problem, the chance that it is hardware related, because of the technology level of the card, is higher than that it has actually to do anything with your code at all.