IonicWind Software

IWBasic => General Questions => Topic started by: TexasPete on May 28, 2011, 08:35:53 AM

Title: Access violation
Post by: TexasPete on May 28, 2011, 08:35:53 AM
I started having this problem recently and I am not sure why. This is a program I wrote to work with my xhtml program. It had been working fine for three years.
I am on windows 7 . I am getting an error  in the debug but it is not pointing to a line. It says
"First chance exception 0x20746168 access Violation." . It may be windows securty system I don't know. Any one know How to rectify this.

Thanks
Texas Pete
Title: Re: Access violation
Post by: sapero on May 28, 2011, 01:07:50 PM
Ignore it. If you see only First Chance, that means the exception was expected and handled.
If you call FILEREQUEST, there is also an exception.

Exceptions are not always bugs. If you have a complex loop, and somewhere inside the loop your code detects an error, it is much simpler to generate an exception instead writing extra code (if error then return) to quit from the loop. Such exception is your friend, saves a lot of work and keeps your executable small.
Title: Re: Access violation
Post by: TexasPete on May 29, 2011, 05:12:31 AM
Sapero, Thanks alot for the reply. Unfortunately, It is keeping the program from running properly. I may have figured it out while I was sleeping. I will look into that and then get back to the forum.

Thanks
Texas Pete
Title: Re: Access violation
Post by: TexasPete on May 29, 2011, 07:47:54 AM
Sapero, I checked out my code. It is getting an error code15904.

Is there a list of error codes that might give me a hint!

Thanks Texas Pete
Title: Re: Access violation
Post by: sapero on May 29, 2011, 11:41:52 PM
The common errors are defined in winerror.inc and ntstatus.inc.
I could not find 15904 and its hex version 3E20 in the whole include tree, that means 15904 must be a custom error code.
Title: Re: Access violation
Post by: TexasPete on May 30, 2011, 04:11:14 AM
Sapero, That is interesting . I personally never made such an error message. I wonder where it came from.
Thanks
Texas Pete