CodeCaddy v2.08x

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: CodeCaddy v1.80x build 792 12.03.10 save 8350

Post by blueznl »

Interesting, what OS are you on?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
DoubleDutch
Addict
Addict
Posts: 3219
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: CodeCaddy v1.80x build 792 12.03.10 save 8350

Post by DoubleDutch »

Windows 7 x64.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: CodeCaddy v1.80x build 792 12.03.10 save 8350

Post by blueznl »

... which I do not run... Hmmm... I can do a little test on Vista and Vista 64 though under a VM. Do you have the problem when using Aero, or also when using the classic GUI?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
DoubleDutch
Addict
Addict
Posts: 3219
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: CodeCaddy v1.80x build 792 12.03.10 save 8350

Post by DoubleDutch »

Problem when using Aero, not tried with classic.
I
In the thinner dialog I see the top line saying 'Thinning...esktop\projects\Elementary ' then it goes to the next line (there is a space in the path name), but only the top of pixel of the font is shown. There is nothing below it at all.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: CodeCaddy v1.80x build 792 12.03.10 save 8350

Post by blueznl »

I've tried it running on Windows Vista 64 inside a VM. I can see the text being malformed, but on Vista 64 inside the VM the progress bar simply shows up. Hmmm... I seem to vaguely recall there were some issues with the progress bar on Windows 7...
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: CodeCaddy v1.80x build 792 12.03.10 save 8350

Post by blueznl »

Could anyone running Vista or Windows 7 with 'aero' enabled try the latest version of CodeCaddy, and especially try the 'thinner' tool or 'codesync'. There seems to be something wrong with Vista / Windows 7 and the ProgressBarGadget.

Latest version of CodeCaddy is now 1.89x, and it just might :-) now support unc paths (as in \\serv1\shared\ etc.).
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
DoubleDutch
Addict
Addict
Posts: 3219
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: CodeCaddy v1.80x build 792 12.03.10 save 8350

Post by DoubleDutch »

Tried it again on Win 7 - the corrupted text has gone (now it ends in ...) - but still no progressbar.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: CodeCaddy v1.80x build 792 12.03.10 save 8350

Post by blueznl »

Could you please tell me if you can see the bar with Aero off?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
DoubleDutch
Addict
Addict
Posts: 3219
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: CodeCaddy v1.80x build 792 12.03.10 save 8350

Post by DoubleDutch »

Ahh - I think I know whats happened...

I tried a different executable and I see the bar! Aero on or off.

My program is 38,000 lines long and it appears to crash CodeCaddy BEFORE the progress bar is displayed ( just thought it was because it was a big program). If you output messages at each stage, I'll send you the log.

btw on the other program (the one that does display the progress bar), once its gone through the thinner process PB reports that TidySchool is missing, but it is there and it is called from the main program. Here is the calling line:

Code: Select all

SetGadgetText(#p1SchoolName,TidySchool(s2$,s3$,s4$,s5$,s6$))
Here is the procedure:

Code: Select all

Procedure.s TidySchool(school$,addr1$,addr2$,addr3$,addr4$)
	result$=Trim(school$)
	addr1$=Trim(LCase(addr1$))
	addr2$=Trim(LCase(addr2$))
	addr3$=Trim(LCase(addr3$))
	addr4$=Trim(LCase(addr4$))
	If Right(result$,1)="." Or Right(result$,1)=","
		result$=Trim(Left(result$,Len(result$)-1))
	EndIf
	If Right(LCase(result$),Len(addr4$))=addr4$
		result$=Trim(Left(result$,Len(result$)-Len(addr4$)))
	EndIf
	If Right(result$,1)="." Or Right(result$,1)=","
		result$=Trim(Left(result$,Len(result$)-1))
	EndIf
	If Right(LCase(result$),Len(addr3$))=addr5$
		result$=Trim(Left(result$,Len(result$)-Len(addr3$)))
	EndIf
	If Right(result$,1)="." Or Right(result$,1)=","
		result$=Trim(Left(result$,Len(result$)-1))
	EndIf
	If Right(LCase(result$),Len(addr2$))=addr2$
		result$=Trim(Left(result$,Len(result$)-Len(addr2$)))
	EndIf
	If Right(result$,1)="." Or Right(result$,1)=","
		result$=Trim(Left(result$,Len(result$)-1))
	EndIf
	If Right(LCase(result$),Len(addr1$))=addr1$
		result$=Trim(Left(result$,Len(result$)-Len(addr1$)))
	EndIf
	If Right(result$,1)="." Or Right(result$,1)=","
		result$=Trim(Left(result$,Len(result$)-1))
	EndIf
	school$=result$
	
	If Left(LCase(result$),Len(addr1$))=addr1$
		result$=Trim(Mid(result$,Len(addr1$)+1))
	EndIf
	If Left(LCase(result$),Len(addr2$))=addr2$
		result$=Trim(Mid(result$,Len(addr2$)+1))
	EndIf
	If Left(LCase(result$),Len(addr3$))=addr3$
		result$=Trim(Mid(result$,Len(addr3$)+1))
	EndIf
	If Left(LCase(result$),Len(addr4$))=addr4$
		result$=Trim(Mid(result$,Len(addr4$)+1))
	EndIf
	revert=#False
	If LCase(Left(result$,4))="and "
		result$=school$
	EndIf
	If Left(result$,1)="." Or Left(result$,1)=","
		result$=Trim(Mid(result$,2))
	EndIf
	Select LCase(result$)
		Case	"church of england primary school":revert=#True
		Case	"cofe primary school":revert=#True
		Case	"catholic primary school":revert=#True
		Case	"infants' school":revert=#True
		Case	"infants school":revert=#True
		Case	"infant school":revert=#True
		Case	"community primary school":revert=#True
		Case	"primary school":revert=#True
		Case	"school":revert=#True
		Case	"primary":revert=#True
		Case	"catholic secondary school":revert=#True
		Case	"church of england secondary school":revert=#True
		Case	"cofe secondary school":revert=#True
		Case	"community secondary school":revert=#True
		Case	"secondary school":revert=#True
		Case	"secondary":revert=#True
	EndSelect
	If revert
		result$=school$
	EndIf
	ProcedureReturn result$
EndProcedure
Don't laugh at the code, it's just a hack! lol.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: CodeCaddy v1.80x build 792 12.03.10 save 8350

Post by blueznl »

Which version are you using? I fixed a 'procedure names in capitals' related error...
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
DoubleDutch
Addict
Addict
Posts: 3219
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: CodeCaddy v1.80x build 792 12.03.10 save 8350

Post by DoubleDutch »

V 1.89x b 824 18.03.10 save 8425
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: CodeCaddy v1.80x build 792 12.03.10 save 8350

Post by blueznl »

Simply adding logging isn't going to fix this, there's 38000 places where it could go wrong... got to help me a little more here so I can help you, preferably a file that breaks things. No need for it to run or do actually anything, as long as it compiles fine without CodeCaddy. Most likely I've missed the use of a procedure, but I need to know where things went wrong.

Call to all: if you have big useless source code give it to me so I can test it :-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
DoubleDutch
Addict
Addict
Posts: 3219
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: CodeCaddy v1.80x build 792 12.03.10 save 8350

Post by DoubleDutch »

I mean it locks up on this 38,000 line program when thinning is turned on. If you add some kind of debug output then I'll let you know the last message before the lockup.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: CodeCaddy v1.80x build 792 12.03.10 save 8350

Post by blueznl »

Well, the best thing would be to give me the code that causes the troubles, but it's probably something you're unwilling to do.

Here's how you might help me, by answering these questions and trying these things:

1. do you have empty lines before and after your procedures?
2. do you have mixed case in your procedure names? (if so, try to make them all lower case and see what happens)
3. what's the total number of lines of the main and all includes?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
DoubleDutch
Addict
Addict
Posts: 3219
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: CodeCaddy v1.80x build 792 12.03.10 save 8350

Post by DoubleDutch »

1. yes
2. yes, 38,000 lines is a bit too much to start doing that. ;)
3. 61285
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
Post Reply