You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I loaded a project from VB that uses a ParamArray argument for functions after a line continuation. This is causing tons of crashing; whenever the compiler so much as glances at the prototype.
To Reproduce
-New StdExe
-In Form1:
Private Function Invoke(ByVal pInterface As Long, _
ByVal vtb As vtb_Interfaces, _
ParamArray var()) As Variant
If pInterface <> 0& Then
Invoke = OleInvoke(pInterface, vtb, var)
End If
End Function
Private Function OleInvoke(ByVal pInterface As Long, _
ByVal lngCmd As Long, _
ParamArray aParam()) As Variant
End Function
Sub foo()
Call Invoke(0, 0, 0)
End Sub
Right click Invoke, start typing out Invoke again, click the dropdown menu...
01:41:50.3630001 05:41:50.344 NATIVE EXCEPTION: ACCESS_VIOLATION {no-basic-code} 01:41:51.366 restarting from MEMORY [undefined] 01:41:53.231 received request_custom_applyEdit for file that isn't being edited: twinbasic:/NewProject/Sources/Form1.twin 01:41:53.369 0001 05:41:53.326 NATIVE EXCEPTION: ACCESS_VIOLATION {no-basic-code} 01:41:54.353 restarting from MEMORY [undefined]
and so on
Expected behavior
No crashy :)
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: Windows 10
twinBASIC compiler version 0.15.350
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Also minor issue but since a paramarray can only be a variant, for now, 'datatype has not been explicitly declared so will default to Variant' isn't really appropriate.
Describe the bug
I loaded a project from VB that uses a ParamArray argument for functions after a line continuation. This is causing tons of crashing; whenever the compiler so much as glances at the prototype.
To Reproduce
-New StdExe
-In Form1:
Right click Invoke, start typing out Invoke again, click the dropdown menu...
01:41:50.3630001 05:41:50.344 NATIVE EXCEPTION: ACCESS_VIOLATION {no-basic-code}
01:41:51.366 restarting from MEMORY [undefined]
01:41:53.231 received request_custom_applyEdit for file that isn't being edited: twinbasic:/NewProject/Sources/Form1.twin
01:41:53.369 0001 05:41:53.326 NATIVE EXCEPTION: ACCESS_VIOLATION {no-basic-code}
01:41:54.353 restarting from MEMORY [undefined]
and so on
Expected behavior
No crashy :)
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: