Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM General » View Thread |
Messages 1 to 3 of 3 total |
Error 10242 4.26b3 |
Sat, Jul 16 2011 10:40 AM | Permanent Link |
Praveen A B | Hi,
I'm facing this error #10242 for some time now. I'm working using the version 4.26b3 with Delphi 2007 R2 on a Windows 7 64bit machine (with lastest windows updates). In the application we have a Master-Detail screen to input data. Double-clicking the Master grid will open a Form to input data to the Master-Detail tables. In the edit form, the header section controls is linked to the Master table and the detail section controls is linked to a different TDBISAMTable component that is linked to the Detail table. When opeing the edit form, the below code is executed. Detail.DisableControls; Detail.Close; ---> Error #10242 occurs the 2nd time code is executed. try MasterFrame.Edit; finally Detail.Open; Detail.EnableControls; end; This code has been working for the past 7 yrs. My issue is that, after closing the edit form and trying to open it the second time, i get the error #10242. This same Master-Detail screen is used for other tables (user can navigates a Treeview and I'm changing the Datasets). So, any table being used will run through the same code. But, I'm receiving the said error ONLY for a particular Detail table. I've also tried commenting all code in edit form that works with the Detail table. So that only the above code of closing and opening of table is executed. Even then I get the error 10242. NOTE: AFAIK, this error occurs in a Windows 7 pc. Any solutions or suggestions are need ASAP. Praveen. |
Mon, Jul 25 2011 2:54 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Praveen,
<< My issue is that, after closing the edit form and trying to open it the second time, i get the error #10242. >> Are you using any 3rd party grids for the detail display ? In general, this type of error can occur when a grid is repainted due to the message queue being processed while DBISAM is busy doing something else. What happens in this case is that the repaint causes the grid control to move the record pointer in the table, thus causing the unlock to fail because the current record isn't the same that was locked. -- Tim Young Elevate Software www.elevatesoft.com |
Tue, Jul 26 2011 12:56 AM | Permanent Link |
Praveen A B | Tim,
I'm sorry for not letting you know, but the issue was resolved. When I was using BDS 2006 and running the my application under Vista, pressing the ALT key would cause some components such as TStaticText or TButton to disappear from screen (some painting issue when trying to display accelerators). I was using a 3rd party fix, viz. VistaAltFixUnit.pas, that replacing the window procedures of Forms in Screen.Forms collection. I modified the code by introducing a destructor where I was replacing the original window proc to the Form (later found out that the form was already freed at this point). This was causing the issue. I removed the unit from my project as the required fix is already present in Delphi 2007. Thanks Praveen. |
This web page was last updated on Friday, April 26, 2024 at 06:09 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |