Arrays in PowerBuilder -


i have code

n_userobject    inv_userobject[]  = 1 dw_1.rowcount() inv_userobject[i] = create n_userobject  .  .  . next  

dw_1.rowcount() returns 210 rows. odd in range of 170 up, application stop , crashes on inv_userobject[i] = create n_userobject. question, there limit on array or userobject declaration using arrays? try destroying after loop check if possible solution, still crashing. or how can able somehow refresh userobject? or there out there encounter this?

thanks help.

first, memory problem. you're not running array limit. if take guess, 1 of instance variables in n_userobject isn't being cleaned (i.e. pointing class isn't being destroyed when parent class destroyed) or pointing class doesn't clean up. if you've got pb enterprise, i'd profiling trace smaller loop , see being garbage collected (there's utility called cdmatch helps process).

secondly, let's face it, you're doing avoid writing reset method. if functional, never efficient writing own reset method , reusing same instance on again. yes, it's method you'll have maintain whenever instance variable list changes or defaults change, you'll gain in performance.

good luck,

terry.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -