Error EXEPTION_ACCES_VIOLATION

BlitzMax Forums/BlitzMax Beginners Area/Error EXEPTION_ACCES_VIOLATION

Yue(Posted 2015) [#1]

What am i doing wrong?






Henri(Posted 2015) [#2]
Hello,

your 'Constructor' function does not return 'TVentana' . You could alternatively add the newly created type to global list inside 'Constructor' so there would be no need for 'ColeccionVentanas' function.

-Henri


Yue(Posted 2015) [#3]
@ Henri
Thanks You :)

Ok?


Henri(Posted 2015) [#4]
Seems about right. It is also a good idea to put 'Strict' or 'SuperStrict' statement at the beginning of the program in order to catch errors like these.

-Henri


Yue(Posted 2015) [#5]
I think that I love to learn new things.
I improved the code with the constructor and destructor of the object, which is not whether it is right or not.
I'll remember him from SuperStrict.

So this correct?



Windows.Destructor() ; Destroy obj Windows.



col(Posted 2015) [#6]
EXCEPTION ACCESS VIOLATION

What am i doing wrong?

In the menus... Program->Build Options->Debug Build should be ticked. ;-)

Also just for information - You don't have to put the type after the variable name when you use the variable, for eg Return v:TVentana is the same as Return v = less typing with the same result.