Author Topic: F problem  (Read 1865 times)

0 Members and 2 Guests are viewing this topic.

Aurel

  • Guest
F problem
« 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

Charles Pegge

  • Guest
Re: F problem
« Reply #1 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 ""

Aurel

  • Guest
Re: F problem
« Reply #2 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?

Charles Pegge

  • Guest
Re: F problem
« Reply #3 on: June 08, 2013, 11:38:37 AM »
Yes, it looks like some form of string corruption. I use stptr extensively without problems