jaPBe for PB 3.91 Beta

Developed or developing a new product in PureBasic? Tell the world about it.
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

It is not SQLite... Total mystery as it works every time now..

Craaaaaazy gremlins!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6175
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

well, karbon, can't help but notice there's only one constant in the equation... you :-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
GPI
PureBasic Expert
PureBasic Expert
Posts: 1400
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

El_Choni wrote:Weird thing is that you don't have this problem with the PB IDE, as you say.
The second weird thing is, that i know only two persons with the problem...

The fake-linker only "grabs" command-string from the pbcompiler and give it to the real linker with the additional resources...

And the resources are created with porc, so that can't be the problem.

btw: Can i have a small example-code, which make the problem (and which userlibraries i need to reproduce).

caos.kin@freenet.de

GPI

p.s.: Reinstall doesn't help?
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

I compiled the problem project once with onError support and handler code - it compiled with no error. After that I took away the OnError support from the compile and commented out the error handling code and since then it's compiled clean every single time. I didn't change anything other than that and kept all the userlibs..

This is the error handling code :

Code: Select all

ErrorInfo:
   
  ErrorNumber.l = GetErrorNumber()
  ErrorDescription.s = GetErrorDescription()
  ErrorModule.s = GetErrorModuleName()
  ErrorLineNumber.l =GetErrorLineNR()
   
  If OpenFile(0, FileName)
    WriteStringN("Error Number: " + Str(ErrorNumber))
    WriteStringN("Module:  " + ErrorModule)
    WriteStringN("Description:  " + ErrorDescription)
    WriteStringN("Line Number:  " + Str(ErrorLineNumber))
    CloseFile(0)
   EndIf
   
   ClearError()
So nothing fancy.. I also checked "enable OnError lines support" in compiler options..

Blue: Like I said on IRC the other day - when in doubt it's almost always user error... I fixed the problem, damned if I don't how though!

Anyway.. GPI, I can't send you any code to reproduce the problem because it only happened with the one project.. All is well now..
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
GPI
PureBasic Expert
PureBasic Expert
Posts: 1400
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

Karbon wrote:Anyway.. GPI, I can't send you any code to reproduce the problem because it only happened with the one project.. All is well now..
It would be nice, when you can reproduce this bug. It is possible that you found a very tricky bug in PB (or in jaPBe; jaPBe creates a extended "header", but nothing really illegal).

It would be very usefull, to search now. Maybe the problem comes back and then you don't found a "workaround".
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

Just got something a bit crazy...

A window popped up with this in it :
/OUT:"PureBasic73021140.exe" | /ENTRY:start | Start.o | /SUBSYSTEM:Windows | /LIBPATH:"..\PureLibraries\Windows\Libraries" | PureBasic.obj | SystemBase.lib | CRTDLL.lib | KERNEL32.lib | USER32.lib | GDI32.lib | COMDLG32.lib | ADVAPI32.lib | COMCTL32.lib | 1.lib | 2.lib | 3.lib | 4.lib | 5.lib | 6.lib | 7.lib | 8.lib | 9.lib | 10.obj | 11.lib | 12.lib | 13.lib | 14.lib | 15.obj | 15D.obj | 16.obj | 16D.obj | 17.obj | 17D.obj | 18.lib | 19.obj | 20.obj | 21.lib | 22.lib | 23.lib | 24.lib | 25.lib | 26.lib | 27.lib | 28.lib | 29.lib | 30.lib | 31.lib | 32.lib | 33.lib | 34.lib | 35.lib | 36.obj | ..\Debugger\Debugger.obj | KERNEL32.LIB | USER32.LIB | GDI32.LIB | COMCTL32.LIB | JCALG1.LIB | OLEAUT32.LIB | OLE32.LIB | SHELL32.LIB | ADVAPI32.LIB | COMDLG32.LIB | URLMON.LIB | WININET.LIB | |
Before Link
len:674
/OUT:"PureBasic73021140.exe" /ENTRY:start Start.o /SUBSYSTEM:Windows /LIBPATH:"
..\PureLibraries\Windows\Libraries" PureBasic.obj SystemBase.lib CRTDLL.lib KER
NEL32.lib USER32.lib GDI32.lib COMDLG32.lib ADVAPI32.lib COMCTL32.lib 1.lib 2.l
ib 3.lib 4.lib 5.lib 6.lib 7.lib 8.lib 9.lib 10.obj 11.lib 12.lib 13.lib 14.lib
15.obj 15D.obj 16.obj 16D.obj 17.obj 17D.obj 18.lib 19.obj 20.obj 21.lib 22.li
b 23.lib 24.lib 25.lib 26.lib 27.lib 28.lib 29.lib 30.lib 31.lib 32.lib 33.lib
34.lib 35.lib 36.obj ..\Debugger\Debugger.obj KERNEL32.LIB USER32.LIB GDI32.LIB
COMCTL32.LIB JCALG1.LIB OLEAUT32.LIB OLE32.LIB SHELL32.LIB ADVAPI32.LIB COMDLG
32.LIB URLMON.LIB WININET.LIB _jaPBe_0.res
and I started getting that damned linker error again! :-)
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
GPI
PureBasic Expert
PureBasic Expert
Posts: 1400
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

Karbon wrote:A window popped up with this in it :
This is a debug-Screen of my fakelinker. Hold shift during compiling and this window will appear.

Maybe something on your system is wrong. Maybe a virus? Maybe not... A german has the same problem and he doesn't found one...
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

I thought about that too - I've run 3 virus scanners... Crazy..
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

Just did a total reinstall of jaPBE and PureBasic - it worked for about 15 minutes and 3-4 builds then I started getting the error message again. I spent 3 hours running AdAware, Spybot Search & Destroy, Norton AV, Anti Vir and they all came up empty handed. It's a brand new install of XP Pro with all the available patches..

*sigh*
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

Icons. Maybe it has something to do with it?

Seems to always succeed when I don't add an icon and only sometimes succeed with one..
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
GPI
PureBasic Expert
PureBasic Expert
Posts: 1400
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

Karbon wrote:Icons. Maybe it has something to do with it?

Seems to always succeed when I don't add an icon and only sometimes succeed with one..
It is possible. Can i have the icon and the complete path of the icon?
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

Sure..

http://www.ksoftware.net/kbilling.ico

And the path is C:\Documents and Settings\Mitch\Desktop\kbilling\KBilling\kbilling.ico
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
GPI
PureBasic Expert
PureBasic Expert
Posts: 1400
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

Karbon wrote:Sure..

http://www.ksoftware.net/kbilling.ico

And the path is C:\Documents and Settings\Mitch\Desktop\kbilling\KBilling\kbilling.ico
...
No problems here... I think, that i need a code with the error....
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

I can't send you the full source code, I'm sorry.

jaPBE will work fine for a few compiles and then start displaying the error so try it a few times to make sure..

I will try to write some new code that shows this problem but I've been compiling fine with jaPBE since I stopped using icons! :-)
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Could these problems be, because of the new compiler feature that includes the xp-manifest by default?
Post Reply