Ported Nehe tutorials 2-10 to Firefox [multiple plugins per page issue]
Quote: Original post by shadowwz
does the code tag not work ?
I need the code you added to plugin.h.
I think you added
const char* getVersion();
HWND mhWnd;
to nsPluginInstance, and I think a few other things...
Can you zip up your project and provide a link to it? Or email the source files to me at my tgraupmann@yahoo.com address.
*News tagenigma.com is my new domain.
Quote: Original post by tgraupmann
I need the code you added to plugin.h.
I think you added
const char* getVersion();
HWND mhWnd;
to nsPluginInstance, and I think a few other things...
Can you zip up your project and provide a link to it? Or email the source files to me at my tgraupmann@yahoo.com address.
sended.
* actualy i changed only the plugin.cpp,nothing else.
Ok it works with the project files you sent me. I'll repackage the files and post a link. Thanks a ton Dimitry!
I just have to fix a small bug where it crashes on exit. And then tutorialize it.
If you can't wait, here is what we have now:
Start with the [Gecko Win32 SDK].
Unpack to the c:\ folder.
Unpack [Winless OpenGL Plugin] into the C:\GeckoPluginSDK-samples\Win32SDK\sdk\samples folder.
Compile the C:\GeckoPluginSDK-samples\Win32SDK\sdk\samples\winlessopengl\windows\npwinlessopengl.dsw workspace.
Open the C:\GeckoPluginSDK-samples\Win32SDK\sdk\samples\winlessopengl\test.html page in the firefox browser.
[Edited by - tgraupmann on March 14, 2005 3:25:13 PM]
I just have to fix a small bug where it crashes on exit. And then tutorialize it.
If you can't wait, here is what we have now:
Start with the [Gecko Win32 SDK].
Unpack to the c:\ folder.
Unpack [Winless OpenGL Plugin] into the C:\GeckoPluginSDK-samples\Win32SDK\sdk\samples folder.
Compile the C:\GeckoPluginSDK-samples\Win32SDK\sdk\samples\winlessopengl\windows\npwinlessopengl.dsw workspace.
Open the C:\GeckoPluginSDK-samples\Win32SDK\sdk\samples\winlessopengl\test.html page in the firefox browser.
[Edited by - tgraupmann on March 14, 2005 3:25:13 PM]
*News tagenigma.com is my new domain.
I've isolated the plugin crash to here:
Looks like it's trying to access sd or sd->hThread when it's no longer valid.
Looks like it's trying to access sd or sd->hThread when it's no longer valid.
*News tagenigma.com is my new domain.
Wow,
Nice job :) Keep up the good work! Are u thinking of guest hosting the next contest?
Cheers,
- llvllatrix
Nice job :) Keep up the good work! Are u thinking of guest hosting the next contest?
Cheers,
- llvllatrix
Maybe... it would be a requirement that Nehe post something and that perhaps we could get Firefox involved as a "free" sponsor. LOL
*News tagenigma.com is my new domain.
Quote: Original post by tgraupmann
I've isolated the plugin crash to here:
Looks like it's trying to access sd or sd->hThread when it's no longer valid.
try to move the "HANDLE hTemp = sd->hThread;" after initialization of "sd" variable.
* probablity Mozilla released the memory,it's not required but i always prefer to release all memory/resources i use - i have a lot of bad experience with this issue.(on exit all memory/resource are released,in this case it's not really important)
Quote: Original post by shadowwzQuote: Original post by tgraupmann
I've isolated the plugin crash to here:
Looks like it's trying to access sd or sd->hThread when it's no longer valid.
try to move the "HANDLE hTemp = sd->hThread;" after initialization of "sd" variable.
* probablity Mozilla released the memory,it's not required but i always prefer to release all memory/resources i use - i have a lot of bad experience with this issue.(on exit all memory/resource are released,in this case it's not really important)
also don't forget to move the "delete sd;" too with "HANDLE hTemp = sd->hThread;"
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement