Forum Post: AW: Accessing temp-tables in a dataset?

Status
Not open for further replies.
M

Mike Fechner

Guest
The support engineer is correct, that a DATASET-HANDLE parameter may cause a deep copy and not just pass a reference if done wrong. However – there are ways to deal with that. BY-REFERENCE is one, knowing when to delete stuff is another. Forcing you to do dynamic coding (required by the fact that you return only a HANDLE) just because DATASET-HANDLE done wrong may occur memory leaks is, beg my pardon, ridiculous. The Progress debugger has tools to help you with finding those memory leaks – and you certainly should test also for runtime errors and make sure, that all your DELETE OBJECT statements (if required) are in a location that’s guaranteed to be executed – like in a FINALLY block.

Continue reading...
 
Status
Not open for further replies.
Top