Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

can't figure this one out

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
you'll find my answer in the beginner forum
Your Post
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic