grouped datagrid keeps crashing

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Coffee1633
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 219
Joined: Mon Dec 05, 2011 5:35 pm

grouped datagrid keeps crashing

Post by Coffee1633 » Wed Aug 20, 2014 1:41 pm

I've been creating a simple login system for an app and I got it to works perfectly ... in a stack all by itself. the login uses one datagrid to hold a list of current player names. It also allows name changes, and profile deletes. The player profile data is saved to flat txt files. It uses one datagrid to display the player names. And like I said I put it through its paces, as a separate stack and it works fine.

The problem arises when I try to copy or replicate the stack into the app.
first I tried just copying and pasting the objects which essentially are: 3 grouped objects containing a few buttons and fields, and one group that contains a datagrid and some buttons for navigation. I opened both stacks, i.e. the main app stack and the login sandbox test stack and copied the login objects over to the main stack and adjusted some code for its new home but then the main stack keeps crashing when, for example I try to change the color of a group or button or I try to show or hide a group.

At this point I will probably just rebuild the whole thing from the ground up in the main app and give up on the cutting and pasting of objects from one stack to another. However,
Question:
1) Is it possible cut and paste a datagrid which is inside a separate group from stack to stack? is that what is causing the problems?
2) I see this build cycle happening more and more , i.e. build a component in a separate stack and then integrating it into the main stack, but I am having so many problems copying and pasting multiple grouped objects containing datagrids from one stack to the next.

Any suggestions? I can give more details but I was hoping that maybe someone would notice an obvious error on my design cycle and I can change that first.

bob

sritcp
Posts: 431
Joined: Tue Jun 05, 2012 5:38 pm

Re: grouped datagrid keeps crashing

Post by sritcp » Wed Aug 20, 2014 2:25 pm

In my experience, copying a data grid or data grid elements from one stack to another causes all kinds of errors (though I haven't had it crash the program).

Finally, I tried copying the card (containing the data grid) from stack 1 to stack 2. This worked.

Regards,
Sri

Coffee1633
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 219
Joined: Mon Dec 05, 2011 5:35 pm

Re: grouped datagrid keeps crashing

Post by Coffee1633 » Wed Aug 20, 2014 2:48 pm

I am using LC 6.6.2 on a mac and I am using groups a lot of groups and sometimes groups within groups. It is starting to act up when I reorder objects within a group using the project browser. I wonder if that has something to do with it as well. If I can ever see a pattern in the the crashing I will post a bug but for now it crashes at random times. Although not as often as when I had copied the datagrid from one stack to another.

bob

Havanna
Posts: 53
Joined: Wed May 14, 2014 3:00 pm

Re: grouped datagrid keeps crashing

Post by Havanna » Thu Nov 13, 2014 11:47 am

sritcp wrote:In my experience, copying a data grid or data grid elements from one stack to another causes all kinds of errors (though I haven't had it crash the program).

Finally, I tried copying the card (containing the data grid) from stack 1 to stack 2. This worked.

Regards,
Sri
I've also been experiencing issues with copied datagrids (still with 6.6.5).
One being datagrid working perfectly in the IDE, but not accepting formats (like set dgColumnWidth["..."] or set dgprops["text size"]) in a standalone for windows or android

Post Reply