In my program I display some data (graphically) and allow the user to "Page" through the data.
This all worked perfectly until I added some IF/ELSE/ENDIF statements.
The strange thing is the IF/ELSE statements only changed some numeric values. But now I am getting what I think is a memory leak.
The statements I added are similar to this:
- Code: Select all Expand view
IF nGraphSize = 0
Rectangle(oDlgGraph:hDc, 185,xx,395,xx+1,hPenSpo2)
ELSE
Rectangle(oDlgGraph:hDc, 335,xx,395,xx+1,hPenSpo2)
ENDIF
Basically if nGraphSize = 0 it uses all the original values (from when I did not have the problem).
I am at a loss as to why this is happening.
This is what the screen should look like:
This is what happens after the user has "paged" through the data:
I can't really provide a self contained sample of code that will show this.
Can someone PLEASE point me in the right direction.