Page 1 of 2

error when I minimize a window and then maximized

Posted: Thu Dec 27, 2012 11:12 am
by digitsoft
Hi Roger
I have this error when I minimize a window and then maximized
having a browse with database

Paulino Nolberto
Regards

Re: error when I minimize a window and then maximized

Posted: Thu Dec 27, 2012 11:29 am
by rdonnay
I see that the error states that the alias does not exist as though the database has been closed.

Click on DOT in the error window to open a dot prompt and then observe if the database has been closed.

Re: error when I minimize a window and then maximized

Posted: Thu Dec 27, 2012 11:42 am
by digitsoft
Hi Roger
Not because the database are closing, if I give the error will break the database and re-run

Re: error when I minimize a window and then maximized

Posted: Fri Dec 28, 2012 10:05 am
by digitsoft
Hi Roger
Look at these two screen that send

Screen 1 has a Thread: 5 and presents all dbf and Screen 2 maximized when I minimize and then switches to Thread: 1 and does not have the dbf

Thread is like change at some point

Paulino Nolberto
Regards

Re: error when I minimize a window and then maximized

Posted: Sat Dec 29, 2012 11:47 am
by rdonnay
This appears to be a problem with threads.

It looks like your window and databases are opened in thread 5 but when your window is minimized and then normalized again, the thread is now thread 1.

Is there a sample program you can give me that displays this behavior?
I will need to be able to compile and run.

Re: error when I minimize a window and then maximized

Posted: Wed Jan 02, 2013 5:13 am
by digitsoft
Hi Roger
The difference is when I put the bitmap in the bottom of the screen, I think that's what creates the problem.


Paulino Nolberto
Kind regards.

Re: error when I minimize a window and then maximized

Posted: Thu Jan 24, 2013 6:24 am
by digitsoft
Hi Roger
The problem is this creating this function to change the Bitmap
the bottom of the screen

STATIC FUNCTION ChangeBitmap (oDlg)
DC_PointerWait ()
if VALTYPE (oDlg) = "O"
oDlg: options: = XBP_IMAGE_SCALED
oDlg: SizeRedraw: =. T.
oDlg: bitmap: = DC_GetBitmap (cFondoEmpresa)
oDlg: configure (): InvalidateRect ()
End If
DC_PointerArrow
return ()

I can have another solution?

Paulino Nolberto
Regards

Re: error when I minimize a window and then maximized

Posted: Thu Jan 24, 2013 7:27 am
by rdonnay
My guess is that the problem is related to oDlg:configure().

There may be no solution.

Why are you changing the bitmap?

Also, what is the class name of oDlg? It is not an XbpDialog class. Is it a ::DrawingArea ?
There is no :bitmap iVar in the XbpDialog class. I am assuming that it is the drawingArea which is an XbpIWindow class.

Re: error when I minimize a window and then maximized

Posted: Thu Jan 24, 2013 8:10 am
by digitsoft
Why are you changing the bitmap?

the name of oDlg is: DrawingArea
and I just want to paint on a Bitmap screen

Re: error when I minimize a window and then maximized

Posted: Thu Jan 24, 2013 8:16 am
by rdonnay
If you remove the :configure(), does the error go away?