Solved TD-23746 SalDlgOpenFile and SalDlgOpenFileMulti

Post found bugs and possible workarounds.
matttyg
Great Britain
Posts: 1
Joined: 08 Dec 2017, 14:35
Location: Great Britain

TD-23746 SalDlgOpenFile and SalDlgOpenFileMulti

Post by matttyg » 12 Jan 2018, 16:39

Hi, I've recently converted applications from TD 6.0 to 7.0.3 and I'm seeing different behaviour is SalDlgOpenFile and SalDlgOpenFileMulti. I use the filter to set the full file name of the file being searched for. If the text length of the filter is greater than 15 characters in length then I get the 'Internal memory has become invalid' error. Anything with a text length of 15 or less seems to work OK. In the code below, the second call to SalDlgOpenFile causes the error but the first works.

OpenText have confirmed that this is a known issue and has been fixed in 7.0.4 (TD-23746) which should be released by end of January.

!!CB!! 70
Set nIndex = 0
Set strFilters[0] = 'Text File'
Set strFilters[1] = 'abcdefghijk.txt'
Call SalDlgOpenFile(hWndForm, 'Select TXT File', strFilters,2,nIndex, sSelectedFile, sSelectedPath)
Set strFilters[1] = 'abcdefghijkl.txt'
Call SalDlgOpenFile(hWndForm, 'Select TXT File', strFilters,2,nIndex, sSelectedFile, sSelectedPath)

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

Re: TD-23746 SalDlgOpenFile and SalDlgOpenFileMulti

Post by Dave Rabelink » 15 Jan 2018, 06:54

Thanks for reporting this here.
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: 400
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: TD-23746 SalDlgOpenFile and SalDlgOpenFileMulti

Post by Dave Rabelink » 14 Feb 2018, 07:44

This issue is fixed in TD 7.0.4
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 [Crawler] and 0 guests