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.
Only as remark: PB 6.10b6 with debugger fails
Re: Only as remark: PB 6.10b6 with debugger fails
You might need to update your static lib (compile them with VS 2022)
Re: Only as remark: PB 6.10b6 with debugger fails
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.
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
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)
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
Have you tried to retarget the VS build? the ucrt was added vs2015 so both builds of PJSIP are prior to that if it failsinfratec 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)
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
Ok, compiled the lib with VS2022 it works, but ...
my 'small' test programm stops at the second command with:
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.
my 'small' test programm stops at the second command with:
Compiled with PB 6.10b6 x86 asm backend.error: Overflow in the global datablock
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
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
You'd think it'd be plain sailing with same crt but no always something to drive you crazy.

