posted 20 years ago
Hey there folks. Wondering maybe someone might be able to assist me with this quick query. I have two classes - GeomInVectors and SDOGeometries -which essentially take geometry values from my database and place these geometries into simple vector objects. Having declared variables statically my program executed the way I wanted it to. However I was told that static variables were only to be used as a last resort and having changed these static variables to non-static my program ceased to work correctly. Below are a couple of commented code snippets which are used in executing my program. Perhaps somebody may spot something I cannot see!
from the GeomInVectors class:
My question is simply why is the vector ptv empty in the printPoints method whereas it should be filled with points returned from my database. The points are being retrieved as they are printed correctly to the screen in the printGType method. I cannot see what is wrong here. Thanks Joe
[ October 13, 2003: Message edited by: Cindy Glass ]