amateursRus
Technical User
Hi All,
Hope someone can take pity on me and figure out what the heck is happening here...
I'm using D6 Ent. Edition on NT4 (don't laugh - someone has to!) and have a working program which writes a list of usersids' to a text file.
The original code fragment follows;
for i:= 0 to (UserList.Count-1) do begin
writeln(t, s1+ '<option value=' + QuotedStr(UserList) + '>');
writeln(t, s2+ '<xsl:if test="$selected_userid=' + QuotedStr(UserList) + '">');
writeln(t, s3+ '<xsl:attribute name="selected">Selected</xsl:attribute>');
writeln(t, s2+ '</xsl:if>' + (UserList) + '</option>');
end;
Basically, it's creating part of an XSL file (s1..s3 are spacers to make it easier for me to read) for use in an HTML data island and has worked faultlessly for over 18 months.
HOWEVER!!
The users have requested some improvements to the end result and I've therefore made certain changes to the file.
These are shown below in the new code fragment;
for i:= 0 to (UserList.Count-1) do begin
writeln(t, s1+ '<option>' + (UserList) + '</option>');
//if (i>35) then ShowMessage('UserList ' + IntToStr(i) + ' = ' + tempUser);
end;
This is simply used to create a list of users for an HTML 'select' drop-down.
Please note the 'REMmed' out line is there purely for debugging...
Nothing else has been changed.
Now, the weird thing is that when the showmessage is enabled the code runs without errors but when it's disabled the following error invariably appears;
Access violation at address 77F34EB5 in module "kernel32.dll". Read of address 00000025
The REALLY weird thing is, the program still produces the goods even after the error and the final report for the users is fine....
Any ideas on how to fix this?
Regards
Steve
Hope someone can take pity on me and figure out what the heck is happening here...
I'm using D6 Ent. Edition on NT4 (don't laugh - someone has to!) and have a working program which writes a list of usersids' to a text file.
The original code fragment follows;
for i:= 0 to (UserList.Count-1) do begin
writeln(t, s1+ '<option value=' + QuotedStr(UserList) + '>');
writeln(t, s2+ '<xsl:if test="$selected_userid=' + QuotedStr(UserList) + '">');
writeln(t, s3+ '<xsl:attribute name="selected">Selected</xsl:attribute>');
writeln(t, s2+ '</xsl:if>' + (UserList) + '</option>');
end;
Basically, it's creating part of an XSL file (s1..s3 are spacers to make it easier for me to read) for use in an HTML data island and has worked faultlessly for over 18 months.
HOWEVER!!
The users have requested some improvements to the end result and I've therefore made certain changes to the file.
These are shown below in the new code fragment;
for i:= 0 to (UserList.Count-1) do begin
writeln(t, s1+ '<option>' + (UserList) + '</option>');
//if (i>35) then ShowMessage('UserList ' + IntToStr(i) + ' = ' + tempUser);
end;
This is simply used to create a list of users for an HTML 'select' drop-down.
Please note the 'REMmed' out line is there purely for debugging...
Nothing else has been changed.
Now, the weird thing is that when the showmessage is enabled the code runs without errors but when it's disabled the following error invariably appears;
Access violation at address 77F34EB5 in module "kernel32.dll". Read of address 00000025
The REALLY weird thing is, the program still produces the goods even after the error and the final report for the users is fine....
Any ideas on how to fix this?
Regards
Steve