Originally Posted by
lunapark
IAfter a return in different versions, it turns out that the function described as falling under a widestring is in fact a boolean, we find the same line in the address.lua of Primo where it is less complicated to display a simple dialogue
sc_InfoMessageBox(type(MODEL.address.search.support_streetsearch_in_state(AddressSearchResult.selectedCountry)),1)
returns a boolean type as expected, so no modification needs to be made at this level
You are (again) 100% right. There is some corruption in the LUA code that changes the country string (pointer) by one byte.
Code:
Please Login or Register to see the links
works.
Code:
Please Login or Register to see the links
crashes (real crash).
Now I need to find why the address that is correct right before the function containing the code gets increased by one byte. I already solved a similar issue whether a function was missing a "self" argument.
These are probably delicate locations where LUA code calls C-code.
Will get there ... eventually. Thanks for all the help and the tip on sc_InfoMessageBox (very useful).
Bookmarks