I find this error to be very curious, I have a data window. My intention is to create a basic add, edit, delete app and the code in my delete button contains the following code:
Self:Delete()
I get a processor stack error. While debugging I see the delete code execute over and over until I get the error. I don't understand why the code executes over nd over, and the delete never occurs!
Any ideas...thank you,
David
I find this error to be very curious, I have a data window. My intention is to create a basic add, edit, delete app and the code in my delete button contains the following code:
Self:Delete()
I get a processor stack error. While debugging I see the delete code execute over and over until I get the error. I don't understand why the code executes over nd over, and the delete never occurs!
Any ideas...thank you,
David
On Thursday, January 19, 2023 at 10:41:16 PM UTC-5, Jamal wrote:
Most likely you are calling the method in a **recursive loop**.
Need better help?
Go the X# forum at www.xsharp.eu and upload and a complete minimal AEF, with all related files, which duplicates the issue.
I suggest you always provide the VO version, Window version, etc.
Also, if a post helps you, then say so. It's a good for others to see if the issue is resolved in case they run into the same problem.
Jamal
On 1/19/2023 1:44 PM, David Linda wrote:
I find this error to be very curious, I have a data window. My intention is to create a basic add, edit, delete app and the code in my delete button contains the following code:
Self:Delete()
I get a processor stack error. While debugging I see the delete code execute over and over until I get the error. I don't understand why the code executes over nd over, and the delete never occurs!
Any ideas...thank you,
I have a Delete button that contains this code:David
Self:Delete()
I am using Virtalbox
windows 3.1
V.O. 1.0
Most likely you are calling the method in a **recursive loop**.
Need better help?
Go the X# forum at www.xsharp.eu and upload and a complete minimal AEF,
with all related files, which duplicates the issue.
I suggest you always provide the VO version, Window version, etc.
Also, if a post helps you, then say so. It's a good for others to see if
the issue is resolved in case they run into the same problem.
Jamal
On 1/19/2023 1:44 PM, David Linda wrote:
I find this error to be very curious, I have a data window. My intention is to create a basic add, edit, delete app and the code in my delete button contains the following code:
Self:Delete()
I get a processor stack error. While debugging I see the delete code execute over and over until I get the error. I don't understand why the code executes over nd over, and the delete never occurs!
Any ideas...thank you,
David
On Friday, January 20, 2023 at 11:00:21 AM UTC-5, Robert van der Hulst wrote:
David,
Is the method that contains this code also called Delete ?
In that case:
- you do not need that method at all
- or you change the code to SUPER:Delete()
Robert
On Thursday, January 19, 2023 at 10:41:16 PM UTC-5, Jamal wrote:
Most likely you are calling the method in a **recursive loop**.
Need better help?
Go the X# forum at www.xsharp.eu and upload and a complete minimal AEF, with all related files, which duplicates the issue.
I suggest you always provide the VO version, Window version, etc.
Also, if a post helps you, then say so. It's a good for others to see if
the issue is resolved in case they run into the same problem.
Jamal
On 1/19/2023 1:44 PM, David Linda wrote:
I find this error to be very curious, I have a data window. My intention is to create a basic add, edit, delete app and the code in my delete button contains the following code:
Self:Delete()
I get a processor stack error. While debugging I see the delete code execute over and over until I get the error. I don't understand why the code executes over nd over, and the delete never occurs!
Any ideas...thank you,
I have a Delete button that contains this code:David
Self:Delete()
Holy Crap!I am using Virtalbox
windows 3.1
V.O. 1.0
Robert it worked, But I don't understand...Self is my datawindow, super gets me to the app level, as I under stand this, which is why I don't understand. A more detailed explanation would be GREATLY appreciated.
Many thanks,
David
David,
Is the method that contains this code also called Delete ?
In that case:
- you do not need that method at all
- or you change the code to SUPER:Delete()
Robert
On Thursday, January 19, 2023 at 10:41:16 PM UTC-5, Jamal wrote:
Most likely you are calling the method in a **recursive loop**.
Need better help?
Go the X# forum at www.xsharp.eu and upload and a complete minimal AEF, with all related files, which duplicates the issue.
I suggest you always provide the VO version, Window version, etc.
Also, if a post helps you, then say so. It's a good for others to see if the issue is resolved in case they run into the same problem.
Jamal
On 1/19/2023 1:44 PM, David Linda wrote:
I find this error to be very curious, I have a data window. My intention is to create a basic add, edit, delete app and the code in my delete button contains the following code:
Self:Delete()
I get a processor stack error. While debugging I see the delete code execute over and over until I get the error. I don't understand why the code executes over nd over, and the delete never occurs!
Any ideas...thank you,
I have a Delete button that contains this code:David
Self:Delete()
I am using Virtalbox
windows 3.1
V.O. 1.0
David,
You are confusing SUPER with OWNER
SUPER is the DataWindow class from which your class inherits.
OWNER is the Shellwindow class (if your window is inside a shellwindow)
Robert
On Friday, January 20, 2023 at 11:00:21 AM UTC-5, Robert van der Hulst wrote:
David,
Is the method that contains this code also called Delete ?
In that case:
- you do not need that method at all
- or you change the code to SUPER:Delete()
Robert
On Thursday, January 19, 2023 at 10:41:16 PM UTC-5, Jamal wrote:
Most likely you are calling the method in a **recursive loop**.
Need better help?
Go the X# forum at www.xsharp.eu and upload and a complete minimal AEF,
with all related files, which duplicates the issue.
I suggest you always provide the VO version, Window version, etc.
Also, if a post helps you, then say so. It's a good for others to see if
the issue is resolved in case they run into the same problem.
Oh yes...So then similarly my add code should be IF super:Append() = TRUE instead of IF Self:Append() = TRUE which is what I have nowJamal
On 1/19/2023 1:44 PM, David Linda wrote:
I find this error to be very curious, I have a data window. My intention is to create a basic add, edit, delete app and the code in my delete button contains the following code:
Self:Delete()
I get a processor stack error. While debugging I see the delete code execute over and over until I get the error. I don't understand why the code executes over nd over, and the delete never occurs!
Any ideas...thank you,
I have a Delete button that contains this code:David
Self:Delete()
Holy Crap!I am using Virtalbox
windows 3.1
V.O. 1.0
Robert it worked, But I don't understand...Self is my datawindow, super gets me to the app level, as I under stand this, which is why I don't understand. A more detailed explanation would be GREATLY appreciated.
Many thanks,
David
On Friday, January 20, 2023 at 11:53:58 AM UTC-5, Robert van der Hulst wrote:
David,Oh yes...So then similarly my add code should be IF super:Append() = TRUE instead of IF Self:Append() = TRUE which is what I have now
You are confusing SUPER with OWNER
SUPER is the DataWindow class from which your class inherits.
OWNER is the Shellwindow class (if your window is inside a shellwindow)
Robert
On Friday, January 20, 2023 at 11:00:21 AM UTC-5, Robert van der Hulst wrote:
David,Holy Crap!
Is the method that contains this code also called Delete ?
In that case:
- you do not need that method at all
- or you change the code to SUPER:Delete()
Robert
On Thursday, January 19, 2023 at 10:41:16 PM UTC-5, Jamal wrote:
Most likely you are calling the method in a **recursive loop**.I have a Delete button that contains this code:
Need better help?
Go the X# forum at www.xsharp.eu and upload and a complete minimal AEF, >>>>>> with all related files, which duplicates the issue.
I suggest you always provide the VO version, Window version, etc.
Also, if a post helps you, then say so. It's a good for others to see if >>>>>> the issue is resolved in case they run into the same problem.
Jamal
On 1/19/2023 1:44 PM, David Linda wrote:
I find this error to be very curious, I have a data window. My intention is to create a basic add, edit, delete app and the code in my delete button contains the following code:
Self:Delete()
I get a processor stack error. While debugging I see the delete code execute over and over until I get the error. I don't understand why the code executes over nd over, and the delete never occurs!
Any ideas...thank you,
David
Self:Delete()
I am using Virtalbox
windows 3.1
V.O. 1.0
Robert it worked, But I don't understand...Self is my datawindow, super gets me to the app level, as I under stand this, which is why I don't understand. A more detailed explanation would be GREATLY appreciated.
Many thanks,
David
This was also confusing because Self:Append() worked and Self:Delete did not. Thanks again
METHOD Append() CLASS ...FTR, Chris, this should be:
SELF:Delete() // recursive call
then you woudl have again the same problem.
On Sat, 21 Jan 2023 10:45:40 +0200, Chris Pyrgas wrote:
METHOD Append() CLASS ...FTR, Chris, this should be:
SELF:Delete() // recursive call
then you woudl have again the same problem.
METHOD Append() CLASS ...
SELF:Append() // recursive call
Regards
Karl
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 45:04:00 |
Calls: | 10,392 |
Files: | 14,066 |
Messages: | 6,417,260 |