Skip to main content
gamedev.net
🔒 Locked

Weird Problems

Started by Esap1 Jul 1, 2000 at 5:54 PM 3 replies 350+ views
Original Post
Esap1
Esap1
The First Problem. When I run my program a function called LoadASE in my Map class runs. Im having trouble with the function so I just open the file close the file and set numObjects to -1. Well I get an Access Violation when setting numObjects to -1(which is a public member of the Map_class). So I try setting it to 1. Same thing. So I comment the line out, and Windows pops up saying "Page Fault in Unkown Module." What the hell is happening? Any ideas?
Jrz
Jrz
You need to be more specific in what you are trying to do. post some code or something
Esap1
Esap1
Its just a long, it used to work just fine, like 2 days ago, that what I dont get, And I know there really isnt an Access Violation because when I take out that line, it gives me a page fault in unknown Module, Has anyone else had this problem, it started doing this after I was Remote Debugging but I think I put all the options back, any ideas?
win32mfc
win32mfc
Do you have an instance of your class instantiated?
If your function LoadACE is static, and you try and access a member variable without an instance of the class created then you''ll get the access violation.

Not sure if that''s the answer, but it''s a possibility..

// CHRIS
// CHRIS [win32mfc]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.