[BUG-640b2] Code crashes with IDE compile but not command line?

Post bugreports for the Windows version here
User avatar
skywalk
Addict
Addict
Posts: 4320
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

[BUG-640b2] Code crashes with IDE compile but not command line?

Post by skywalk »

Ok, the v640 plot thickens.
While shrinking 1 of my apps(35k LOC) to PM to Fred, I found that command line compiles for both v630 and v640b1 actually work.
But all v640alphas through v640b1 IDE compiles crash hard.

If I try to compile these settings from the v640b1 IDE, I crash.
C:\purebasic-x64-640b1\compilers\pbcompilerc -c -z -t "C:\dev-640\myapp\myapp.pbi" /DYNAMICCPU /XP /UCRT /ICON "C:\dev-640\myapp\img\myapp-32x32.ico" -o "c:\dev-640\myapp\myapp-x64v640b1.exe"

These same settings work in IDE v630.
C:\purebasic-x64-630\compilers\pbcompilerc -c -z -t "C:\dev-640\myapp\myapp.pbi" /DYNAMICCPU /XP /UCRT /ICON "C:\dev-640\myapp\img\myapp-32x32.ico" -o "c:\dev-640\myapp\myapp-x64v630.exe"

I will send Fred the code today after confirming what I'm seeing now.
Last edited by skywalk on Thu Mar 12, 2026 10:20 pm, edited 1 time in total.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
skywalk
Addict
Addict
Posts: 4320
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: [BUG-640b2] Crash with IDE compile but not command line?

Post by skywalk »

Ok, tried v640b2 and my app gets a little further but ultimately IMA crashes at a later line on a Space(my$) call.

Code: Select all

       r$ = Space(8) + "  1234               "
       vtfw = 2 * wmid\WR_mm - VectorTextWidth(r$) + VectorTextWidth(Space(10)) ;<-- IMA
Fred has the source code.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Quin
Addict
Addict
Posts: 1165
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: [BUG-640b1] Crash with IDE compile but not command line?

Post by Quin »

Can reproduce this on 6.40 B1 and B2 on Windows, with any app at all. Trying to run this or compile it to an executable hard crashes the IDE on Windows 11.

Code: Select all

OpenWindow(0, #PB_Ignore, #PB_Ignore, #PB_Ignore, #PB_Ignore, "Accessware")
Repeat
Until WaitWindowEvent(1) = #PB_Event_CloseWindow
Should I open another report for this? It sounds like the same bug, although I'm unsure why it would just be your app.
User avatar
skywalk
Addict
Addict
Posts: 4320
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: [BUG-640b1] Code crash with IDE compile but not command line?

Post by skywalk »

I think you posted in the wrong thread?

I'll rename this for clarity.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Quin
Addict
Addict
Posts: 1165
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: [BUG-640b2] Code crashes with IDE compile but not command line?

Post by Quin »

Err...what?
Your thread talks about the IDE crashing when you compile/run your app. Same bug here.
Post Reply