Author Topic: Access Violation  (Read 1080 times)

gaulthunter

  • Newcomer
  • *
  • Posts: 9
    • View Profile
Access Violation
« on: 24. April 2013, 13:53:24 »
OK, so for some reason, this code is crashing when It reaches the last line (the 2nd loadimage).

The code:


Code: [Select]
V="4R1B0"
openwindow(300,300,32,"Revival "..V)
face = loadimage("Resources/Faces/FPlayersad.png")
diabox = loadimage("Resources/Dialogue.png")

The error:


Quote
An unhandled exception occurred at $68127926 :
EAccessViolation : Access violation
  $68127926
  $6812989B
  $68129D33
  $00418D4D
  $00403440
  $10006B31
  $10011A17
  $10006E4F
  $100023D9
  $10006076
  $100060D9
  $10002313
  $00417E84
  $00417F57
  $0040AB38



I've been trying to find the flaw here for months, and have reached a point where I'm literally screaming vulgarity at my computer. Why is it doing this and how can I fix it?
« Last Edit: 24. April 2013, 21:02:35 by Cybermonkey »

Cybermonkey

  • Administrator
  • Hero Member
  • *****
  • Posts: 573
    • View Profile
    • Home of EGSL
Re: Access Violation
« Reply #1 on: 24. April 2013, 14:09:45 »
Is the image in RGB format?
Best regards,
Cybermonkey

gaulthunter

  • Newcomer
  • *
  • Posts: 9
    • View Profile
Re: Access Violation
« Reply #2 on: 24. April 2013, 14:17:13 »
I don't know how to tell, But it was created and saved (like the first image, which I remind you works) in Paint.net

Cybermonkey

  • Administrator
  • Hero Member
  • *****
  • Posts: 573
    • View Profile
    • Home of EGSL
Re: Access Violation
« Reply #3 on: 24. April 2013, 18:08:50 »
Maybe you can attach the image here?
Best regards,
Cybermonkey

gaulthunter

  • Newcomer
  • *
  • Posts: 9
    • View Profile
Re: Access Violation
« Reply #4 on: 24. April 2013, 18:42:02 »
sure thing.

Cybermonkey

  • Administrator
  • Hero Member
  • *****
  • Posts: 573
    • View Profile
    • Home of EGSL
Re: Access Violation
« Reply #5 on: 24. April 2013, 21:18:40 »
Yes, it was what I thought: the image was indexed and not in RGB format. I converted it to the correct format with GIMP. Please try the attached image.
Best regards,
Cybermonkey

gaulthunter

  • Newcomer
  • *
  • Posts: 9
    • View Profile
Re: Access Violation
« Reply #6 on: 25. April 2013, 03:57:22 »
Thanks! How can I solve this in the future?

Cybermonkey

  • Administrator
  • Hero Member
  • *****
  • Posts: 573
    • View Profile
    • Home of EGSL
Re: Access Violation
« Reply #7 on: 25. April 2013, 10:34:50 »
Hm, the only program I know which shows that and can convert it with one menu point is the GIMP. But it's free software OTOH.
Best regards,
Cybermonkey