Thanks Bernie, these releases are still confusing for me.

Peter Boyle
paboyle1703@...



On Mar 31, 2017, at 11:52, Bernie <bernie.fblist@...> wrote:


Peter wrote:


Running my drafting program I’m having a problem of the program terminating after this function, If I bypass the function the program is fine and Quits in the normal manner, but obviously I need this data so it can be used for producing a bill of material. 
I might point out that the data is correctly saved before the crash and can be used to produce the said BOM, so possibly it is not this function, although as said before bypassing the function stops the premature termination.

FileName = FILES$(_CFURLRefSave,"Save Billing Info",FileName,fileRef)
if LEN(FileName)

//…..

END IF
CFRelease(fileRef)


Unlikely to be the cause of your crash but just wanted to point out that if the save dialog is cancelled, there’s no url to release so you will most likely get a crash at that point. Move the CFRelease up into the if…end if block.

FileName = FILES$(_CFURLRefSave,"Save Billing Info",FileName,fileRef)
if LEN(FileName)

//…..

CFRelease(fileRef)
END IF




--
To unsubscribe, send ANY message to: futurebasic-unsubscribe@... To access the list archives, go to: http://freegroups.net/groups/futurebasic/




--
To unsubscribe, send ANY message to: futurebasic-unsubscribe@... To access the list archives, go to: http://freegroups.net/groups/futurebasic/