Questions tagged [invalidation]

568 questions
14
votes
1 answer

invalidate() inside of a thread android app

I'm new to programming androids but I have quite a bit of experience programming blackberries. I created an app that has an activity class (main.java) and a view class (game.java). Inside the view class I have some bitmaps being drawn to the…
Dave
  • 324
  • 1
  • 4
  • 10
14
votes
2 answers

How to validate/invalidate sessions jsp/servlets?

I opened the session in my servlet when the user performed a successful login: HttpSession session = request.getSession(true); session.setAttribute("name", name); then I wrote in the logout.jsp to terminate the…
Noah Martin
  • 1,708
  • 9
  • 35
  • 73
13
votes
3 answers

Why session is not null after session.invalidate() in JAVA?

I am facing very strange problem while developing JavaEE WEB Application. Even after invalidating the HttpSession using session.invalidate();, I am not getting session null. There is a case where I have one statement in execution like below after…
Vishal Zanzrukia
  • 4,902
  • 4
  • 38
  • 82
11
votes
2 answers

Invalidating JPA EntityManager session

A project I am working on uses Spring 2.5 & JPA with Hibernate as a provider. My DAO classes extend JpaDaoSupport, so I get my JpaTemplate using the getJpaTemplate() method. The back-end database can get changed either by my application, or a…
dasp
  • 909
  • 4
  • 13
  • 21
11
votes
2 answers

std::list<>::splice invalidates iterators. Rationale?

I wonder what is the rationale behind making std::list<>::splice to invalidate the iterators that refer to the subsequence being spliced into the new container. This looks kinda illogical to me, especially in light of standard std::container::swap…
AnT stands with Russia
  • 312,472
  • 42
  • 525
  • 765
10
votes
4 answers

Avoiding iterator invalidation using indices, maintaining clean interface

I have created a MemoryManager class which is basically a wrapper around two vectors of pointers that manage lifetime of heap-allocated objects. One vector stores the "alive" objects, the other one stores the object that will be added on next…
Vittorio Romeo
  • 90,666
  • 33
  • 258
  • 416
10
votes
2 answers

Android: invalidate(dirty)

It seems like Android really doesn't like invalidate (Rect dirty), which is used to invalidate only part of a canvas. When I invalidate part of a canvas (shown in green below) and a ToggleButton outside of the canvas needs to be redrawn at the same…
1''
  • 26,823
  • 32
  • 143
  • 200
9
votes
3 answers

NSTimer disables dealloc in UIView

@interface someview:UIView{ NSTimer* timer; } @end @implementation someview -(void)dealloc{ NSLog(@"dealloc someview"); [timer invalidate]; timer = nil; } -(void)runTimer{ // } -(void)someMethod{ timer = [NSTimer…
ssj
  • 881
  • 1
  • 10
  • 21
9
votes
3 answers

How to properly invalidate JSP session?

So here is the problem. When a user logs out of my website, they can still hit the back button and continue using the site. To keep track of whether the user is logged in or not, I created a session attribute "isActive". The attribute is set to true…
Morglor
  • 347
  • 2
  • 7
  • 15
9
votes
8 answers

Update existing Preference-item in a PreferenceActivity upon returning from a (sub)PreferenceScreen

I have a PreferenceActivity with a bunch of (Sub)PreferenceScreens. Each such (Sub)PreferenceScreen represents an account and has the account-username as its title. PreferenceScreen root = mgr.createPreferenceScreen(this); for (MyAccountClass…
aioobe
  • 413,195
  • 112
  • 811
  • 826
8
votes
1 answer

How to update Android Views upon modifications?

I have some methods in my View that modify some of the shapes that are drawn when called. In Java in order to make sure the component is updated I would call repaint(). Is there something that will make sure my view is updated correctly? I had read…
StartingGroovy
  • 2,802
  • 9
  • 47
  • 66
8
votes
1 answer

Why Is Custom View not Invalidating?

Im a noob to android development and I am having problems invalidating a view. I am using this tutorial and have no issues implementing it. However, when I change the background of the view, it still responds as if the previous background is still…
B. Money
  • 931
  • 2
  • 19
  • 56
7
votes
2 answers

Swift - The certificate for this server is invalid

How can I fix this on iOS using Swift? When I'm making a server request I get the following error: The certificate for this server is invalid. You might be connecting to a server that is pretending to be “...” which could put your confidential…
SwiftiSwift
  • 7,528
  • 9
  • 56
  • 96
7
votes
0 answers

How to abandon (invalidate without saving) a cache line on x86_64?

As I understand, _mm_clflush() / _mm_clflushopt() invalidates a cache line while saving it to memory if it has been changed. Is there a way to simply abandon a cache line, without saving to memory any changes made to it? A use case is before freeing…
Serge Rogatch
  • 13,865
  • 7
  • 86
  • 158
7
votes
3 answers

How does ImageView just redraw part of its content when invalidate(Rect) is called?

I am new to Android development, just reading docs and trying the APIs. I am quit confused how ImageView managed to draw just a part of its content after an invalidate(Rect) invocation. I've checked ImageView.java, found no other drawing method…
imax366
  • 71
  • 1
  • 3
1
2
3
37 38