Page 1 of 1

Only as remark: PB 6.10b6 with debugger fails

Posted: Sat Feb 17, 2024 1:07 pm
by infratec
I have a large program with external C static lib.

With 6.04 everything went fine.

With 6.10b6 I was first not able to compile it. I need some additional Import "" files.
Then the compiler errors were gone, but ...

With debugger on the program crashes immediately. Not possible to reach a breakpoiint in the first line.
Without debugger the program runs and works normal.

With C backend I get strange error messages.

From 6.04 to 6.10 breaks something.

Has someone similar experiences?

Btw. also the IDE is more instable since 6.xx Once a day or more I need to use the tasmkamager to kill the IDE, because it is no longer responsive.
Sometimes I still can type text in a code, but the menu does nothing and also cut and paste is no longer working.

Re: Only as remark: PB 6.10b6 with debugger fails

Posted: Sat Feb 17, 2024 2:12 pm
by Fred
You might need to update your static lib (compile them with VS 2022)

Re: Only as remark: PB 6.10b6 with debugger fails

Posted: Sun Feb 18, 2024 8:33 pm
by idle
I kind of have the opposite where code only works correctly with the debugger and outputs garbage without the debugger but only on x86.

I also had crash problems because of static libs packing msvcrt, so rebuilt them minus the crt dependencies and they work fine now.

Re: Only as remark: PB 6.10b6 with debugger fails

Posted: Sun Feb 18, 2024 9:59 pm
by infratec
This will be tricky.
It is a large project which uses many snprintf() etc.

2 years ago it tooks 2 weeks to get it working with PB (PJSIP)

Re: Only as remark: PB 6.10b6 with debugger fails

Posted: Sun Feb 18, 2024 10:39 pm
by idle
infratec wrote: Sun Feb 18, 2024 9:59 pm This will be tricky.
It is a large project which uses many snprintf() etc.

2 years ago it tooks 2 weeks to get it working with PB (PJSIP)
Have you tried to retarget the VS build? the ucrt was added vs2015 so both builds of PJSIP are prior to that if it fails
you can read here to see the specific changes https://learn.microsoft.com/en-us/cpp/p ... 170#BK_CRT

or you can try adding the crt dependencies to the archive like msvcrt.lib, libcmt, libvcruntime...

Re: Only as remark: PB 6.10b6 with debugger fails

Posted: Wed Feb 21, 2024 9:22 am
by infratec
Ok, compiled the lib with VS2022 it works, but ...

my 'small' test programm stops at the second command with:
error: Overflow in the global datablock
Compiled with PB 6.10b6 x86 asm backend.
It works with C backend.

Now the strange thing:
In my big program it runs with asm backend without problems.

Such things drive me crazy.

Re: Only as remark: PB 6.10b6 with debugger fails

Posted: Wed Feb 21, 2024 9:33 am
by Fred
You bet, I experienced these kind of issues a lot of time and it's annoying as hell and hard to spot the real culprit.

Re: Only as remark: PB 6.10b6 with debugger fails

Posted: Wed Feb 21, 2024 10:37 am
by idle
You'd think it'd be plain sailing with same crt but no always something to drive you crazy.