Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Need tips on debugging possible memory-leak

Need tips on debugging possible memory-leak

Need tips on debugging possible memory-leak

We have a few errors occuring in one of our screens but only in the PBD version.
When we run the PBL code via PowerBuilder (with or without debug brekapoints) it never fails.

One of the problems is that a computed field is showing up in the pfc_sort field selection dropdown even though there is explicit code to exclude it.

dw_master Constructor
String ls_exclude[]
ls_exclude[1] = "compute_1"


The other problem is an actual application crash when opening another window via OpenSheetWithParm().

I am looking for tips and/or pointers on how to approach this.

RE: Need tips on debugging possible memory-leak

I figured this out.....it weas not a memory leak after all.

Turns out the window object had been inadvertantly saved into another PBL.
When testing via PowerBuilder, my test PBL was above the other PBL so my code always executed.
After making a build, the PBD order was such that an older version of the object was found prior to the correct object and thus overrode it.

The fix was to delete the 2nd copy of the object from the incorrect PBL and rebuild the PBDs so there is only one definition of the object.

- Bill

RE: Need tips on debugging possible memory-leak

Thanks for the update!

"Nature forges everything on the anvil of time"

RE: Need tips on debugging possible memory-leak

No problem. Nothing worse than finding an orphaned/abandoned forum posting for the same problem you have but no resolution specified.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close