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


how to avoid GPF when assigning lots of data to String or Blob

how to avoid GPF when assigning lots of data to String or Blob

how to avoid GPF when assigning lots of data to String or Blob

A string or Blob can hold quite a lot of data.
The problem I've been having in more than one application over the years is that there seems to be no way at all in powerbuilder to make sure your assignment of data to string or blob will end successfully. It'll work or it'll GPF.

In C (the language pb is written in if I'm not wrong), you can do a MemAlloc() for example that'll garantee the success of your assignment. In powerbuilder there seems to be a sort of 'HEAP' of memory that pb gets from windows (process that can't be controlled by programmer if not wrong) and that is the memory used when working with data. It's not like you can check windows' free memory amount and be sure there's enough. There probably will be enough free memory in windows, but your memory assignment will likely 'GPF' when passing limits like 400 MB/ 600MB, while having 2 GB of free memory in windows.

Something that really makes me wonder why pb still hasn't given us a solution.

┬┐Am I missing something, since this must be a problem to lots of programmers?

Any help/information is appreciated,

miguel Leeuwe

Miguel L.

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!

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