Hi Folks
Environment : PB 2022 R3 64 bit
Here is the sample code snippet where the application crashed in 64 bit but not in the 32 bit
but if I change the variable type Long to LongPtr or LongLong , the application does not crash.
confusion is that what to use and why ? either LongPtr or LongLong
as Sometimes message.longparm is used to pass a number (which in theory could also be negative), and sometimes a memory address of a string.
Sample code
event ue_select;long ll_wordparm, ll_longparm
ll_wordparm = message.wordparm
ll_longparm = message.longparm
String is_title =String(ll_longparm, "address")
end event
Debugger values in 64 bit environment when message.longparm passed as a reference (memory address of a string)
The Appeon docs say message.longparm = Long
but the debugger reveals it as LongPtr.
what should be the variable ll_longparm like ? longptr or LongLong ?
Thanks