Strange bug

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by GPI.

http://caosandkin.bei.t-online.de/pureb ... ras.ex.zip

please try this:
start charas.ex.exe
Choose the Teddy-body
Then in the menu "file>save char" and save.

Now try to recolor the body (on the right side of the window).
and then exit the programm.

On my Win98SE:
No problems. all work fine.

On WinXP (i don't have this, but it is tested with a Athlon and a Intel P4, so i think the OS is the problem):
Doesn't change the color and after exit the Program, it will crash.

I don't have XP and i don't see a logical error in my code. So i think, that maybe the packer in PB doesn't work right.

Please help.

p.s.: the save and load-Char routines are in the misc.pbi

PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Pupil.

Try with GlobalAlloc_() or AllocateMemory() instead of mem$ = Space(block) for your buffer and see if that helps... Something like this will do:

Code: Select all

adr.l = AllocateMemory(#SomeFreeMemID, block)
If adr
  ; Do your save_char_sub() thing here
  ...
  ; Now free the mem again
  FreeMemory(#SomeFreeMemID)
EndIf
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by plouf.

I have Find this charas some time ago version 1.03.03.11
and notice that has more unstability problems playing a little bit
usually end by a crash om my XP
the specific problem you said cause prob here too
but if load a characted without a "Stes" loaded i have (and had) crashes too

btw nice tool of the entire Charas team :)

Christos
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by GPI.

@Pupil
Thanks, it seems, that this was the problem.
First testers saied, that the problem is solved.

@plouf
>I have Find this charas some time ago version 1.03.03.11
>and notice that has more unstability problems playing a little bit
>usually end by a crash om my XP

The newest Version is 1.3.3.23 :wink:
http://alex.ombra.net/charas/charas_ex.php?lang=en

But if you don't tell me, what exact you have done, i don't can fix it. Maybe i used strings as buffer in the code, i will take a look.

>if load a characted without a "Stes" loaded i have (and had) crashes too

What do you mean? When you load a File as Char, without being a char (for example a exe)? Thats a problem in the PureBasic. Because PureBasic packer-library have no check and will crash, when it is no packing-file.

Btw: I searched person to help import resources...

PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by plouf.

if i load a Character File->LoadCHAR
and later i try to load a Set Sets->Mid
(it must not previously load an Set)
program Collapses

Christos
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by GPI.

And again. Everything works perfekt on win98 :(

Do somebody say again, that winXP is better and stabil...

Ok, i will look. Maybe i used a string again for buffering.

GPI

PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ricardo.

XP professional found this problems:

When try to change the color to orange after a moment (i dont know what i do...) but the teddy was black!!!
I cant get this same result again.

After saving and closing CRASH !!

Best Regards

Ricardo

Dont cry for me Argentina...
Post Reply