[Gambas-user] Issue 291 in gambas: The Error.Propagate method doesn't work

gambas at ...2524... gambas at ...2524...
Sat Jul 28 15:43:04 CEST 2012


Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any  
Desktop-Any GUI-Any

New issue 291 by svit... at ...626...: The Error.Propagate method doesn't work
http://code.google.com/p/gambas/issues/detail?id=291

1) Describe the problem.
Problems using the "Error.Propagate" method:
* memory leaks
* loss of information about the error

2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
Version: TRUNK
Revision: r4996
Operating system: Linux
Distribution: any
Architecture: x86
GUI component: none
Desktop used: none

3) Provide a little project that reproduces the bug or the crash.
Code(see attachment):
Public Sub Main()

   Try test
   Error Error.Text; " at "; Error.Where
End

Sub test()

   raise_err()

   Catch
     Error Error.Text; " at "; Error.Where
     Error.Propagate
End

Sub raise_err()

   Error.Raise("E")

End

4) If your project needs a database, try to provide it, or part of it.
none

5) Explain clearly how to reproduce the bug or the crash.
Run the test project.
Output:
E at MMain.raise_err.20
  at
gbx3: warning: 2 allocation(s) non freed.



Attachments:
	bug-error-propagate-0.0.1.tar.gz  4.4 KB





More information about the User mailing list