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 / dbGetImage Bugged?

Author
Message
Mason
20
Years of Service
User Offline
Joined: 20th Mar 2004
Location: Arizona
Posted: 12th Feb 2008 01:35
This may be a stupid post but has anyone got get dbGetImage to work? It gives me an error during the program while its running only when the function is called. Anyone that has it working want to post the source code and how they got it working too?

If not, is there a good work around?
Thanks,
Mason


monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 12th Feb 2008 02:33
It seems to work ok for me, any chance we could see some code.

I have pasted an example proggie that I used to test the function. When you press space it will take a screenie and save it under a random filename in the current working directory.

Source:


Projects Started: 20
Projects Completed: 0
Mason
20
Years of Service
User Offline
Joined: 20th Mar 2004
Location: Arizona
Posted: 16th Feb 2008 23:28 Edited at: 16th Feb 2008 23:29
Sorry for the late reply but I ran the code and got an error right when I hit the space key, same as the one I had earlier. Here is the error (it only happens when the dbGetImage is called)

Unhandled exception at 0x013dcf4a in Get Image.exe: 0xC0000005: Access violation reading location 0x00000000.

This is the error I got when I ran your source code, same with my source code as well. Any one got any ideas if this is a bug?

I am running windows vista btw.

Thanks,
<Mc>

Edit: I wonder if it has to do with the function writing a file to my hardrive... Vista has really bad admin restrictions..


jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 17th Feb 2008 14:27
Oh - you got Vista - THE PLAGUE!

Try turning off UAC or whatever it is Microsft calls their "Don't actually run right unless you bow to our ways" module.

Fusspawn
16
Years of Service
User Offline
Joined: 19th Feb 2008
Location:
Posted: 28th Feb 2008 00:35 Edited at: 28th Feb 2008 00:35
Remove UAC!!!!!!!!

it works then


you could try running your compiled app on the desk top or a folder on it, vista is evil about writing to program files by default that or root directories.

Either way No UAC is always good.


EDIT: oooo First non new user post

Stuck in the land of the confused! and loving it!

Login to post a reply

Server time is: 2024-11-20 03:50:41
Your offset time is: 2024-11-20 03:50:41