[DONE] Mysterious crash

TailBite specific forum

Moderators: gnozal, ABBKlaus, lexvictory

Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

[DONE] Mysterious crash

Post by Mistrel »

I have a mysterious crash being caused by something identical to this but I cannot reproduce on a small scale.

This is basically what's happening: if I use a macro instead of a procedure for ProcA or if I just include the line instead of using ProcA everything is fine. But it crashes every time I use Str() inside of a procedure like this.

I can't use a macro in this case because I need ProcA to return a value.

ABBKlaus, would you be so kind as to inspect the ASM and tell me if there is anything suspicious at work here? The code should be compiled to a threadsafe Tailbite library to produce the effect (in theory, at least).

Code: Select all

Procedure ProcA()
	String.s=Str(12) ; can be any number
EndProcedure

ProcedureDLL ProcB()
	ProcA()
EndProcedure
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post by ABBKlaus »

It´s not crashing here :shock: using PB4.10 / PB4.20B2
Are you using the correct subsystem ?
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

Yes, I understand that it's not crashing. This is exactly what's making it crash in a large Tailbite library I have but I cannot reproduce it outside of this library.

I thought maybe you could spot something in the ASM. :?

I'm using PB 4.10.
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post by ABBKlaus »

It´s hard to say anything without seeing some code.
What error code do you get ?
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

I've finally found it. It ended up being a PureBasic not a Tailbite bug. I was triggering it from within a Tailbite library, which was the source of confusion.

http://www.purebasic.fr/english/viewtop ... 239#238239
Post Reply