SAM_ReportFinish does a post and not a send

Report bugs and possible workarounds.
FRBhote
India
Posts: 2177
Joined: 09 Mar 2017, 05:32
Location: Hyderabad, India

SAM_ReportFinish does a post and not a send

Post by FRBhote » 06 Aug 2021, 12:28

In TD 7 if SalReportPrint or SalReportView or SalReportPrintToFile is called multiple times, then SAM_ReportFinish is not sent immediately after each print.

They appear to queue up and after all are done SAM_ReportFinish is invoked as many times as there are reports.

FRBhote
India
Posts: 2177
Joined: 09 Mar 2017, 05:32
Location: Hyderabad, India

Re: SAM_ReportFinish does a post and not a send

Post by FRBhote » 12 Aug 2021, 13:00

Received a reply from them:
I would like to update you on the issue you have raised.

There is following description in source code : Notify the user's app, by posting a SAM_ReportFinish message. We are posting the message here instead of sending it directly because we need to allow RDW to complete destroying the report window.

So, SAM_ReportFinish is posted not sent, and we cannot change this behavior because this behavior has not been changed from 4.2 and changing this behavior might break existing application.

For this there is an option you can enable SalYield to check queued messages while executing long operation SAL code.
The whole purpose of SAM_ReportFinish is defeated here. It's almost like queueing up SAM_Close messages...

Is SAM_ReportFinish of any use now?

Return to “Bug Reports”

Who is online

Users browsing this forum: [Ccbot] and 0 guests