This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
    Bookmark Topic Watch Topic
  • New Topic

can't figure this one out

 
joew weakers
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Report post to moderator
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 ]
 
Tom Wolve
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Report post to moderator
you'll find my answer in the beginner forum
Your Post
 
    Bookmark Topic Watch Topic
  • New Topic