View Issue Details

IDProjectCategoryView StatusLast Update
0017265RunnerFunctionsPublic2019-06-24 11:57
ReporterMark AlexanderAssigned ToFritz 
PriorityMediumSeverityC - GeneralReproducibility100%
Status ClosedResolutionFixed 
Product Version 
Target Version2.2.3Fixed in Version2.2.3 
Summary0017265: Functions: Calling buffer_load() with a non-existent file causes an error, instead of returning -1
DescriptionIf you use the file_text_ or file_bin_ functions to laod a file, and the file doesn't exist, the compiler window shows an error message, and the function returns -1.

However if you use -1, you get a fatal error message from the runner:

"Cannot load buffer file!"

I would suggest that this function also logs an error with the compiler and returns -1, as the other functions do.

Also note that the function buffer_load_async WILL return -1 if the file doesn't exist, but it WON'T show any error message in the compiler console nor will it show a fatal error window.
Steps To ReproduceRun the test app.
Press F1, check the console - error, and -1 returned.
Press F2, check the console - error, and -1 returned.
Press F3, note the fatal error (can be ignored).
Press F4, note no error and -1 returned.
TagsBuffer, Runner
1.4 Found In1.4.1522
2.x Runtime Found In
2.x Runtime Verified In9.9.1.1431

Activities

Mark Alexander

2015-02-23 10:01

Developer  

Buffer_load_error.gmz (1,309,232 bytes)