Lock Problem in GUI .net

anandknr

Member
Hi All,
I have a strange problem in GUI .net in 10.2b.
I am creating some db table records from winFrom and i have a background process (running in CHUI server ) which constantly looking for new records.

The background process needs to process the records created by GUI and hence needed to put in exclusive look. But the problem is any record created from GUI .net from is locked by itself when trying to update from background process.

As a work around i called a .p program from.cls and put the same piece of code there and strangely its got worked,ie made available for background process even if GUI from is running.

so what could be the reason for that lock from GUI form.? Is it a bug in OE or from my side ?
 
I am not familiar with the .NET GUI and its "widgets" in any way. I think the same usual suspect as always comes into play: Incorrect buffer and transaction scoping. Because of the aforementioned reason I don't know how you can control buffer and transaction scope with the .NET GUI but I am quite sure that you can and for some reasons you did not.

Nevertheless you should make yourself familiar with the concepts of buffer and transaction scope anyway in order to write software that is designed for concurrency.

Heavy Regards, RealHeavyDude.
 
Step one should be COMPILE LIST on the GUI program to look at your transaction scoping.

Step two should be to think about layer separation so that your UI isn't touching the database.
 
Back
Top