Skip to content
Low-level programming · Higher-level thinking
Login Register
Forum / Bugs and Fixes

access violation in FileEntry

A community discussion post from the original code:zIRON forum.

Replies

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt
ok i've updated the beta package, the strGetLine is inside strings.zir already.

i have update it , but strings.zir has no strGetLine???

http://www.freewebs.com/ogremagic/index.htm

Colin admin
Posts
928
Threads
49
Location
Bulgaria

yep it does at bottom below strCmp, i just downloaded the beta package and checked, and it is there.

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

is this the correct location

http://www.codeziron.com/uploads/releases/ziron.compiler.beta.rar

http://www.freewebs.com/ogremagic/index.htm

Colin admin
Posts
928
Threads
49
Location
Bulgaria

yep that's the one

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

no there is nothing after strcmp!!!!!!!

http://www.freewebs.com/ogremagic/index.htm

Colin admin
Posts
928
Threads
49
Location
Bulgaria

i'm 100% sure there is....

Molotov member
Posts
49
Threads
21
Location
Behind Keyboard

this is the last 2 functions in the strings.zir of that .rar

function strCmp(char* s1, s2) {
	uses edi esi;
	
	esi = s1;
	edi = s2;
	
	lodsb
	while (char[edi] == al) {
		lodsb
		edi++;
		
		if (al == 0 and char[edi] == 0) { return true; }
	}
	eax = xor;
}

function strGetLine(pointer strOff; pointer dest) { 
	uses esi edi;

	esi = strOff;
	if (char[esi] == 0) {
		return 0;
	}	
	edi = dest;
	
	lodsb
	repeat {
		if (al == 0) {
			esi--;
			break;
		} elseif (al == 13 and char[esi] == 10) {
			esi += 1;
			break;
		}
	
		char[edi] = al;	
		edi++;
		lodsb
	};
	char[edi] = 0; 

	return esi;
}

"Lerning new things is what life is all about, if you are always doing the same old things day in and day out you might aswell just kill yourself." - ME d^_^b

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

i have redownload it more that one time and there is no strGetLine in strings.zir

can you please reupload it again and change the location.

http://www.freewebs.com/ogremagic/index.htm