lamle's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
3 (0.01 per day)
Joined:
03-January 13
Profile Views:
95
Last Active:
User is offline Jan 06 2013 03:05 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   lamle has not set their status

Posts I've Made

  1. In Topic: Pointer to a local variable

    Posted 6 Jan 2013

    Thank 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.
  2. In Topic: Pointer to a local variable

    Posted 3 Jan 2013

    Hi 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?

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Click here to e-mail me

Friends

lamle hasn't added any friends yet.

Comments

lamle has no profile comments yet. Why not say hello?