Oxygen Basic

Programming => Problems & Solutions => Topic started by: Aurel on June 06, 2013, 05:45:39 AM

Title: F problem
Post by: Aurel on June 06, 2013, 05:45:39 AM
Hi Charles
I am not sure is this a bug or some sort of random generated sign ::)

Code: [Select]
'print args...if is empty then compiler trow F ???
SendMessage edit1,WM_SETTEXT,0,strPtr args

As you see if string args is empty then compiler add sign F to control.
if is filled with string everything works normal..
Do you can confirm this ?

all best..
Aurel
Title: Re: F problem
Post by: Charles Pegge on June 06, 2013, 11:37:38 AM
I think you need to pass a defined string of some sort, even if it is an empty string ""
Title: Re: F problem
Post by: Aurel on June 06, 2013, 12:34:44 PM
Charles ..
it is defined as usual
string args
and this was heapend inside subroutine..
it is little bit strange ,right?
Title: Re: F problem
Post by: Charles Pegge on June 08, 2013, 11:38:37 AM
Yes, it looks like some form of string corruption. I use stptr extensively without problems