Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / DGDK.NET access violation problem

Author
Message
frstPrsn
18
Years of Service
User Offline
Joined: 13th Apr 2006
Location:
Posted: 8th Mar 2007 20:47
Hi,

I don't know why this error suddenly happened but as I was updating my code, adding functions and variables, this error occured:


Unhandled exception at 0x000007b9 in HiStakes v2.1.exe: 0xC0000005: Access violation reading location 0x000007b9.

I have this code as a test where it is occurring:

//more codes on top of this
dbPrint("Hi");
dbWait(1000);

I have this inside an infinite loop. When I try to debug, it passes through this portion of the code once, but the second pass, it gives me that violation.

This is what's in my call stack:
000007b9()
HiStakes v2.1.exe!ExternalDisplaySync() + 0x204 bytes
HiStakes v2.1.exe!InternalProcessMessages() + 0x1b bytes
HiStakes v2.1.exe!SleepL() + 0x18 bytes
HiStakes v2.1.exe!service_meters2(int time=0x00000064) Line 527 + 0xa bytes


any suggestion would do otherwise, I have to redo my code all over again.
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 8th Mar 2007 22:10
It is an interesting error, but I can only presume to think that because dbWait is holding up the thread that you're running, some other message loop elsewhere is being snapped, or something to do with your rendering.

Also, can you oonfirm that this is DGDK (C++), and not DGDK.NET. I know your code is C++ obviously, but your thread title isn't.

Paul.


322 is the time that the world will change.... forever!
frstPrsn
18
Years of Service
User Offline
Joined: 13th Apr 2006
Location:
Posted: 9th Mar 2007 00:19 Edited at: 9th Mar 2007 00:24
I'm not sure where to confirm that, but I believe that I'm using DGDK.NET. I know for sure that I'm using VS.Net 2005.

This is what is written in the readme.txt:
DarkGDK - Version 1.6.2c
------------------------

Compiler Support
----------------

The DarkGDK supports the following compilers -

Microsoft Visual Studio .NET 2003
Microsoft Visual Studio 2005



I also want to add that it is not only with dbWait() but I'm having the same error with dbSync()
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 9th Mar 2007 01:03
Ok, you're using the C++ libraries. Hence the confusion on my part. As for the actual error, if you're receiving the same error when calling dbSync, can you provide a small source file that exhibits the problem so that it can be tested on other platforms. If it's a general problem, then it should be replicated on other systems, but if it's a driver problem specific to your PC, we should be able to isolate the problem and hopefully, fix it.

Paul.


322 is the time that the world will change.... forever!
frstPrsn
18
Years of Service
User Offline
Joined: 13th Apr 2006
Location:
Posted: 9th Mar 2007 02:56
I appologize but I cannot give any code due to company policy. However, I redo my code and it's all working again. Also, I found bunch of these messages in the output window:

First-chance exception at 0x19f17010 (wmvcore.dll) in HiStakes v2.1.exe: 0xC0000005: Access violation writing location 0x00000000.

and these

First-chance exception at 0x7c81eb33 (kernel32.dll) in HiStakes v2.1.exe: Microsoft C++ exception: int at memory location 0x18f6fa24..


The basic algorithm of my code is this:
- preload animations, animation numbers, and sprite numbers into designated structured variables.
- when in the big while loop, get the structures through functions that returns the address of the varaibles assigned to the structures
- play and paste the necessary animations and images.

maybe the wmvcore.dll is a clue to why I'm having that problem before
frstPrsn
18
Years of Service
User Offline
Joined: 13th Apr 2006
Location:
Posted: 12th Mar 2007 18:56
ok, this is what i have found out about this wmvcore.dll access violation. This error seems to happen only in wimdows media player version 10 and my short solution is to change wmv files to avi and this is the only link I found in microsoft about that error

http://support.microsoft.com/kb/320630

Login to post a reply

Server time is: 2024-11-19 12:46:00
Your offset time is: 2024-11-19 12:46:00