Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with getRecord()

 
Ruslan Ivanov
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi i am using getRecord to retrieve a record if i try to retrieve 2 records using this method in a loop i only get one and only sometimes i get another one. If i do Thread.sleep for 100 milliseconds i can get all the recods in any time otherwise i only get one or just 2. What can cause this ?
 
ramandeep singh
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is this prblem is there in both Local and remote mode
or only in remote
Can U explan a little about ur approach
 
Ruslan Ivanov
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
currently i am only testing this in local mode. I don't know what causes this though.
 
ramandeep singh
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so can U explain a little about what U are doing
I mean ur design and approach
 
Ruslan Ivanov
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi i am still experiencing the problem , i hope someone can explain something to me why this happends.
All i do is just call this instance method on the Data object like this

i only get one record if i place some sort of time out like Thread.sleep for 100 milliseconds then i get to see all the records i wish. Why does this happen ?
Thanks.
 
Ruslan Ivanov
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry to post this again , i found the answer to the problem. Apperantly it was caused by Kawa's IDE. I didn't payed attention much to it , but i started to run in DOS and i gotten corrent results , if i run it in Kawa i only get one record.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic