-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error handling #17
Comments
@Ariel-MN we're wrapping types and event handlers step-by-step. Can you provide all those types/events you're not able to use? |
So far I have only found the one I have described. The expected error "DelphiVCL4Python Lib is not compatible with the TNumberBox component" is not displayed. |
The TNumberBox will be available in our next release. I will let you know when it is done. |
It would certainly be great, although I opened this Issue to report the absence of an error message that made me lose an hour to understand. I think this error message is quite important for those who build the GUI from Delphi and inadvertently use components that are not included in this library yet. |
Are you releasing the console? The delphivcl is a dll, it will not raise the exception. You can use the console, instead. |
I am using cmd with command >> python MainForm.py |
Is there a FreeConsole() command before the Application main loop (Application.Run())? e.g.:
If does, try to remove that code and run your script again. You will be able to catch the error log on the console. |
I did it just like that, it seems errors due to non-existing components in the library are not caught. |
@Ariel-MN I'm introducing a new error handling regarding Delphi run-time. I'm still running some tests, but I hope to get it working in our next release. |
Releasing a patch to Error handling #17
I confirm, now the name of the unrecognized classes is displayed in a console error. And as a bonus the TNumberBox component was added to the library. Thank you very much for the effort! |
Thank you for confirming that it works. |
There are still some Delphi components that are not supported in the Python export, such as Windows10 -> TNumberBox, if any of these components are present in the exported unit, the application does not run or trigger any errors. It would be helpful to have the cause to quickly identify the problem.
The text was updated successfully, but these errors were encountered: