Solved TD-22150: SalCreateWindow as function parameter crash TD63

Report TD 5.x and 6.x bugs and possible workarounds.
Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3512
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

TD-22150: SalCreateWindow as function parameter crash TD63

Post by Dave Rabelink » 10 Jun 2015, 07:23

See this code:

Code: Select all

Call LogWindow( SalCreateWindow( frm1, hWndNULL ) )
The return value of SalCreateWindow is passed as param to the function LogWindow.

This will crash TD63

As workaround for now, do this:

Code: Select all

Set hWndWindow = SalCreateWindow( frm1, hWndNULL )
Call LogWindow( hWndWindow )
Testcase saved in TD62 text format.
CreateWindowAsParam.zip
PS. Tested this on TD63 RTM and TD63 UPD1r. The issue is introduced in UPD1r and not present in RTM version.
You do not have the required permissions to view the files attached to this post.
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3512
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: TD-22150: SalCreateWindow as function parameter crash TD63

Post by Dave Rabelink » 10 Jun 2015, 12:17

Gupta has assigned a defect for this issue:

TD-22150 - When SalCreateWindow() is used as a parameter of a function TD crashes
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3512
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: TD-22150: SalCreateWindow as function parameter crash TD63

Post by Dave Rabelink » 13 Jul 2015, 12:14

This defect has been fixed in:

TD 6.3 UPD2 45680
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Return to “Bug Reports”

Who is online

Users browsing this forum: [Ccbot] and 6 guests