Page 1 of 1

[DONE] Mysterious crash

Posted: Sat Mar 29, 2008 8:05 am
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

Posted: Sat Mar 29, 2008 6:08 pm
by ABBKlaus
It´s not crashing here :shock: using PB4.10 / PB4.20B2
Are you using the correct subsystem ?

Posted: Sat Mar 29, 2008 6:53 pm
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.

Posted: Sat Mar 29, 2008 7:35 pm
by ABBKlaus
It´s hard to say anything without seeing some code.
What error code do you get ?

Posted: Sun Mar 30, 2008 1:54 am
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