Board index » cppbuilder » Access violation in vcl40.bpl
b.rubingh
![]() CBuilder Developer |
Access violation in vcl40.bpl2008-01-26 04:18:57 AM cppbuilder22 I wrote an application using Borland C++ Builder 4 (with both updates) that has been running for a couple years on an older PC (probably 2 years old) with a 2.0 GHz CPU under windows XP. We've recently installed it on a new PC with a 3.0 GHz processor running windows 2000 (with all the updates). We added a shortcut to the application into the startup folder, and the application *appears* to start fine. However, if we select File->Open in the application, which opens a Borland file dialog box, we get the error: "Access violation at address 40050738 in module 'Vcl40.bpl'. Read of address 00000004." The same error occurs if we click 'About' which should display a form showing version information. In summary, if the process opens any additional form, we get the access violation in vcl40.bpl. We also discovered that we have no problems if the program is started manually with a user click and *not* from the startup folder. Thus, as a work-around, we made a batch file which has a 60 second sleep in it before it launches the application. The program is now running fine. I've tried to duplicate the error on the windows 2000 PC in my office with no success. I'm guessing it is because it is a slower PC (mine is only 450 MHz). Are there any known problems with an application starting too quickly? Is there some problem with my program which is causing the access violation? Any help would be appreciated. Thanks, Bryan |