Reputation: 0 Apprentice
- New Members
- Active Posts:
- 3 (0.01 per day)
- 03-January 13
- Profile Views:
- Last Active:
- Jan 06 2013 03:05 AM
- Dream Kudos:
Posts I've Made
Posted 6 Jan 2013Thank guys for helping.
I suspected the wrong cause of the problem, there was no problem doing the mentioned way except that it uses additional unnecessary memory (the pointer).
The problem was because of another thread writing to the same memory location and overriding its value.
Posted 3 Jan 2013Hi JackOfAllTrades,
Thank you for quick reply.
[code](do everything with pinstance)[code]
this part just basically sets value for members of struct A (excluding id), nothing more.
I used pointer to the local variable for convenience reason with other part of the code. Now it is like that and I am wondering what was the cause of the problem that the value of pinstance->id has changed.
Can it be that the address of instance is changed at some point and pinstance keeps pointing to the old address?
- Member Title:
- New D.I.C Head
- Age Unknown
- Birthday Unknown
- Click here to e-mail me
lamle hasn't added any friends yet.