Page 1 of 1

Why this message between end preOpenCard and start on OpenCard?

Posted: Mon Sep 15, 2025 10:57 am
by mrcoollion
Hello fellow LC developers.
I am investing a lot of time in finishing an application but now i get the following information in the Message box and ik have no idea where it is coming from. The message is invoked between the end of the preOpenCard and the beginning of the on OpenCard. Does any of you have any idea where this is coming from?

The message

Code: Select all

89,252,1
77,252,1
449,252,7
535,252,1
253,252,1
241,237,1,_Initialize
353,0,0,stack "C:/Users/pager/AppData/Roaming/RunRev/Components/LiveCode 10.0.2/Toolset/palettes/datagrid/behaviors/behaviorsdatagridbuttonbehavior.livecodescript"
573,189,1,_Initialize
Friendely greetings,

Paul (MrCoolLion)

Re: Why this message between end preOpenCard and start on OpenCard?

Posted: Mon Sep 15, 2025 12:08 pm
by richmond62
ik have no idea where it is coming from.
emphasis is mine.

Bent u Nederlands?

Without the preOpenCard and the openCard code I don't know how anyone can work out what that text in your messageBox means.

Re: Why this message between end preOpenCard and start on OpenCard?

Posted: Mon Sep 15, 2025 1:35 pm
by mrcoollion
Yep I am Nederlands.

Of coarse i also asked AI the same question and it came with the following answer. So I will be investigating this. I seems that the used DataGrid could be a reazon for my issues.
Looking at your LiveCode error message, this appears to be debug or trace output from the LiveCode engine, likely related to DataGrid components in your application. Let me break down what I'm seeing:

Analysis of the Message
The format appears to be: line_number,character_position,some_identifier[,handler_name]

Key observations:

The message mentions _Initialize handlers
There's a reference to DataGrid behavior: behaviorsdatagridbuttonbehavior.livecodescript
The numbers suggest script execution tracking or debugging output
This occurs between preOpenCard and openCard, which is when DataGrids typically initialize
Likely Causes
DataGrid Debugging Mode: You may have accidentally enabled debug mode or verbose logging for DataGrid components
Custom DataGrid Behavior: If you're using custom DataGrid behaviors, there might be debugging code left in
LiveCode IDE Debug Settings: The IDE might have debug tracing enabled
Script Editor Debug Mode: You may have debug breakpoints or trace statements active
Solutions to Try
1. Check DataGrid Properties
Select any DataGrids in your stack
Open the DataGrid Inspector
Look for any debug or verbose logging options that might be enabled
2. Check IDE Debug Settings
-- In the Message Box, try:
set the debugContext to empty
set the executionContexts to empty
3. Look for Debug Code in Your Scripts
Search your scripts for:

put statements without "into" clauses (these output to Message Box)
Any trace or debug related code
Custom logging code that might output these numbers
4. Check DataGrid Behaviors
If you have custom DataGrid behaviors, check them for:

-- Look for debugging statements like:
put someVariable -- This outputs to Message Box
put line & "," & char & "," & id
5. Reset IDE Debug State
Go to Development → Clear All Breakpoints
Development → Turn Off Debug Mode
Restart LiveCode IDE
6. Check for Message Watching
In the Message Box menu, ensure:

Suppress Messages is unchecked if you want to see normal messages
Suppress Errors settings are appropriate
Quick Diagnostic
Try this in the Message Box to see if it's related to message suppression:

put the suppressMessages
put the debugContext
The fact this happens specifically between preOpenCard and openCard strongly suggests it's DataGrid-related initialization logging. Check if you have any DataGrids that are being populated or refreshed during card opening.

Re: Why this message between end preOpenCard and start on OpenCard?

Posted: Mon Sep 15, 2025 2:44 pm
by richmond62
My experience with A.I. re LC are some fairly 'coarse' responses as well.

What you have posted brings me no nearer to understanding anything.

Re: Why this message between end preOpenCard and start on OpenCard?

Posted: Mon Sep 15, 2025 3:33 pm
by bobcole
Paul (MrCoolLion):
Please look at the dictionary for scriptExecutionErrors.
That explains what the format of the code means.
item 1 - the line number of the scriptExecutionErrors that describes the error.
item 2 - the line number of the script where the execution error occurs.
item 3 - the character position on the line of the token or command that threw the error.
item 4 (optional) - the token or command that threw the error.
in your case the error is:
Error 89: Chunk: no such object
Where: line 252
The first error is the important one. All the others stem from that one.

Bob