Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EPrivilege & EstackOverflow - NO REASON! 1

Status
Not open for further replies.

biot023

Programmer
Nov 8, 2001
403
GB
Hallo.
I have a piece of code that has been working fine - like a dream, in fact. I was very pleased.
All of a sudden, after a couple of totally unrelated alterations to another class, I start getting EPrivilege & sometimes EStackOverflow exceptions.
I cannot for the life of me figure out why!
Has anyone else out there come accross something similar?
& found a workaround, or something?
PLEASE lemme know if you have!
Cheers,
Douglas J Livesey

Common sense is what tells you the world is flat.
 
months ago i had the same problem than you, so i solve it changing the place where I declare the variables. I don't know why but 2 variables were using the same memory position.

Check it with the debugger.

In a moment I'll tell you how to know if this happen
 
Cheers, man - that could save me MUCH stress!

DJL

Common sense is what tells you the world is flat.
 
ok, sorry for too late
when you declare 2 variables for example
int X
int Y
will take diferent memory position if you declare the same variables but in diferente order (I don't know why)
int Y
// you can add code here if you want another block
int X
but how to know what memory block are this values?
when u are debugging your aplicattion open the evaluate and Modify window (pressing ctrl + F7) ther u can check teh memory position and its values.
 
Man, that's fantastic to know - thanks alot!
Enjoy the star!
Cheers,
Douglas JL Common sense is what tells you the world is flat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top