fjtrooper Posted May 20, 2011 Posted May 20, 2011 Hello!, After being testing a lot the new version, sometimes web mode responds wih an error "Access violation at adddress 0044979D in module..... Read of addess 00000001", and I must restart the application. This app worked perfect with 0.84, so is something with 0.85. I'm trying to reproduce the erro but it's aleatory... Have you got any idea about the problem? THX!! GOOD JOB!!!
Administrators Farshad Mohajeri Posted May 20, 2011 Administrators Posted May 20, 2011 Hello!, After being testing a lot the new version, sometimes web mode responds wih an error "Access violation at adddress 0044979D in module..... Read of addess 00000001", and I must restart the application. This app worked perfect with 0.84, so is something with 0.85. I'm trying to reproduce the erro but it's aleatory... Have you got any idea about the problem? Is it exe or isapi DLL?
Administrators Farshad Mohajeri Posted May 20, 2011 Administrators Posted May 20, 2011 How many simultaneous sessions are opened? Can you send the log file which is created under ..\log folder.
fjtrooper Posted May 20, 2011 Author Posted May 20, 2011 I have tried with both exe and dll, and with one or more sessions, i disabled compression, activate autocoinitialize ...in all of these cases i reveive the error. I will send you log file later. Thx
fjtrooper Posted May 20, 2011 Author Posted May 20, 2011 This is the log file: ValmacenUni: 00011DF8: 21:01:13:EAccessViolation : Access violation at address 0044979D in module 'ValmacenUni.exe'. Read of address 00000001 ValmacenUni: 000007AC: 21:01:13:EAccessViolation : Access violation at address 00703E87 in module 'ValmacenUni.exe'. Read of address 00000000 ValmacenUni: 0000A7C4: 21:01:13:EAccessViolation : Access violation at address 00703E87 in module 'ValmacenUni.exe'. Read of address 00000000 ValmacenUni: 00006E9C: 21:01:13:EAccessViolation : Access violation at address 00703E87 in module 'ValmacenUni.exe'. Read of address 00000000 ValmacenUni: 0000F1EC: 21:01:16:EAccessViolation : Access violation at address 00703E87 in module 'ValmacenUni.exe'. Read of address 00000000 ValmacenUni: 0000A1D4: 21:01:31:EAccessViolation : Access violation at address 00703E87 in module 'ValmacenUni.exe'. Read of address 00000000 ValmacenUni: 0000ECCC: 21:01:31:EAccessViolation : Access violation at address 00703E87 in module 'ValmacenUni.exe'. Read of address 00000000 ValmacenUni: 00014188: 21:01:31:EAccessViolation : Access violation at address 00703E87 in module 'ValmacenUni.exe'. Read of address 00000000 ValmacenUni: 000014AC: 21:01:32:EAccessViolation : Access violation at address 00703E87 in module 'ValmacenUni.exe'. Read of address 00000000 ValmacenUni: 000087B4: 21:01:33:EAccessViolation : Access violation at address 00703E87 in module 'ValmacenUni.exe'. Read of address 00000000 ValmacenUni: 00002E34: 21:01:33:EAccessViolation : Access violation at address 00703E87 in module 'ValmacenUni.exe'. Read of address 00000000 ValmacenUni: 00007A14: 21:01:34:EAccessViolation : Access violation at address 00703E87 in module 'ValmacenUni.exe'. Read of address 00000000 ValmacenUni: 0000BC60: 21:01:37:EAccessViolation : Access violation at address 00703E87 in module 'ValmacenUni.exe'. Read of address 00000000 ValmacenUni: 00009E9C: 21:01:41:EAccessViolation : Access violation at address 00703E87 in module 'ValmacenUni.exe'. Read of address 00000000 ValmacenUni: 0000CB24: 21:01:42:EAccessViolation : Access violation at address 00703E87 in module 'ValmacenUni.exe'. Read of address 00000000 ValmacenUni: 00014B78: 21:01:42:EAccessViolation : Access violation at address 00703E87 in module 'ValmacenUni.exe'. Read of address 00000000
Administrators Farshad Mohajeri Posted May 20, 2011 Administrators Posted May 20, 2011 This is the log file: ValmacenUni: 00014B78: 21:01:42:EAccessViolation : Access violation at address 00703E87 in module 'ValmacenUni.exe'. Read of address 00000000 Seems we need a test case here. Is it possible to provide one?
fjtrooper Posted May 21, 2011 Author Posted May 21, 2011 Is dificult to generate a test case, for forcing the error I open and close forms and "suddenly" I get the error. It happends in different forms and randomly. I will try to find exactly when I happens. Anyway have you got any idea about the issue with this aI tell you?
Administrators Farshad Mohajeri Posted May 21, 2011 Administrators Posted May 21, 2011 Is dificult to generate a test case, for forcing the error I open and close forms and "suddenly" I get the error. It happends in different forms and randomly. I will try to find exactly when I happens. Anyway have you got any idea about the issue with this aI tell you? What visual components are you using on those Forms? If you can't create a test case you can send the complete project.
fjtrooper Posted May 21, 2011 Author Posted May 21, 2011 In those forms I use, uniedit,unilabel,unipagecontrol,unidbgrid,uniimage,unichart, unidbedit, unitabsheet,unilookupcombobox, unifileupload, unibitbtn, unicheckbox. I set AsyncRequest=FALSE in ServerModule and looks like now works well.... Can It help you?
Administrators Farshad Mohajeri Posted May 21, 2011 Administrators Posted May 21, 2011 In those forms I use, uniedit,unilabel,unipagecontrol,unidbgrid,uniimage,unichart, unidbedit, unitabsheet,unilookupcombobox, unifileupload, unibitbtn, unicheckbox. I set AsyncRequest=FALSE in ServerModule and looks like now works well.... Can It help you? Not sure if it can help. I normally use all of these controls in a regular basis with no AV. How big is your app? How many forms? Setting AsyncRequest -> False is only for debugging purpose and this option will be removed in future releases.
fjtrooper Posted May 21, 2011 Author Posted May 21, 2011 my app is more or less big, has about 50 forms and about 60 mysql querys. the same project was perfect with 0.84 free on close in forms is checked, i dont have more than 5 forms opened at time.
Administrators Farshad Mohajeri Posted May 21, 2011 Administrators Posted May 21, 2011 my app is more or less big, has about 50 forms and about 60 mysql querys. the same project was perfect with 0.84 free on close in forms is checked, i dont have more than 5 forms opened at time. OK. There will be more stability tests as framework advances, but to resolve your issue right now I will need your project or at least parts of it. Many things has changed from 0.84->0..85 , so it is difficult to say if this bug is related to new version or other factors.
fjtrooper Posted May 22, 2011 Author Posted May 22, 2011 Perhaps it could be the problem..... If I place a new unidblookupcombobox into a form i get the error message "control unidblookupcontrolbox has no parent windows", but if I copy and paste one that previously exists in the migrated form works well. Anyway I'm trying to prepare part of my project with the access violation error for you
Administrators Farshad Mohajeri Posted May 22, 2011 Administrators Posted May 22, 2011 Perhaps it could be the problem..... If I place a new unidblookupcombobox into a form i get the error message "control unidblookupcontrolbox has no parent windows", but if I copy and paste one that previously exists in the migrated form works well. It is a new problem which is a side effect of fixed bugs in previous build. It will be fixed in next build. Anyway I'm trying to prepare part of my project with the access violation error for you Great
fjtrooper Posted May 23, 2011 Author Posted May 23, 2011 Good morning!! I have located the acces violation error, create a new app, place a button and inside place the following code: begin close; showmessage('Hello world'); end; When you call a "close" the code still executing following code. THX
Administrators Farshad Mohajeri Posted May 23, 2011 Administrators Posted May 23, 2011 Good morning!! I have located the acces violation error, create a new app, place a button and inside place the following code: Thanks for feedback. beginclose; showmessage('Hello world'); end; Yes, that causes an AV because Close method frees the Form (When FreeOnClose=True), and ShowMessage is a TuniForm method. Right form should be like this. begin showmessage('Hello world'); close; end; When you call a "close" the code still executing following code. Yes, there is nothing to do to prevent it. I will think about possible ways for a lazy method to Free the form after all pending events are executed. Logged #1004
fjtrooper Posted May 25, 2011 Author Posted May 25, 2011 Hello!!! I still having access violation in my project, also after checking posible incorrect "close" command position in all of my project. So, after some days of investigation I think I found the issue. Something happends between Unigui and Mydac Mysql components in 0.85. In 0.84 was perfect, but with 0.85 it looks like if mydac disconect from database randomly and I get "access violation" message. I have done the following changes in Tmyconnection for testing and appears to work well: * Options set to true "LocalFailover". * Onconnectionlost event: retrymode:=rmReconnectExecute; * OnError event: fail:=false; I'll maintain you informed! THX!!!
Recommended Posts