Hi,
We came across a strange bug when migrating from TD4.2 to TD6.2 PTF3r in needing to switch from passing using non-Unicode Receive Strings to Receive Binary parameters in our virtual functions.
A repro application is attached with five test cases ranging from a simple Receive String all the way to a Receive Binary array.
Test cases 2 and 5 both result in a Runtime Error, so you'll need to comment those out to run the application successfully.
I believe test case 2 (Receive Binary) failing is an important bug. The workaround is to use test case 4 (Receive Binary array with one element).
Test case 5 failing is a bug too although not such a serious one since passing a Receive Array parameter is no different to passing a non-Receive Array (test case 4) and the latter works. However, it's sometimes nice to be able to label arrays as Receive just to help the reader understand data is being passed back to the caller intentionally.
Not urgent since we have a workaround to use test case 4 for now but this was a difficult problem to track down so I thought I'd better document it for others!
(I noticed whilst searching that there was an earlier bug in TD6.0 (defect TD-15905) relating to Receive Binary returning BINARY_Null for non-virtual functions and that was already fixed.)
Thanks,
Marcel
TD-15905: Receive Binary doesn't work for virtual functions
TD-15905: Receive Binary doesn't work for virtual functions
You do not have the required permissions to view the files attached to this post.
Who is online
Users browsing this forum: [Ccbot] and 7 guests