Hi,
Enrico wrote:
> i came across a little problem while working
> at my app's own file loader.
> I was trying to make sure that my app won't hang,
> even if a wrong file type is selected for loading:
> so I tried to load a dll file (worst case possible, I know,
> but users do all kind or weird stuff).
>
> I was expecting that SceneFileHandler::the().read would just
> fail and return a NullFC, but every time I make a test,
> I end up in a crash.
The second argument to read is used to determine the loader to use, so
unless you register your loader to handle ".dll" files it should just
fail and return NullFC as you expect it to do.
Can you provide a backtrace of the crash, so we have a chance to figure
out where something goes wrong ?
> Should I check file types externally or you can check this out?
If you register a loader for ".dll" files, then it is your loaders
responsibility to behave sensibly, if the contents do not match your
expectations.
Hope it helps,
Carsten
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users