- Did you recompile Lazarus itself?
No, should I? How to do it and why?
- Did you add any packages?
No
Good. And No you do not need to rebuild Lazarus, nor should you (at least not yet).
Just making sure you are working with the original pre-compiled Lazarus. So no 3rd party add-ons can be at fault (like maybe some open-gl driver...)
In case 2:
- which version of windows? Vista, 7, XP?
Win XP
Ok, WinXP is popular enough, and plenty of people use Lazarus with it.
My best *guess* at the moment is that something upsets your gfx driver.
Afaik Lazarus only uses calls to the win API. But it must be calling something that apparently few applications are calling. (So you only see those symptoms with Lazarus)
Anyway: The symptoms you describe have nothing to do with the -WG or -WC switches.
And the Lazarus.exe as installed by the installer, also is not compiled with Dos console, so that is definitely not the problem.
A very unlikely possibility: Try to temporarily disable (or at least set to game-mode or similar) your Anti-Virus.
I don't think it will be, but I've been around long enough to see weird things...
More likely a problem with resources. do you have any other app open when you start lazarus? (like browser, email, ...). Just for testing, does it happen on a freshly booted Windows, with no application running, just starting Lazarus?
Or even better, starting an already compiled (compiled before you reboot) "project1.exe" with just an empty form? (running project1 outside Lazarus?)
Otherwise it is likely that Lazarus triggers some feature in Forms, that does not work with your gfx card.
This may be a feature that is not even used by your app. But because of the LCL has support for it, it may always initialize it, even if not needed.
What GFX card to you have?
What driver / Version?
What resolution/color depth?
Your Pc: how much memory?
Your XP: up-to-date, with all service packs etc?