|
-
Jun 25th, 2026, 03:27 PM
#1
Thread Starter
Hyperactive Member
User-defined event crashes TwinBasic
Hi TwinBasic team. You are appreciated!
I found an issue with TB. Perhaps already known. The following code causes TB to keep "Restarting From Memory" when trying to run in the IDE.
Binary build completes successfully but fails silently and will not run.
Code:
Private Sub UpdateColorInfo()
Dim nH As Single, nS As Single, nL As Single
txtInfo(0).Text = "&H" + Hex(lblCurColor.BackColor)
txtInfo(1).Text = Color2Long(Trim(txtInfo(2).Text))
txtInfo(2).Text = ColorToHTML(lblCurColor.BackColor)
RaiseEvent ColorChanged '<-- This crashes TwinBasic.
End Sub
If I rem out that event call, then all is well. And there is nothing special about the event declaration. Further, the event is not being used outside anywhere
I've also noticed that TB does not always fire certain valid events, including some which are baked into VB6 intrinsic controls.
Anyway, hope this is helpful. Keep up the good work .
-
Jun 26th, 2026, 11:11 AM
#2
Thread Starter
Hyperactive Member
Re: User-defined event crashes TwinBasic
Unfortunately I can't use TwinBasic for my project until this is resolved.
-
Jun 27th, 2026, 01:57 AM
#3
Re: User-defined event crashes TwinBasic
Hi, thanks for your report. However, we'll need you to provide a sample to demonstrate the issue as we cannot see any general problem in this regard, so something else is likely influencing it.
-
Jun 27th, 2026, 10:13 AM
#4
Re: User-defined event crashes TwinBasic
@SomeYguy: Create a small Std-EXE project in TB and copy/paste offending code in Form1 which crashes the IDE and post the project here. There is no other way this can be fixed without a small reproducable project which Wayne can open in debugger and sort it out.
My guess is it will be *extremely* difficult for you to create such small repro project as the root cause of the problem you have is in some other part of your large project which if you were able to figure out then no bug-report would need to be filed. Note that Wayne is not offering to debug your large project though he's done this multiple times in the past to figure out obscure bug-reports.
cheers,
</wqw>
Last edited by wqweto; Jun 27th, 2026 at 10:19 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|