tryphotino / photino.NET

https://tryphotino.io
Apache License 2.0
833 stars 68 forks source link

Photino window is completely blank when the entrypoint (i.e. Main) method is defined as an async method that returns a 'Task' object #180

Closed Arc8ne closed 2 months ago

Arc8ne commented 2 months ago

When the 'Program.Main' method (i.e. the entrypoint method) is defined as an async method that returns a Task object, the opened Photino window is completely blank (i.e. completely white) with no HTML being rendered to it despite waiting for a long time.

philippjbauer commented 2 months ago

Another user seems to have found a way to get the "async Main scenario" working. See https://github.com/tryphotino/photino.NET/issues/52#issuecomment-2074325176

Please let us know if it works for you as well

Arc8ne commented 2 months ago

Hi, thanks for the response and for the linked workaround, however, I have already found and made use of a different method to get the said scenario working, the said method was found in this StackOverflow answer: https://stackoverflow.com/a/9212343 and seems to be working for my current use case (i.e. this issue no longer occurs when making use of the said method).