Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8454093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:56:03+00:00 2026-06-10T11:56:03+00:00

I have a HTML code, <div class=layout data-type=renderingCanvas data-format=canvas style=width:100px; height:100px> </div> where data-type

  • 0

I have a HTML code,

<div class="layout"
                    data-type="renderingCanvas"
                    data-format="canvas"
                    style="width:100px; height:100px">
                </div>

where data-type refers to the javascript file, like renderingCanvas will go to the javascript file name canvas.js which will perform modifications on the png image.
and data-format is just a structure which contains all the types (svg, canvas, bmp etc.) It is just to make sure formats are valid.

Now, for rendering purpose, I change data-format to “svg” ..

<div class="layout"
                        data-type="renderingSVG"
                        data-format="svg"
                        style="width:100px; height:100px">
                    </div>

where renderingSVG goes to svg.js, and modifications are done on svg file.

But this creates heap corruption error. like it says

Program : iisexpress.exe
Heap Corruption detected : after normal block......(some memory references)

Strangest part is, when I change it back to “canvas”, it works perfectly fine. What I meant is, when I do this

<div class="layout"
                            data-type="renderingSVG"
                            data-format="canvas"
                            style="width:100px; height:100px">
                        </div>

Even though the format I have mentioned is canvas, but it is using and modifying a svg image.

I thought it is an IIS express error, and someone posted online that if we add this it might work :

  <staticContent>
      <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
    </staticContent>

But it didnt. Any clue what am I doing wrong? Or is there anything that needs to be added to render svg image.

PS : There is no error in data-format, and data-type implmentation. Same behavior with IIS7/IIS express?IIS5

PS (new-update) : Heap error is only reported by Visual Studio, when using debug mode. When using release mode, it works fine. Strange!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T11:56:04+00:00Added an answer on June 10, 2026 at 11:56 am

    Its not strange that it works fine in release mode. In release mode, it tends to overlook the memory corruption, and moves forward. Working in release mode doesnt mean your program is fine. If there is no error on client side implementation, then check server side. Information provided in the question is insufficient.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following html code with Jquery Sorting <div class=sortable style='width:700px; margin: 0
I have the following html code. <html> <body> <div style=max-width:1600px; min-width:900px; > <table> </table>
I have this HTML code: <div class='com_box'> <div class='com_box_c'> <div class='com_box_info'> <a id='quote'>quote</a> </div>
Suppose I have the following html: This a test of <code>some code</code>. <div class='highlight'>
I have this html code: <div class=action> some_text <a class=delete_action name=q1>some</a> </div> <div class=action>
I have this HTML code which simulates a dropdown multi-checkbox <div> <div class=select> <span>Select
I have the following HTML code based on a tab menu format, i.e: <div
I have this HTML code: <div id=main> <div id=dv_7>...</div> <div id=dv_1>...</div> <div id=dv_8>...</div> <div
I have below html code in one of the opensource project. <form action=/wiki/bin/view/Main/Search> <div
I have the following html code (in the given order) <div id=content>...</div> <div id=footer>...</div>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.