EDIT: It seems that this problem only arises when the class is declared globaly instead of localy elsewhere. I wonder why this is!
Here is an odd something!.
With one of my classes I get a runtime error in which the debugger points to "dbScreenWidth()" as the culprit. It seems allot of other db functions produce similar errors in that same class (for instance, "dbLoadObject"). Other db functions like "dbPositionCamera()" work fine in the class
. The functions I am talking about are in the class initialization.
How might I have set the class up incorrectly to have it produce these results? I also get problems with some non darkSDK functions in this class.
"
Unhandled exception at 0x0040f0f5 in hans_treasure_hunter.exe: 0xC0000005: Access violation reading location 0x000002b8.
"
Any help would be appretiated. Its driving me nuts that I can't work out what the problem is!!!