FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour I am jammed...
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
I am jammed...
Posted: Wed Jul 22, 2009 08:52 AM

what's wrong?

Here's the problem

Incredible! :twisted:

test001.prg

INCLUDE "FIVEWIN.CH"

FUNCTION MAIN()

LOCAL oDlg

DEFINE DIALOG oDlg RESOURCE "dialog_1"

ACTIVATE DIALOG oDlg

RETURN NIL

test001.rc
/************

test001.rc

produced by Borland Resource Workshop

***********/

DIALOG_1 DIALOG 59, 45, 279, 323
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Esporta Excel"
FONT 8, "MS Sans Serif"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
{
CONTROL "OK", 201, "BUTTON", BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 54, 302, 50, 14
CONTROL "Cancel", 202, "BUTTON", BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 114, 302, 50, 14
CONTROL "Help", 203, "BUTTON", BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 174, 302, 50, 14
CONTROL "", 101, "TWBrowse", 0 | WS_CHILD | WS_VISIBLE, 6, 9, 266, 287
}

error.log

Application

Path and name: c:\m2009\test001.exe (32 bits)
Size: 1,399,296 bytes
Time from start: 0 hours 0 mins 0 secs
Error occurred at: 07/22/09, 10:46:58
Error description: Error FiveWin/3 Cannot create Dialog Box:
Resource: dialog_1

Stack Calls

Called from: => CREATEDLGERROR(0)
Called from: DIALOG.PRG => TDIALOG:ACTIVATE(0)
Called from: test001.prg => MAIN(9)

System

CPU type: Intel(R) Pentium(R) 4 CPU 2.40GHz 2400 Mhz
Hardware memory: 992 megs

Free System resources: 90 %
GDI resources: 90 %
User resources: 90 %

Compiler version: xHarbour build 0.99.61 Intl. (SimpLex)
Windows version: 5.1, Build 2600 Service Pack 3

Windows total applications running: 0

Variables in use

Procedure Type Value
==========================
CREATEDLGERROR
Param 1: O Class: TDIALOG
Local 1: C "dialog_1"
Local 2: C " "
TDIALOG:ACTIVATE
Param 1: U
Param 2: U
Param 3: U
Param 4: L .F.
Param 5: U
Param 6: L .T.
Param 7: U
Param 8: U
Param 9: U
Param 10: L .F.
Local 1: O Class: TDIALOG
Local 2: N 0
Local 3: U
Local 4: U
MAIN
Local 1: O Class: TDIALOG

Linked RDDs

DBF
DBFFPT
DBFNTX
DBFBLOB

DataBases in use

Classes in use:

 1 HBCLASS
 2 HBOBJECT
 3 TWINDOW
 4 TDIALOG
 5 TBRUSH
 6 ERROR
 7 TREG32

Memory Analysis

  131 Static variables

Dynamic memory consume:
Actual Value: 0 bytes
Highest Value: 0 bytes

Marco Boschi
info@marcoboschi.it
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: I am jammed...
Posted: Wed Jul 22, 2009 09:13 AM

Another test:
If I remove from RC this object
CONTROL "", 101, "TWBrowse", 0 | WS_CHILD | WS_VISIBLE, 6, 9, 266, 287
It works!

What happens?

Marco Boschi
info@marcoboschi.it
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: I am jammed...
Posted: Wed Jul 22, 2009 09:26 AM

I think it's likely that if you have a custom control in a resource you'd need to define and use it. Similar situation happened to me in the past when I was testing Xbrowse.

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: I am jammed...
Posted: Wed Jul 22, 2009 09:33 AM

This morning this problem appears in a real project.
The error is present in a real project and in this little sample too
I have a lot of dialogs full of TWBrowse objects.
In the same project other dialogs containing "TWBrowse" objects work fine.
This morning something has changed compared to yesterday.

Marco Boschi
info@marcoboschi.it
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: I am jammed...
Posted: Wed Jul 22, 2009 09:48 AM
hua wrote:I think it's likely that if you have a custom control in a resource you'd need to define and use it.


I confirm. You have to REDEFINE the browse.

EMG
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: I am jammed...
Posted: Wed Jul 22, 2009 09:56 AM

hua and Enrico,

Thanks very much!

too many "wild" copy and paste!

Marco Boschi
info@marcoboschi.it
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: I am jammed...
Posted: Wed Jul 22, 2009 12:36 PM

For user defined controls, like TXBrowse, TWBrowse, etc. it is a must to REDEFINE them, or Windows will not know how to create them.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: I am jammed...
Posted: Wed Jul 22, 2009 02:04 PM
I don't understand, why it works in my applications.
Sometimes I use 6 ore more xBrowser in one Dialog or Folder.
Because during testing, I'm not surely how they will work. I add them step by step.
Starting the Application, there is just a white frame, where the Browser will be.
I never got a Error, working this way.
Can it be still another reason ?



Best Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: I am jammed...
Posted: Wed Jul 22, 2009 02:56 PM

I often use two or three browses, inter-related, in a dialog with no problem.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: I am jammed...
Posted: Wed Jul 22, 2009 08:44 PM

Uwe,

Once the user defined class has been registered, then Windows can create the dialogs even if the controls are not redefined

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: I am jammed...
Posted: Fri Jul 24, 2009 04:58 PM

Also to me there is this error but only I use olbx ( wbrowse)
If I not define the xbrowse it not make error
perhaps there is a bug or limitation of this class ( wbrowse)

Best Regards, Saludos



Falconi Silvio

Continue the discussion