Re: Datagrid error...
Whoops! Not true. Just disable the datagrid group. Bob S > On Dec 18, 2018, at 16:34 , Bob Sneidar via use-livecode > wrote: > > There is a dgProp to disable interaction with the datagrid. > > Bob S > > >> On Dec 18, 2018, at 14:11 , Trevor DeVore via use-livecode >> wrote: >> >> On Tue, Dec 18, 2018 at 3:11 PM Paul Dupuis via use-livecode < >> use-livecode@lists.runrev.com> wrote: >> >>> >>> Does the idea to close the report display window if and when the >>> datagrid is being updated make sense as a precaution? We can always lock >>> the screen, close the window, update the datagrid contents, reopen the >>> window and unlock the screen to minimize visible changes to the user. >>> >> >> I don't know that you need to close down the window. What about setting the >> dgData and dgColumns to empty so that the user can't interact with it while >> updating? Or overlay a semi-transparent graphic over the top that eats >> mouse events? Since you are upgrading to 9.0.2 you could also use the >> Spinner widget placed in the middle of the Data Grid to show that you are >> crunching some data. >> >> -- >> Trevor DeVore > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid error...
There is a dgProp to disable interaction with the datagrid. Bob S > On Dec 18, 2018, at 14:11 , Trevor DeVore via use-livecode > wrote: > > On Tue, Dec 18, 2018 at 3:11 PM Paul Dupuis via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> >> Does the idea to close the report display window if and when the >> datagrid is being updated make sense as a precaution? We can always lock >> the screen, close the window, update the datagrid contents, reopen the >> window and unlock the screen to minimize visible changes to the user. >> > > I don't know that you need to close down the window. What about setting the > dgData and dgColumns to empty so that the user can't interact with it while > updating? Or overlay a semi-transparent graphic over the top that eats > mouse events? Since you are upgrading to 9.0.2 you could also use the > Spinner widget placed in the middle of the Data Grid to show that you are > crunching some data. > > -- > Trevor DeVore ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid error...
On 12/18/2018 5:11 PM, Trevor DeVore via use-livecode wrote: On Tue, Dec 18, 2018 at 3:11 PM Paul Dupuis via use-livecode < use-livecode@lists.runrev.com> wrote: Does the idea to close the report display window if and when the datagrid is being updated make sense as a precaution? We can always lock the screen, close the window, update the datagrid contents, reopen the window and unlock the screen to minimize visible changes to the user. I don't know that you need to close down the window. What about setting the dgData and dgColumns to empty so that the user can't interact with it while updating? Or overlay a semi-transparent graphic over the top that eats mouse events? Since you are upgrading to 9.0.2 you could also use the Spinner widget placed in the middle of the Data Grid to show that you are crunching some data. Great suggestions. Thank you! ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid error...
On Tue, Dec 18, 2018 at 3:11 PM Paul Dupuis via use-livecode < use-livecode@lists.runrev.com> wrote: > > Does the idea to close the report display window if and when the > datagrid is being updated make sense as a precaution? We can always lock > the screen, close the window, update the datagrid contents, reopen the > window and unlock the screen to minimize visible changes to the user. > I don't know that you need to close down the window. What about setting the dgData and dgColumns to empty so that the user can't interact with it while updating? Or overlay a semi-transparent graphic over the top that eats mouse events? Since you are upgrading to 9.0.2 you could also use the Spinner widget placed in the middle of the Data Grid to show that you are crunching some data. -- Trevor DeVore CTO - ScreenSteps www.screensteps.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid error...
On 12/18/2018 11:16 AM, Trevor DeVore via use-livecode wrote: Now, all of this leads me to the following questions – 1) Are you modifying the columns displayed in this Data Grid through code? 2) If so, is it possible that you are updating the columns in the Data Grid while the user is interacting with it? Wow. Seriously Trevor. Thank you! It is possible the user could be interacting with the datagrid while a script is trying to update it. A report setting window allows the user to configure many many options for a "report". They then click Display and the report appears in another window in a datagrid (if 'Table' view is selected). They could change settings, click "Display" again and start scrolling or otherwise interacting with the previously displayed results when the script . Some reports are instantaneous, but some, depending on how much data the user has can take seconds to even many tens of minutes for our biggest data customers. So, I gather it may be better to have the Report settings "Display" script close the report display window while updating it (if it is open) and then reopen it once the results are populated. We have seen another behavior in our app where a user can start an operation (a script) that takes a while to run, switch to another 3rd party applications, and then back to a different Window in our App and we can get an execution error with the "object not found" because the previous script - still executing - was referencing objects in its window without using explicit object references and now the default window has changed. I thought we have weeded any such relative object references out, but now I am wondering it one or more may still be present in our reporting code. Does the idea to close the report display window if and when the datagrid is being updated make sense as a precaution? We can always lock the screen, close the window, update the datagrid contents, reopen the window and unlock the screen to minimize visible changes to the user. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid error...
ok thanks. Op 18-12-2018 om 20:33 schreef Trevor DeVore via use-livecode: On Tue, Dec 18, 2018 at 12:16 PM JJS via use-livecode < use-livecode@lists.runrev.com> wrote: quote" A `_ScrollListV` request sent in time might be able to create such a scenario." end quote Trevore is what you say not the same as what is written here: https://forums.livecode.com/viewtopic.php?f=104&p=172021&sid=73fc5b60aaa154dfddc7c723b563a370#p172019 although you figured it out technically. Not necessarily. `_ScrollListV` is used regardless of the setting so it can be called from a number of different code paths. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid error...
On Tue, Dec 18, 2018 at 12:16 PM JJS via use-livecode < use-livecode@lists.runrev.com> wrote: > quote" > > A `_ScrollListV` request sent in time might be > able to create such a scenario." end quote > > Trevore is what you say not the same as what is written here: > > https://forums.livecode.com/viewtopic.php?f=104&p=172021&sid=73fc5b60aaa154dfddc7c723b563a370#p172019 > > although you figured it out technically. > Not necessarily. `_ScrollListV` is used regardless of the setting so it can be called from a number of different code paths. -- Trevor DeVore CTO - ScreenSteps www.screensteps.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid error...
quote" A `_ScrollListV` request sent in time might be able to create such a scenario." end quote Trevore is what you say not the same as what is written here: https://forums.livecode.com/viewtopic.php?f=104&p=172021&sid=73fc5b60aaa154dfddc7c723b563a370#p172019 although you figured it out technically. Op 18-12-2018 om 17:16 schreef Trevor DeVore via use-livecode: A `_ScrollListV` request sent in time might be able to create such a scenario. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid error...
On Tue, Dec 18, 2018 at 9:31 AM Paul Dupuis via use-livecode < use-livecode@lists.runrev.com> wrote: > > built under LiveCode 6.7.11. We are readying a new version built under > LC9.0.1, but without a recipe for the error, I have no way of testing > whether the new engine (and newer Datagrid) fixes this issue. I was > hoping the executionCotexts might provide some insight as to a suggested > recipe to reproduce the error. > I just checked the Data Grid script in 6.7.11 by executing the following code in the Message Box: ``` edit script of button id 1005 of stack "revDataGridLibrary" ``` If we piece together what we know from the error we get the following: 1) `_DrawListWithProperties` is called 2) `_table.DrawWithProperties` is called 3) `_table.DrawControlsInRealTime` is called 4) `_table.DrawColumns` is called 5) An object that doesn't exist is referenced and triggers the "can't find object". The line that triggers the "can't find object" error is line 3919. Line 3919 is part of the `_table.DrawColumns` private command which draws columns in a table. It reads as follows: ``` put the dgIndex of theControl into theCurrentIndex ``` This tells us that `theControl` doesn't exist. `theControl` comes from line 3910: ``` put line theControlIndex of theMasterControlList[theColumn] into theControl ``` `theMasterControlList` is a list of existing controls that can be used to render the data for a particular row and column in the table. What is interesting here is that `_DrawListWithProperties` is the entry point. `_DrawListWithProperties` is a private command and the error report isn't telling us who is calling `_DrawListWithProperties`. That complicates things a bit since we don't know if it is being called when you set the `dgData`, when the user is scrolling, when the user clicks on a row, etc. One potentially important piece of information is that `_DrawListWithProperties` can be called by `_ScrollListV`, Because scrolling can happen very quickly `_ScrollListV` will throttle itself meaning that if it is currently running when it is called (e.g. the user is scrolling quickly and `_ScrollListV` hasn't finished rendering the last scroll request) then it will call itself in time so that the new scroll request can be processed after the current scroll request finishes rendering. If `_DrawListWithProperties` was called from a scrolling action then the theory I propose below might be possible. Given what we know my best guess is that the columns property is being set and in the process a column is being removed. At the same time, `_DrawListWithProperties` is being triggered which is trying to draw the column that was removed. A `_ScrollListV` request sent in time might be able to create such a scenario. Now, all of this leads me to the following questions – 1) Are you modifying the columns displayed in this Data Grid through code? 2) If so, is it possible that you are updating the columns in the Data Grid while the user is interacting with it? -- Trevor DeVore CTO - ScreenSteps www.screensteps.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid error...
On 12/18/2018 10:19 AM, Trevor DeVore via use-livecode wrote: On Mon, Dec 17, 2018 at 1:47 PM Paul Dupuis via use-livecode < use-livecode@lists.runrev.com> wrote: I have a a few customers reporting the error below, and yet, none of them have provided information on what exactly they were doing that resulted in the error below. I have no recipe to reproduce it. These are just busy researchers who just don't have the time nor technical know-how to spend any time troubleshooting. I am hoping someone on this list with detailed knowledge of the inner working of the Datagrid might be able to suggest what might be causing the error based on the ExcutionContexts (below) Which version of LiveCode was the app built with? The error contains line numbers and it is important to look at the exact version of the Data Grid library you are using in order to determine the code that triggered the error. Hi Trevor, Thanks for chiming in. I am sorry to say that this is a very old app, built under LiveCode 6.7.11. We are readying a new version built under LC9.0.1, but without a recipe for the error, I have no way of testing whether the new engine (and newer Datagrid) fixes this issue. I was hoping the executionCotexts might provide some insight as to a suggested recipe to reproduce the error. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid error...
On Mon, Dec 17, 2018 at 1:47 PM Paul Dupuis via use-livecode < use-livecode@lists.runrev.com> wrote: > I have a a few customers reporting the error below, and yet, none of > them have provided information on what exactly they were doing that > resulted in the error below. I have no recipe to reproduce it. These are > just busy researchers who just don't have the time nor technical > know-how to spend any time troubleshooting. I am hoping someone on this > list with detailed knowledge of the inner working of the Datagrid might > be able to suggest what might be causing the error based on the > ExcutionContexts (below) Which version of LiveCode was the app built with? The error contains line numbers and it is important to look at the exact version of the Data Grid library you are using in order to determine the code that triggered the error. -- Trevor DeVore CTO - ScreenSteps www.screensteps.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid error...
> I really do wish someone would deliver a really reliable table object I'm always game as you know, and would enjoy such a project. Reliable is not a problem - simply proper methods to ensure proper results. :) But when it comes to efficiency, LiveCode itself is lately a getting bit portly and sluggish, surely due for a little optimization now. With custom controls, no matter which code route is taken, it's encouraging to have a lean mean foundation to build upon! Best wishes, Curry K. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid error...
On 12/18/2018 8:03 AM, Curry Kenworthy via use-livecode wrote: A lot of pain can be avoided, and more responsive interfaces achieved, by using data grids ONLY when necessary. Sometimes they are necessary...but usually not. True. In this case, I need a table view of a bunch of data. The columns must be sortable and resizable (a datagrid does this for me) and the textual content of the cells must wrap (so that rules out a single field object set as a table field) and at least 1 column may contain text (wrapped in the columns field) or an image or even html text with embedded images. Thus the only existing LiveCode widget or object that does this is a Datagrid. I really do wish someone would deliver a really reliable table object for LiveCode that supported an htmlText property for each cell and each cell could be wrapped or not that also handled sorting and resizing, including auto-sizing column widths and row heights to fit the content! ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid error...
A lot of pain can be avoided, and more responsive interfaces achieved, by using data grids ONLY when necessary. Sometimes they are necessary...but usually not. Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid error...
This looks a bit like the error i had, It's written here and what caused it. https://forums.livecode.com/viewtopic.php?f=104&p=172021#p172021 With me it was setting 'Show vScroll" to Auto. I also update the Bug Quality report but no response yet, the link to the bugreport is also in that thread. Please try, what i tried and let me/others know too if it helped. Maybe we need to create a new bug report Op 17-12-2018 om 20:47 schreef Paul Dupuis via use-livecode: I have a a few customers reporting the error below, and yet, none of them have provided information on what exactly they were doing that resulted in the error below. I have no recipe to reproduce it. These are just busy researchers who just don't have the time nor technical know-how to spend any time troubleshooting. I am hoping someone on this list with detailed knowledge of the inner working of the Datagrid might be able to suggest what might be causing the error based on the ExcutionContexts (below) Chunk: error in object expression: (Line 3919, column 33) Chunk: can't find object: (Line 3919, column 33) Object: does not have this property: (Line 3919, column 21) put: error in expression: (Line 3919, column 1) repeat: error in statement: (Line 3909, column 1) repeat: error in statement: (Line 3899, column 1) if-then: error in statement: (Line 3874, column 1) Handler: error in statement: _table.DrawColumns (Line 3874, column 1) Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" Object ID: button id 1005 of group id 1004 of card id 1002 of stack "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH 4.0.1/HyperRESEARCH.exe" - if-then: error in statement: (Line 3821, column 1) if-then: error in statement: (Line 3820, column 1) Handler: error in statement: _table.DrawControlsInRealTime (Line 3820, column 1) Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" Object ID: button id 1005 of group id 1004 of card id 1002 of stack "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH 4.0.1/HyperRESEARCH.exe" - Handler: error in statement: _table.DrawWithProperties (Line 3500, column 1) Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" Object ID: button id 1005 of group id 1004 of card id 1002 of stack "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH 4.0.1/HyperRESEARCH.exe" - switch: error in statement: (Line 2319, column 1) Handler: error in statement: _DrawListWithProperties (Line 2319, column 1) Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" Object ID: button id 1005 of group id 1004 of card id 1002 of stack "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH 4.0.1/HyperRESEARCH.exe" ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Datagrid error...
I have a a few customers reporting the error below, and yet, none of them have provided information on what exactly they were doing that resulted in the error below. I have no recipe to reproduce it. These are just busy researchers who just don't have the time nor technical know-how to spend any time troubleshooting. I am hoping someone on this list with detailed knowledge of the inner working of the Datagrid might be able to suggest what might be causing the error based on the ExcutionContexts (below) Chunk: error in object expression: (Line 3919, column 33) Chunk: can't find object: (Line 3919, column 33) Object: does not have this property: (Line 3919, column 21) put: error in expression: (Line 3919, column 1) repeat: error in statement: (Line 3909, column 1) repeat: error in statement: (Line 3899, column 1) if-then: error in statement: (Line 3874, column 1) Handler: error in statement: _table.DrawColumns (Line 3874, column 1) Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" Object ID: button id 1005 of group id 1004 of card id 1002 of stack "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH 4.0.1/HyperRESEARCH.exe" - if-then: error in statement: (Line 3821, column 1) if-then: error in statement: (Line 3820, column 1) Handler: error in statement: _table.DrawControlsInRealTime (Line 3820, column 1) Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" Object ID: button id 1005 of group id 1004 of card id 1002 of stack "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH 4.0.1/HyperRESEARCH.exe" - Handler: error in statement: _table.DrawWithProperties (Line 3500, column 1) Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" Object ID: button id 1005 of group id 1004 of card id 1002 of stack "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH 4.0.1/HyperRESEARCH.exe" - switch: error in statement: (Line 2319, column 1) Handler: error in statement: _DrawListWithProperties (Line 2319, column 1) Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" Object ID: button id 1005 of group id 1004 of card id 1002 of stack "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH 4.0.1/HyperRESEARCH.exe" ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Need help with a Datagrid error...
Hi Paul Yeah, thats probably the only way to track it down is to know what data is in the column. however. what happens when you paste an invalid path into an image's file path boxdoes it return an error or crash. or does it just give you a blank image? If I recall correctly there used to be a bug that had to do with invalid file names causing things to go crazy but it may not have been the same version. So it could be a combo of 2 things. Good luck Paul. Thanks On Tue, Jun 12, 2018 at 1:24 PM, Paul Dupuis via use-livecode < use-livecode@lists.runrev.com> wrote: > I should have noted the LC version. This is a standalone built under > LiveCode 6.7.11 > > If I could get one of the customers to respond with their document(s) > and settings that caused the error, it would probably be simple to track > down. > > My current theory is that rows can display either htmlText or an image > in a particular column depending upon the users data. I am speculating > that an image may not be being resolved correctly. This may just have to > wait until a customer cares enough to help us troubleshoot it by letting > us look at their data. > > It was a wild shot that someone else may have recognized this. Thanks > for replying. > > > On 6/12/2018 12:11 PM, Tom Glod via use-livecode wrote: > > so i work alot with datagrids and i've never seen such an array of > errors. > > Can you tell us what version of LC the standalone was built with? > > > > one thing that comes to mind is something i vaguely remember happening a > > few years ago. I was updating the datagrid while one of the handlers in > > the library was still running (FullInData). an error was causing the > > handler to not complete and when an update was triggered it went haywire. > > > > these are hard to diagnose in standalones especially when its something > > that depends on the error being specific to the content of the column. > > > > this is real ugly i hope you get to the bottom of it. > > > > > > > > On Tue, Jun 12, 2018 at 7:36 AM, Paul Dupuis via use-livecode < > > use-livecode@lists.runrev.com> wrote: > > > >> I have a rarely occurring Datagrid error that a couple customers have > >> reported. Unfortunately, none of the customers have been able to tell us > >> what they were doing when the error occured or be able to reproduce it. > >> I hope someone on this list may have seen this before and know what is > >> causing it. > >> > >> The error occurs when a window/stack with a datagrid is opened . The > >> datagrid on the window may have already had data from previous openings > >> and closings. An execution error occurs in the standalone before the new > >> data is populated to the datagrid. > >> > >> Anyone seen anything like this? > >> > >> Chunk: error in object expression: (Line 3919, column 33) > >> Chunk: can't find object: (Line 3919, column 33) > >> Object: does not have this property: (Line 3919, column 21) > >> put: error in expression: (Line 3919, column 1) > >> repeat: error in statement: (Line 3909, column 1) > >> repeat: error in statement: (Line 3899, column 1) > >> if-then: error in statement: (Line 3874, column 1) > >> Handler: error in statement: _table.DrawColumns (Line 3874, column 1) > >> Object: button "Data Grid" of group "Behaviors" of card "card id 1002" > of > >> stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" > >> Object ID: button id 1005 of group id 1004 of card id 1002 of stack > >> "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH > >> 4.0.1/HyperRESEARCH.exe" > >> - > >> > >> if-then: error in statement: (Line 3821, column 1) > >> if-then: error in statement: (Line 3820, column 1) > >> Handler: error in statement: _table.DrawControlsInRealTime (Line 3820, > >> column 1) > >> Object: button "Data Grid" of group "Behaviors" of card "card id 1002" > of > >> stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" > >> Object ID: button id 1005 of group id 1004 of card id 1002 of stack > >> "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH > >> 4.0.1/HyperRESEARCH.exe" > >> - > >> > >> Handler: error in statement: _table.DrawWithProperties (Line 3500, > column > >> 1) > >> Object: button "Data Grid" of group "Behavior
Re: Need help with a Datagrid error...
I should have noted the LC version. This is a standalone built under LiveCode 6.7.11 If I could get one of the customers to respond with their document(s) and settings that caused the error, it would probably be simple to track down. My current theory is that rows can display either htmlText or an image in a particular column depending upon the users data. I am speculating that an image may not be being resolved correctly. This may just have to wait until a customer cares enough to help us troubleshoot it by letting us look at their data. It was a wild shot that someone else may have recognized this. Thanks for replying. On 6/12/2018 12:11 PM, Tom Glod via use-livecode wrote: > so i work alot with datagrids and i've never seen such an array of errors. > Can you tell us what version of LC the standalone was built with? > > one thing that comes to mind is something i vaguely remember happening a > few years ago. I was updating the datagrid while one of the handlers in > the library was still running (FullInData). an error was causing the > handler to not complete and when an update was triggered it went haywire. > > these are hard to diagnose in standalones especially when its something > that depends on the error being specific to the content of the column. > > this is real ugly i hope you get to the bottom of it. > > > > On Tue, Jun 12, 2018 at 7:36 AM, Paul Dupuis via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> I have a rarely occurring Datagrid error that a couple customers have >> reported. Unfortunately, none of the customers have been able to tell us >> what they were doing when the error occured or be able to reproduce it. >> I hope someone on this list may have seen this before and know what is >> causing it. >> >> The error occurs when a window/stack with a datagrid is opened . The >> datagrid on the window may have already had data from previous openings >> and closings. An execution error occurs in the standalone before the new >> data is populated to the datagrid. >> >> Anyone seen anything like this? >> >> Chunk: error in object expression: (Line 3919, column 33) >> Chunk: can't find object: (Line 3919, column 33) >> Object: does not have this property: (Line 3919, column 21) >> put: error in expression: (Line 3919, column 1) >> repeat: error in statement: (Line 3909, column 1) >> repeat: error in statement: (Line 3899, column 1) >> if-then: error in statement: (Line 3874, column 1) >> Handler: error in statement: _table.DrawColumns (Line 3874, column 1) >> Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of >> stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" >> Object ID: button id 1005 of group id 1004 of card id 1002 of stack >> "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH >> 4.0.1/HyperRESEARCH.exe" >> - >> >> if-then: error in statement: (Line 3821, column 1) >> if-then: error in statement: (Line 3820, column 1) >> Handler: error in statement: _table.DrawControlsInRealTime (Line 3820, >> column 1) >> Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of >> stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" >> Object ID: button id 1005 of group id 1004 of card id 1002 of stack >> "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH >> 4.0.1/HyperRESEARCH.exe" >> - >> >> Handler: error in statement: _table.DrawWithProperties (Line 3500, column >> 1) >> Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of >> stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" >> Object ID: button id 1005 of group id 1004 of card id 1002 of stack >> "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH >> 4.0.1/HyperRESEARCH.exe" >> - >> >> switch: error in statement: (Line 2319, column 1) >> Handler: error in statement: _DrawListWithProperties (Line 2319, column 1) >> Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of >> stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" >> Object ID: button id 1005 of group id 1004 of card id 1002 of stack >> "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH >> 4.0.1/HyperRESEARCH.exe" >> - >> >> if-then: error in statement: (Line 7540, column 1) >> >> >>
Re: Need help with a Datagrid error...
so i work alot with datagrids and i've never seen such an array of errors. Can you tell us what version of LC the standalone was built with? one thing that comes to mind is something i vaguely remember happening a few years ago. I was updating the datagrid while one of the handlers in the library was still running (FullInData). an error was causing the handler to not complete and when an update was triggered it went haywire. these are hard to diagnose in standalones especially when its something that depends on the error being specific to the content of the column. this is real ugly i hope you get to the bottom of it. On Tue, Jun 12, 2018 at 7:36 AM, Paul Dupuis via use-livecode < use-livecode@lists.runrev.com> wrote: > I have a rarely occurring Datagrid error that a couple customers have > reported. Unfortunately, none of the customers have been able to tell us > what they were doing when the error occured or be able to reproduce it. > I hope someone on this list may have seen this before and know what is > causing it. > > The error occurs when a window/stack with a datagrid is opened . The > datagrid on the window may have already had data from previous openings > and closings. An execution error occurs in the standalone before the new > data is populated to the datagrid. > > Anyone seen anything like this? > > Chunk: error in object expression: (Line 3919, column 33) > Chunk: can't find object: (Line 3919, column 33) > Object: does not have this property: (Line 3919, column 21) > put: error in expression: (Line 3919, column 1) > repeat: error in statement: (Line 3909, column 1) > repeat: error in statement: (Line 3899, column 1) > if-then: error in statement: (Line 3874, column 1) > Handler: error in statement: _table.DrawColumns (Line 3874, column 1) > Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of > stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" > Object ID: button id 1005 of group id 1004 of card id 1002 of stack > "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH > 4.0.1/HyperRESEARCH.exe" > - > > if-then: error in statement: (Line 3821, column 1) > if-then: error in statement: (Line 3820, column 1) > Handler: error in statement: _table.DrawControlsInRealTime (Line 3820, > column 1) > Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of > stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" > Object ID: button id 1005 of group id 1004 of card id 1002 of stack > "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH > 4.0.1/HyperRESEARCH.exe" > - > > Handler: error in statement: _table.DrawWithProperties (Line 3500, column > 1) > Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of > stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" > Object ID: button id 1005 of group id 1004 of card id 1002 of stack > "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH > 4.0.1/HyperRESEARCH.exe" > - > > switch: error in statement: (Line 2319, column 1) > Handler: error in statement: _DrawListWithProperties (Line 2319, column 1) > Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of > stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" > Object ID: button id 1005 of group id 1004 of card id 1002 of stack > "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH > 4.0.1/HyperRESEARCH.exe" > - > > if-then: error in statement: (Line 7540, column 1) > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Need help with a Datagrid error...
I have a rarely occurring Datagrid error that a couple customers have reported. Unfortunately, none of the customers have been able to tell us what they were doing when the error occured or be able to reproduce it. I hope someone on this list may have seen this before and know what is causing it. The error occurs when a window/stack with a datagrid is opened . The datagrid on the window may have already had data from previous openings and closings. An execution error occurs in the standalone before the new data is populated to the datagrid. Anyone seen anything like this? Chunk: error in object expression: (Line 3919, column 33) Chunk: can't find object: (Line 3919, column 33) Object: does not have this property: (Line 3919, column 21) put: error in expression: (Line 3919, column 1) repeat: error in statement: (Line 3909, column 1) repeat: error in statement: (Line 3899, column 1) if-then: error in statement: (Line 3874, column 1) Handler: error in statement: _table.DrawColumns (Line 3874, column 1) Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" Object ID: button id 1005 of group id 1004 of card id 1002 of stack "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH 4.0.1/HyperRESEARCH.exe" - if-then: error in statement: (Line 3821, column 1) if-then: error in statement: (Line 3820, column 1) Handler: error in statement: _table.DrawControlsInRealTime (Line 3820, column 1) Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" Object ID: button id 1005 of group id 1004 of card id 1002 of stack "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH 4.0.1/HyperRESEARCH.exe" - Handler: error in statement: _table.DrawWithProperties (Line 3500, column 1) Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" Object ID: button id 1005 of group id 1004 of card id 1002 of stack "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH 4.0.1/HyperRESEARCH.exe" - switch: error in statement: (Line 2319, column 1) Handler: error in statement: _DrawListWithProperties (Line 2319, column 1) Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack "revDataGridLibrary" of stack "HyperRESEARCH.exe" Object ID: button id 1005 of group id 1004 of card id 1002 of stack "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH 4.0.1/HyperRESEARCH.exe" - if-then: error in statement: (Line 7540, column 1) ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: DataGrid error
On Sat, Jan 6, 2018 at 10:02 AM Andrew Bell via use-livecode < use-livecode@lists.runrev.com> wrote: > A published mobile app built using LC8.1.8 that suddenly stopped > working. It retrieves info from a database and populates a few > datagrids. I was able to use the Remote Debugger to pinpoint where the > error is occurring (worth every penny of the upgraded license) and > found this: > > 89,79,11 > 77,79,11 > 456,79,11 > 465,79,11 > 253,79,11 > 241,35,1,FillInData Looks like the FillInData handler in your row template script has an error in it. Maybe some data isn’t what the script expects? Check line 79 and see if there might be an error there. -- Trevor DeVore ScreenSteps > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
DataGrid error
A published mobile app built using LC8.1.8 that suddenly stopped working. It retrieves info from a database and populates a few datagrids. I was able to use the Remote Debugger to pinpoint where the error is occurring (worth every penny of the upgraded license) and found this: 89,79,11 77,79,11 456,79,11 465,79,11 253,79,11 241,35,1,FillInData 353,0,0,button id 1024 of card id 1020 of stack "Data Grid Templates 1463581868125" of stack "/Users/andrew/Library/Developer/CoreSimulator/Devices/A6595259-264B-47AD-A442-E3751D5B5E57/data/Containers/Bundle/Application/2AA2C84D-3833-4BE5-AC0D-7E6CCFB14081/Indiana On Tap.app/Indiana On Tap" 675,3169,1,FillInData 253,3169,1 253,3169,1 490,3169,1 253,3169,1 241,3099,1,_list.DrawControlsInRealTime 353,0,0,stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" 573,2895,1,_list.DrawControlsInRealTime 253,2895,1 241,2892,1,_list.DrawWithProperties 353,0,0,stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" 573,2584,1,_list.DrawWithProperties 587,2584,1 241,2578,1,_DrawListWithProperties 353,0,0,stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" 573,8201,1,_DrawListWithProperties 253,8201,1 I tried to insert some breakpoints (virtual and hard coded) before the script that set the dgText so I could figure out what the bad data was but they weren't getting triggered. Can anyone shed some light onto this error while I backtrack the changes made recently since this worked (yesterday). --Andrew Bell ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid Error
On Mon, Oct 3, 2011 at 11:46 AM, Marty Knapp wrote: > Thanks Trevor - I'll take a look at that. The curious thing is that it > works fine 98% of the time. The check that occurs is whether or not the value passed to the handler is an integer. You might want to check that line 6192 is the same in your version of the data grid library though. I checked the version in LiveCode 4.6.4. edit script of btn "Data Grid" of stack "revDataGridLibrary" -- Trevor DeVore Blue Mango Learning Systems LiveCode Resources for Developers: http://livecode.bluemangolearning.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid Error
Thanks Trevor - I'll take a look at that. The curious thing is that it works fine 98% of the time. Marty On Fri, Sep 30, 2011 at 1:08 PM, Marty Knapp wrote: It did occur every time, though I only tested on one Mac. I ended up rebuilding the stack which eliminated this problem, but a couple of times I've gotten another error when opening the datagrid stack (the error was not consistent): Line No: Hint: 238' 354,6192,0,_StoreColWidth On closeStack I do save the column widths to a custom property (of a writeable stack) and then on preOpenStack I set the column widths with these values. Could this be interfering with something? Looking at line 6192 in the data grid library we find this line: ThrowError kErrInvalidInteger, "invalid column width value '"& pValue& "'" It looks like you are passing in a bad value for one of the column widths. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid Error
On Fri, Sep 30, 2011 at 1:08 PM, Marty Knapp wrote: > > It did occur every time, though I only tested on one Mac. I ended up > rebuilding the stack which eliminated this problem, but a couple of times > I've gotten another error when opening the datagrid stack (the error was not > consistent): > > Line No: > Hint: 238' > 354,6192,0,_StoreColWidth > > On closeStack I do save the column widths to a custom property (of a > writeable stack) and then on preOpenStack I set the column widths with these > values. Could this be interfering with something? Looking at line 6192 in the data grid library we find this line: ThrowError kErrInvalidInteger, "invalid column width value '" & pValue & "'" It looks like you are passing in a bad value for one of the column widths. -- Trevor DeVore Blue Mango Learning Systems www.bluemangolearning.com-www.screensteps.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid Error
Hey Trevor, It did occur every time, though I only tested on one Mac. I ended up rebuilding the stack which eliminated this problem, but a couple of times I've gotten another error when opening the datagrid stack (the error was not consistent): Line No: Hint: 238' 354,6192,0,_StoreColWidth 354,6192,0,group id 1004 of card id 1002 of stack stack> 354,6181,0,dgColumnWidth 354,6181,0,group id 1004 of card id 1002 of stack stack> 354,35,0,preOpenStack 354,35,0,card id 1002 of stack 354,35,0,preOpenStack 354,35,0,card id 1002 of stack 354,464,0,ShowRegister 354,464,0,stack 354,13,0,menuPick 354,13,0,button id 1020 of group id 1019 of card id 1002 of stack to my main stack> On closeStack I do save the column widths to a custom property (of a writeable stack) and then on preOpenStack I set the column widths with these values. Could this be interfering with something? In the case that this happened the datagrid stack did open OK and then after closing it and reopening in the same session, there was no error (this was in the standalone). Marty On Tue, Sep 27, 2011 at 9:06 PM, Marty Knapp wrote: I have an application with a Datagrid that's been working fine but I'm now getting an error in the standalone (but it seems to work fine in the IDE): Marty, I know of at least one other instance where someone is experiencing a similar error. The problem only occurs on one computer though. Does this error occur every time in your case? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid Error
On Tue, Sep 27, 2011 at 9:06 PM, Marty Knapp wrote: > I have an application with a Datagrid that's been working fine but I'm now > getting an error in the standalone (but it seems to work fine in the IDE): > Marty, I know of at least one other instance where someone is experiencing a similar error. The problem only occurs on one computer though. Does this error occur every time in your case? -- Trevor DeVore Blue Mango Learning Systems LiveCode Resources for Developers: http://livecode.bluemangolearning.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid Error
Thanks Bob - I do have the library included. This has been working for some time, but all of a sudden it's throwing errors. The weird thing is that it works in the ide. It even works in the standalone if I open my development stack with the datagrid by dragging and dropping on the application, but the stack in the standalone throws the error. Marty I think you have to include the datagrid library in your standalone setup. Never done it. Heard about it. Bob On Sep 27, 2011, at 6:06 PM, Marty Knapp wrote: I have an application with a Datagrid that's been working fine but I'm now getting an error in the standalone (but it seems to work fine in the IDE): Software Version: 2.1.0r1 System: MacOS 10.6.8 Executing at 6:01:45 PM on Tuesday, September 27, 2011 -- Type: Chunk: can't find object Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack "revDataGridLibrary" Line: if the behavior of it is empty then Line No: 3729 Hint: _table.CreateControlsForColumns -- Type: if-then: error in statement Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack "revDataGridLibrary" Line: if theRequiredControlCount> theCurrentControlCount then Line No: 3642 Hint: _table.FillListWithJustEnoughControls -- Type: Handler: error in statement Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack "revDataGridLibrary" Line: _table.FillListWithJustEnoughControls Line No: 3788 Hint: _table.DrawControlsInRealTime -- Type: Handler: error in statement Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack "revDataGridLibrary" Line: _table.DrawControlsInRealTime pForceRefresh Line No: 3480 Hint: _table.DrawWithProperties -- Type: switch: error in statement Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack "revDataGridLibrary" Line: switch _ControlType() Line No: 2302 Hint: _DrawListWithProperties -- Anybody have a clue what's going on??? Marty Knapp ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid Error
I think you have to include the datagrid library in your standalone setup. Never done it. Heard about it. Bob On Sep 27, 2011, at 6:06 PM, Marty Knapp wrote: > I have an application with a Datagrid that's been working fine but I'm now > getting an error in the standalone (but it seems to work fine in the IDE): > > Software Version: 2.1.0r1 > System: MacOS 10.6.8 > Executing at 6:01:45 PM on Tuesday, September 27, 2011 > -- > Type: Chunk: can't find object > Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of > stack "revDataGridLibrary" > Line: if the behavior of it is empty then > Line No: 3729 > Hint: _table.CreateControlsForColumns > -- > Type: if-then: error in statement > Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of > stack "revDataGridLibrary" > Line: if theRequiredControlCount > theCurrentControlCount then > Line No: 3642 > Hint: _table.FillListWithJustEnoughControls > -- > Type: Handler: error in statement > Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of > stack "revDataGridLibrary" > Line: _table.FillListWithJustEnoughControls > Line No: 3788 > Hint: _table.DrawControlsInRealTime > -- > Type: Handler: error in statement > Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of > stack "revDataGridLibrary" > Line: _table.DrawControlsInRealTime pForceRefresh > Line No: 3480 > Hint: _table.DrawWithProperties > -- > Type: switch: error in statement > Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of > stack "revDataGridLibrary" > Line: switch _ControlType() > Line No: 2302 > Hint: _DrawListWithProperties > -- > > Anybody have a clue what's going on??? > > Marty Knapp > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Datagrid Error
I have an application with a Datagrid that's been working fine but I'm now getting an error in the standalone (but it seems to work fine in the IDE): Software Version: 2.1.0r1 System: MacOS 10.6.8 Executing at 6:01:45 PM on Tuesday, September 27, 2011 -- Type: Chunk: can't find object Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack "revDataGridLibrary" Line: if the behavior of it is empty then Line No: 3729 Hint: _table.CreateControlsForColumns -- Type: if-then: error in statement Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack "revDataGridLibrary" Line: if theRequiredControlCount > theCurrentControlCount then Line No: 3642 Hint: _table.FillListWithJustEnoughControls -- Type: Handler: error in statement Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack "revDataGridLibrary" Line: _table.FillListWithJustEnoughControls Line No: 3788 Hint: _table.DrawControlsInRealTime -- Type: Handler: error in statement Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack "revDataGridLibrary" Line: _table.DrawControlsInRealTime pForceRefresh Line No: 3480 Hint: _table.DrawWithProperties -- Type: switch: error in statement Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack "revDataGridLibrary" Line: switch _ControlType() Line No: 2302 Hint: _DrawListWithProperties -- Anybody have a clue what's going on??? Marty Knapp ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid Error in Standalone
OK, figured this out Trevor. I forgot that I have a frontScript menuPick handler that does some stuff which could result in the datagrid being updated. I have a global that controls some of that stuff and once I set it appropriately, all works perfectly. Thanks for putting me on the right path. Still trying to track down the other problem with doub display of data. Pete Haworth On Dec 23, 2010, at 12:36 PM, Trevor DeVore wrote: On Thu, Dec 23, 2010 at 3:07 PM, Peter Haworth wrote: Hi Trevor, The try/catch did come up with the same error that I see in the standalone. Here's what was displayed: It looks like you are doing more than just resizing the window. This error report was caused by setting the dgData of the data grid. This is occurring while you are processing the selectionChanged message in the data grid. The engine will complain if you try to delete the control that is the target of the current event which I think is what is happening. Can you trying using send in time to see if it fixes the issue? send myMessage to button "DB_Type" in 0 milliseconds -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid Error in Standalone
Actually I was sending in time at one point (with the same problem) but removed it to see if it made any difference. Now that I know it's something to do with setting dgData, I'll check through the code more carefully and see what I can find. Pete Haworth On Dec 23, 2010, at 12:36 PM, Trevor DeVore wrote: On Thu, Dec 23, 2010 at 3:07 PM, Peter Haworth wrote: Hi Trevor, The try/catch did come up with the same error that I see in the standalone. Here's what was displayed: It looks like you are doing more than just resizing the window. This error report was caused by setting the dgData of the data grid. This is occurring while you are processing the selectionChanged message in the data grid. The engine will complain if you try to delete the control that is the target of the current event which I think is what is happening. Can you trying using send in time to see if it fixes the issue? send myMessage to button "DB_Type" in 0 milliseconds -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid Error in Standalone
On Thu, Dec 23, 2010 at 3:07 PM, Peter Haworth wrote: > Hi Trevor, > The try/catch did come up with the same error that I see in the standalone. > Here's what was displayed: > It looks like you are doing more than just resizing the window. This error report was caused by setting the dgData of the data grid. This is occurring while you are processing the selectionChanged message in the data grid. The engine will complain if you try to delete the control that is the target of the current event which I think is what is happening. Can you trying using send in time to see if it fixes the issue? send myMessage to button "DB_Type" in 0 milliseconds -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid Error in Standalone
Hi Trevor, The try/catch did come up with the same error that I see in the standalone. Here's what was displayed: 347,0,0 76,3561,13 144,3561,1 490,3560,1 490,3555,1 241,3555,1,_table.DeleteDataControls 353,0,0,button id 1005 of group id 1004 of card id 1002 of stack "/ Applications/LiveCode 4.5.1.app/Contents/Tools/Toolset/ revdatagridlibrary.rev" 573,2337,1 587,2335,1 241,2335,1,_DeleteDataControls 353,0,0,button id 1005 of group id 1004 of card id 1002 of stack "/ Applications/LiveCode 4.5.1.app/Contents/Tools/Toolset/ revdatagridlibrary.rev" 573,2071,1 241,2071,1,_ResetData 353,0,0,button id 1005 of group id 1004 of card id 1002 of stack "/ Applications/LiveCode 4.5.1.app/Contents/Tools/Toolset/ revdatagridlibrary.rev" 573,4724,1 241,4724,1,dgData 353,0,0,button id 1005 of group id 1004 of card id 1002 of stack "/ Applications/LiveCode 4.5.1.app/Contents/Tools/Toolset/ revdatagridlibrary.rev" 449,3383,5 535,3383,1 241,3383,1,_table.SetText 353,0,0,button id 1005 of group id 1004 of card id 1002 of stack "/ Applications/LiveCode 4.5.1.app/Contents/Tools/Toolset/ revdatagridlibrary.rev" 573,4648,1 587,4646,1 Pete Haworth On Dec 23, 2010, at 11:42 AM, Trevor DeVore wrote: On Thu, Dec 23, 2010 at 1:07 PM, Peter Haworth wrote: I'll try. A little difficult since the error doesn't occur in the IDE although the datagrid corruption does. The IDE is probably suppressing the error message. You can wrap your code in a try/catch statement and report the error that way: on selectionChanged try ... catch e answer "oops, an error:" && e end try end selectionChanged Is the error any different from that reported in the standalone? -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid Error in Standalone
On Thu, Dec 23, 2010 at 1:07 PM, Peter Haworth wrote: > I'll try. A little difficult since the error doesn't occur in the IDE > although the datagrid corruption does. > The IDE is probably suppressing the error message. You can wrap your code in a try/catch statement and report the error that way: on selectionChanged try ... catch e answer "oops, an error:" && e end try end selectionChanged Is the error any different from that reported in the standalone? -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid Error in Standalone
I'll try. A little difficult since the error doesn't occur in the IDE although the datagrid corruption does. I have the following code in the script for the datagrid. on selectionChanged put "menuPick" && the label of button "DB_ContactInfoType" into myMessage send myMessage to button "DB_ContactInfoType" put "menuPick" && the label of button "DB_Type" into myMessage send myMessage to button "DB_Type" end selectionChanged As far as I can tell, the problem occurs when the "send myMessage to button "DB_Type" statement is executed (the button is an option menu). There's something else strange going on because I have a breakpoint set at the start of the menuPick handler for that button but it doesn't always trigger. The code in the menuPick handler does no dg manipulation, just resizes the window depending on the label of the button. The dg corruption goes away if Refresh the datagrid from its property inspector. Pete Haworth On Dec 23, 2010, at 6:18 AM, Trevor DeVore wrote: On Wed, Dec 22, 2010 at 9:23 PM, Peter Haworth wrote: Getting this error in a standalone, doesn't happen in the IDE: Type: Handler: error in statement Object: group 'TaskList' of group 'DB_Activities' of card 'DB_Activities' of stack 'Tasks' of stack '/Applications/BandTrak/BandTrak.app/Contents/MacOS/BandTrak' Line: Line Num: 0 Hint: _table.DeleteDataControls Can you provide some context such as what is triggering the error? After the error is reported, the data in the datagrid is corrupted. The data or the display of the data? If you fetch the dgData of the data grid are values missing? -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid Error in Standalone
On Wed, Dec 22, 2010 at 9:23 PM, Peter Haworth wrote: > Getting this error in a standalone, doesn't happen in the IDE: > > Type: Handler: error in statement > Object: group 'TaskList' of group 'DB_Activities' of card 'DB_Activities' > of stack 'Tasks' of stack > '/Applications/BandTrak/BandTrak.app/Contents/MacOS/BandTrak' > Line: > Line Num: 0 > Hint: _table.DeleteDataControls > Can you provide some context such as what is triggering the error? > After the error is reported, the data in the datagrid is corrupted. > The data or the display of the data? If you fetch the dgData of the data grid are values missing? -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Datagrid Error in Standalone
Getting this error in a standalone, doesn't happen in the IDE: Type: Handler: error in statement Object: group 'TaskList' of group 'DB_Activities' of card 'DB_Activities' of stack 'Tasks' of stack '/Applications/BandTrak/ BandTrak.app/Contents/MacOS/BandTrak' Line: Line Num: 0 Hint: _table.DeleteDataControls After the error is reported, the data in the datagrid is corrupted. Pete Haworth ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode