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

Colin admin
Posts
928
Threads
49
Location
Bulgaria

are you sure you updated the strGetLine function as i posted just before? i compiled your code exactly as you pasted it and it works perfectly...

this was without the second register function:

and this is when i uncomment the register keyword _While:

i'm guessing you did not update the function

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 += 2;
			break;
		}
	
		char[edi] = al;	
		edi++;
		lodsb
	};
	char[edi] = 0; 

	return esi;
}
Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

ok , when update the new function FileEntry it works okay , but when uncomment the line that register the keyword _While ziron refuses to load masm plugin.

try to test it with win7 computer you may see my problem?

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

Colin admin
Posts
928
Threads
49
Location
Bulgaria

ok just tested in win7 and i still get no error, i've noticed some small mistake in code so i will fix it then i will update the beta package to see if this solves your issue, i will re-post here as soon as i'm done.

Colin admin
Posts
928
Threads
49
Location
Bulgaria

ok i've updated the beta package, the strGetLine is inside strings.zir already.

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

oh , i tried it many times and got the same error.

if you please send me a copy of compiled version masm e.g masm.dll to me to test it.

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

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

ok , it works , that mean i did not use the latest Ziron version

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

Colin admin
Posts
928
Threads
49
Location
Bulgaria

glad to hear it is working :)