error when I minimize a window and then maximized

This forum is for eXpress++ general support.
Message
Author
User avatar
digitsoft
Posts: 461
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

error when I minimize a window and then maximized

#1 Post by digitsoft »

Hi Roger
I have this error when I minimize a window and then maximized
having a browse with database

Paulino Nolberto
Regards
Attachments
Error eXpress.JPG
Error eXpress.JPG (176.71 KiB) Viewed 15808 times
Nolberto Paulino
Regards

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: error when I minimize a window and then maximized

#2 Post 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.
The eXpress train is coming - and it has more cars.

User avatar
digitsoft
Posts: 461
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: error when I minimize a window and then maximized

#3 Post by digitsoft »

Hi Roger
Not because the database are closing, if I give the error will break the database and re-run
Attachments
eXpress.JPG
eXpress.JPG (132.45 KiB) Viewed 15803 times
Nolberto Paulino
Regards

User avatar
digitsoft
Posts: 461
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: error when I minimize a window and then maximized

#4 Post 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
Attachments
eXpress.JPG
eXpress.JPG (125.33 KiB) Viewed 15784 times
Nolberto Paulino
Regards

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: error when I minimize a window and then maximized

#5 Post 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.
The eXpress train is coming - and it has more cars.

User avatar
digitsoft
Posts: 461
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: error when I minimize a window and then maximized

#6 Post 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.
Nolberto Paulino
Regards

User avatar
digitsoft
Posts: 461
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: error when I minimize a window and then maximized

#7 Post 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
Nolberto Paulino
Regards

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: error when I minimize a window and then maximized

#8 Post 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.
The eXpress train is coming - and it has more cars.

User avatar
digitsoft
Posts: 461
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: error when I minimize a window and then maximized

#9 Post by digitsoft »

Why are you changing the bitmap?

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

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: error when I minimize a window and then maximized

#10 Post by rdonnay »

If you remove the :configure(), does the error go away?
The eXpress train is coming - and it has more cars.

Post Reply