aspose file tools*
The moose likes Java in General and the fly likes can't figure this one out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

can't figure this one out

joew weakers
Ranch Hand

Joined: Aug 21, 2003
Posts: 48
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

Joined: Sep 22, 2003
Posts: 32
you'll find my answer in the beginner forum
Your Post
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can't figure this one out
 
Similar Threads
problem outputting to file
Does order matter in local variable declarations?
Trying to make a Tetris game--why does my board look weird?
please help me!!!
Thread start() and run() help