(You can even go one step further and do an automatic UseJPEGImageEncoder() if our sources use SaveImage() with the #PB_ImagePlugin_JPEG flag).

It may be a question of control for the user (us). I know what I want, so I create a console or GUI program.MachineCode wrote:I always wondered why the executable created by PureBasic wouldn't automatically be of console type if the OpenConsole() keyword was used; and why it doesn't create a threadsafe executable when CreateThread() was used. Why do we need to turn these on manually when using these keywords? My suggestion: make them automatic, since the keywords are there and it's obvious that we want the executables to be of that type.
(You can even go one step further and do an automatic UseJPEGImageEncoder() if our sources use SaveImage() with the #PB_ImagePlugin_JPEG flag).
What? Huh? How?MachineCode wrote:I always wondered why the executable created by PureBasic wouldn't automatically be of console type if the OpenConsole() keyword was used; and why it doesn't create a threadsafe executable when CreateThread() was used. Why do we need to turn these on manually when using these keywords? My suggestion: make them automatic, since the keywords are there and it's obvious that we want the executables to be of that type.
(You can even go one step further and do an automatic UseJPEGImageEncoder() if our sources use SaveImage() with the #PB_ImagePlugin_JPEG flag).
I wasn't aware of that possibility. Thanks for pointing it out. Ignore this request, then.freak wrote:inside a DLL you may have no CreateThread() at all and still want thread safety (because the main program uses threads).