>Hi All ---
>
>Strange one here. I have an application with a main.prg that has:
>
>PUBLIC oApp
>oApp=NEWOBJECT("appclass","myclasslib")
Well... I don't have ALL your code here... but, where is your read events? It seems to me like you never complete creating 'AppClass' so control is never returned to the above line to assign oApp with an object reference. Try this...
PUBLIC oApp
oApp = NEWOBJECT("appclass","myclasslib")
* DO NOT CREATE YOU LAUNCHER FORM IN THE INIT OF YOUR APPCLASS!!! CONTROL HAS TO RETURN HERE. THEN DO...
oApp.NewObject("launcher","blahlib")
read events
OR...
oApp.Do() && in the DO create your launcher and then call read events.
***********
I am assuming here you have read events in your oApp's init or your Launcher Form Init... so, as I said before, control never returns to your oApp = line.
BOb
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only