I have some troubles with Embarcadero C++ Builder XE3. When I run my program, I have an access violation BEFORE the first instruction in the main...So I can't debug, it's very weird.
I used to have this problem a couple of weeks ago : I was forced to full rebuild the entire projet (even if only a comma was missing...) and the violation didn't occurs anymore. I solved it by ckecking the option "Disable incremental link".
I was very happy, but today, the problem is back, and whatever I do, my application crash before enterring in the main ...
Does anyone have an idea ? It's a big project, so I can't really post an exemple because I don't really know what to show...
Thanks a lot
int main() {}, get that working, and then work from there. I'd also highly recommend using source control (e.g.git) so that you can save a known-good build and quickly identify what might have changed. - M.Mmain, then it's most likely the initialisation of a static/global variable. Be very careful of the "initialisation order fiasco", where the initialisation of one static variable uses another which hasn't yet been initialised. Avoid global variables if you can. - Mike Seymourstd::stringis a class that does its own initialization, right? You don't need to manually initialize it with a blank value, it is already blank to begin with. - Remy Lebeau